Loading ...

BitMex Exchange.IO 下单没权限

Author: newblock, Created: 2018-04-08 12:26:33, Updated:

function main() { Log(exchange.GetAccount()); exchange.IO("api",“POST”,"/v1/orders",“symbol=XBTUSD&side=Buy&orderQty=1&price=5000&ordType=Limit&execInst=ParticipateDoNotInitiate”); }

Futures_BitMEX	错误	Futures_OP 4: 403: Forbidden

img


More

Loga 留个联系方式

Loga 怎么解决的求带

newblock "/api/v1/order" Bitmex 的地址不一样已解决

newblock 请老板检查一下是不是Botvs后台设置成测试网的exchange.IO的接口了,谢谢

newblock function main() { Log("初始账户:", initAccount = _C(exchange.GetAccount)); var info = exchange.SetContractType("XBTUSD"); exchange.IO("api","POST","/v1/order","symbol=XBTUSD&orderQty=1&price=5000&ordType=Limit&execInst=ParticipateDoNotInitiate"); } BitMex API Explorer 创建的数据 改成了 /v1/order 还是不行,同样的出错 没在测试网跑 curl -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' --header 'X-Requested-With: XMLHttpRequest' -d 'symbol=XBTUSD&orderQty=1&price=6000&ordType=Limit&execInst=ParticipateDoNotInitiate' 'https://www.bitmex.com/api/v1/order'

小小梦 - Base URI: https://testnet.bitmex.com/api/v1 - /order Create a new order https://testnet.bitmex.com/api/v1/order , 另外 orders 这个 接口 没有找到。 https://testnet.bitmex.com/api/explorer/#/

newblock function main() { Log(exchange.GetAccount()); exchange.IO("api","POST","/v1/orders","symbol=XBTUSD&side=Buy&orderQty=1&price=5000&ordType=Limit"); } execInst 删了也不行,没权限

newblock exchange Buy Sell 没问题

Zero 试下用exchange的Buy与Sell下单,如果成功, 就说明你IO传的参数有问题. 目测来看, 你去掉execInst试一下.