0
Follow
0
Followers
簡単な例として,もし100の値の1の値の取引を 1秒ごとに取引所に掲示したいなら,
2.1 クラシック戦略の枠組み
function onTick(){
exchange.Buy(100,1);
}
function main(){
while(true){
onTick();
Sleep ((1000);//休止の長さはカスタマイズ可能,単位はミリ秒 ((1秒=1000ミリ秒)
}
}
システムエラー
ReferenceError: identifier 'onTick' undefined at main (FILE:22)
APIの注文を継続的に問い合わせるには,どの関数を使うべきか
Related Recommendations
in main TypeError: IO() takes at most 3 arguments (5 given)symbol not setGetTicker: 400: {"code": 2, "data": {}, "message": "invalid params"}gateio getdepth 502Decrypt: Secret key decrypt failedGetOrders: 400: {"code":-1121,"msg":"Invalid symbol."}HTTP 403 errorBitcoin trading by using botsPlease translate the buy plan pageRunning botvs docker on android
Comment
All comments (2)
我直接复制 您上面的代码测试了下 , 运行是没问题。这个报错 ReferenceError: identifier 'onTick' undefined at main (FILE:22) 是说 22行 onTick 没有定义,方便的话您发下 22行代码 看下。查询订单 使用GetOrder 函数 , 详情参看 API 文档: https://www.botvs.com/api#GetOrder
9 years ago
- 1
