0
Follow
0
Followers
Qual é o efeito de definir exchange.SetTimeout(3000) no início da estratégia?
Created 2018-07-02 10:39:17
1
1806
Se você não entendeu muito bem a documentação da API, por favor responda, obrigado!
2.10.2 SetTimeout
O protocolo rest-only, usado para definir o tempo de excesso de tempo no momento do pedido de rest, só pode ser executado quando configurado uma vez.
Exemplo: exchange.SetTimeout(3000), configurar o objeto do exchange exchange, enviar uma solicitação de rest Começar a contar o tempo, mais de 3 segundos, o tempo excedido retornará null 。
Related Recommendations
The grid trading strategyPython streamlined multi-variety MACD trending strategy frameworkin 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 bots
Comment
All comments (1)
就是 设置 exchange.SetTimeout(3000) 后, 这个 exchange 对象 成员函数 被调用的时候 , 发送 http 请求 ,响应超时 设置 为3秒, 超过 3秒 没有接收到 交易所服务器响应,就报错 超时。
8 years ago
- 1
