LoopAllCoin change
This commit is contained in:
parent
f171f4ab8e
commit
0e9e6e45ae
5
main.go
5
main.go
@ -205,12 +205,13 @@ func LoopAllCoinsList(period int64, delay int64, mdura int, barPeriod string, on
|
|||||||
tmi := nw.UnixMilli()
|
tmi := nw.UnixMilli()
|
||||||
tmi = tmi - tmi%60000
|
tmi = tmi - tmi%60000
|
||||||
tmi = tmi - (int64(ct) * minutes * 60000)
|
tmi = tmi - (int64(ct) * minutes * 60000)
|
||||||
fmt.Println("instId: ", ary[i])
|
lm := core.ToString(core.ToInt64(onceCount))
|
||||||
|
fmt.Println("instId: ", ary[i], " limit: ", lm)
|
||||||
restQ := core.RestQueue{
|
restQ := core.RestQueue{
|
||||||
InstId: ary[i],
|
InstId: ary[i],
|
||||||
Bar: barPeriod,
|
Bar: barPeriod,
|
||||||
WithWs: false,
|
WithWs: false,
|
||||||
Limit: core.ToString(core.ToInt64(onceCount)),
|
Limit: lm,
|
||||||
After: tmi,
|
After: tmi,
|
||||||
}
|
}
|
||||||
js, err := json.Marshal(restQ)
|
js, err := json.Marshal(restQ)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user