LoopAllCoin change
This commit is contained in:
parent
8062cb5cb4
commit
39ab16dc95
6
main.go
6
main.go
@ -7,6 +7,7 @@ import (
|
|||||||
"github.com/phyer/v5sdkgo/rest"
|
"github.com/phyer/v5sdkgo/rest"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
// "v5sdk_go/ws"
|
// "v5sdk_go/ws"
|
||||||
@ -205,8 +206,11 @@ 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)
|
||||||
lm := core.ToString(core.ToInt64(onceCount))
|
lm := strconv.Itoa(onceCount)
|
||||||
fmt.Println("instId: ", ary[i], " limit: ", lm, " onceCount:", onceCount)
|
fmt.Println("instId: ", ary[i], " limit: ", lm, " onceCount:", onceCount)
|
||||||
|
if lm == "0" {
|
||||||
|
lm = "100"
|
||||||
|
}
|
||||||
restQ := core.RestQueue{
|
restQ := core.RestQueue{
|
||||||
InstId: ary[i],
|
InstId: ary[i],
|
||||||
Bar: barPeriod,
|
Bar: barPeriod,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user