-
Notifications
You must be signed in to change notification settings - Fork 5
/
comment.txt
50 lines (38 loc) · 1.28 KB
/
comment.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//{'op': 'subscribe', 'channel': 'orders'}
/////////////////////////
// data = map[string]interface{}{
// "op": "subscribe",
// "channel": "ticker",
// "market": "SRM/USD",
// }
// out, err = json.Marshal(data)
// if err != nil {
// panic(err)
// }
// fmt.Println("send:", string(out))
// err = c.WriteMessage(websocket.TextMessage, []byte(string(out)))
// //eerr := c.WriteJSON(string(out))
// if err != nil {
// log.Println("write:", err)
// return
// }
//////////////////
// err := c.WriteMessage(websocket.TextMessage, []byte("test===>"))
// if err != nil {
// log.Println("write:", err)
// return
// }
//dt := time.Now()
//log.Println("loop:", dt.String())
/////////////////
// _, message, err := c.ReadMessage()
// if err != nil {
// log.Println("read:", err)
// return
// }
// log.Printf("recv: %s", message)
GOOS="windows" GOARCH="amd64" go build main.go
Desktop\ftxbot -acc=maker -inst=srm/usd -f_val=1500 -b_dist=0.1 -s_dist=0.1 -p_rest=222
go run main.go -acc=maker -inst=srm/usd -f_val=1500 -b_dist=0.1 -s_dist=0.1 -p_rest=222
go run main.go -acc=sponsor -inst=sol/usd -f_val=300 -b_dist=10 -s_dist=10 -p_rest=888
go run main.go -acc=mltoken -inst=srm/usd -f_val=6000 -b_dist=0.1 -s_dist=0.1 -p_rest=222