资源加载中... loading...

币安,相同代码,托管者在香港的linux能跑,换到新加坡Windows报错

Author: gzf445, Created: 2019-11-22 09:57:57, Updated:

var ret =exchanges[0].IO(“api”, “GET”, “/api/v3/allOrders”,“symbol=LINKUSDT”) var ret1 =exchanges[0].IO(“api”, “GET”, “/api/v3/ping”,"") Log(ret) Log(ret1)

windows报错

Futures_OP 4: 400: {“code”:-1101,“msg”:“Too many parameters; expected ‘0’ and received ‘2’.”} Futures_OP 4: 400: {“code”:-1121,“msg”:“Invalid symbol.”}

请问托管者安装在windows需要安装别的支持库么?


More

gzf445 不是啊 我添加的是现货api。哪里可以设置是现货还是期货?

gzf445 不是啊 我添加的是现货api。哪里可以设置是现货还是期货?

gzf445 这两个都不行,是币安交易所的, var ret =exchanges[0].IO("api", "POST", "/api/v3/allOrders","symbol=LINKUSDT") var ret1 =exchanges[0].IO("api", "GET", "/api/v3/allOrders?symbol=LINKUSDT","") Log(ret) Log(ret1) 2019-11-22 15:09:41 Binance 错误 Futures_OP 4: 400: {"code":-1100,"msg":"Illegal characters found in parameter 'symbol'; legal range is '^[A-Z0-9_]{1,20}$'."} 2019-11-22 15:09:41 Binance 错误 Futures_OP 4: 404: <html><body><h2>404 Not found</h2></body></html>

小草 exchanges[0].IO("api", "GET", "/api/v3/allOrders?symbol=LINKUSDT","")

小草 exchanges[0].IO("api", "POST", "/api/v3/allOrders","symbol=LINKUSDT")

gzf445 刚才在网站租了一个英国伦敦托管者测试了一下,也是提示这个错误。exchanges[0].GetAccount() 可以正常获取到账户信息,exchanges[0].IO api 是要安装什么依赖项么?

小草 又查了一下文档,现货交易获取全部订单是GET方法,还有一个必填参数时间戳。另外看你日志是币安期货,用的是现货API。期货地址:https://github.com/binance-exchange/binance-official-api-docs/blob/master/margin-api.md