0
Follow
7
Followers
function main() {
exchange.IO("currency", "BCH_USD") //设置合约币种
var ret = exchange.IO("API", "POST", "/api/v4/futures/btc",'"contract":"BCH_USD","size":1,"price":"100","close":false,"tif":"gtc","text":"web"')
return ret
}
我用以上自编写的代码exchange.IO下单Gate时,一直返回Futures_OP 4: 404: {"label":"NOT_FOUND"} 或者 Futures_OP 4: argument error 报错,估计是程序格式或参数问题,求大神打救!!给个Gate的标准范文也行~~
Gate.io的API期货订单文档显示如下:
Body parameter
{
"contract": "BTC_USD",
"size": 6024,
"iceberg": 0,
"price": "3765",
"tif": "gtc",
"text": "t-my-custom-id"
}
Related Recommendations
Advanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization
Comment
All comments (6)
是GATE IO 现货么 ? FMZ 封装的是 /api2/1/private/balances这个版本的 API
exchange.IO 只能访问 这个版本的接口。是不是这个问题。
7 years ago
终于可以了!是的,后面的orders要加上!正确的格式范文如下:“exchange.IO("api", "POST", "/api/v4/futures/btc/orders","contract=BTC_USD&size=1&price=8000")”,改了几十次才试出来的 -_-||
7 years ago
- 1

