0
Follow
0
Followers
가장 간단한 예로, 만약 제가 매 1초마다 거래소에 100의 가격과 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
