Sumber dimuat naik... memuat...

Buat pesanan Post-Only dan pesanan pukal di BitMEX melalui IO

Penulis:Rumput, Dicipta: 2019-04-18 13:55:58, Dikemas kini: 2019-04-18 13:58:55

Buat pesanan Post-Only dan pesanan pukal di BieMEX Gunakan fungsi IO, merujuk kepada dokumen BitMEX:https://www.fmz.com/bbs-topic/3666

Perintah hanya selepas

var id = exchange.IO("api", "POST", "/api/v1/order", "symbol=XBTUSD&side=Buy&orderQty=1&price=5000&execInst=ParticipateDoNotInitiate")

pesanan pukal

var bulk = []
bulk.push({symbol:'XBTUSD', side:'Buy', orderQty:100, price:5000, execInst:'ParticipateDoNotInitiate'})
bulk.push({symbol:'XBTUSD', side:'Buy', orderQty:200, price:5100, execInst:'ParticipateDoNotInitiate'})
var param = "orders=" + JSON.stringify(bulk)
var ids = exchange.IO("api", "POST", "/api/v1/order/bulk", param)
Log(ids)

Batalkan semua pesanan.

exchange.IO("api","DELETE","/api/v1/order/all","symbol=XBTUSD")

Berkaitan

Lebih lanjut