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'
2018-04-09 13:36:25
发明者量化-小小梦
- 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/#/
2018-04-09 09:17:37
newblock
function main() {
Log(exchange.GetAccount());
exchange.IO("api","POST","/v1/orders","symbol=XBTUSD&side=Buy&orderQty=1&price=5000&ordType=Limit");
}
execInst 删了也不行,没权限