1) Opening the order 022-01-21 18:24:32 Information Opening a blank list, sellOrderId 404702825422401536 This is a list of all the places in the world where you can buy goods and services. 2022-01-21 18:24:32 Futures_OKCoin to be sold open - swap market price list 1 2022-01-21 18:24:32 Information Holding less than the maximum opening volume, can be ordered more
2) code function orderOpen ((way, price, amount) {
if (way == "LONG") {
return trade("buy", price, amount)
} else if (way == "SHORT") {
return trade("sell", price, amount)
}
}
else if (position.length == 0) { Log ((Local storage, open directly from the single box)) buyOrderId = orderOpen ((way, -1, amount) is the order number Log ((opened order completed: buyOrderIduyOrderId=yes, buyOrderId)) I'm not sure.
为什么多单就是市价单,空单就是委托单呢?谢谢
lzhqljI was dispatched and found that there was no transaction in the current order.
The grassIt should be a list of prices, you look at the price of the order.
lzhqljThen I restarted the real disk, the barcode didn't change, and it went back to the market price.