0
Follow
0
Followers
大Z,请教您个问题:
现在OK是V3接口,而且很多是GET的,这样的接口如何用exchange.IO调用,还请指导一下,最好是在我们的社区发个贴子,碰到这种问题的人很多
像下面这样的示例,我们要如何用exchange.IO来调用:
获取成交明细
获取最近的成交明细列表,本接口能查询最近7天的数据。
限速规则:20 次/2s
HTTP请求
GET /api/futures/v3/fills
请求示例
GET/api/futures/v3/fills?order_id=123123&instrument_id=BTC-USD-180309&after=2&limit=50(返回BTC-USD-180309中order_id为123123的订单中第2页前50笔成交信息)
Related Recommendations
Get 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 optimization5.4 Why do we need an off-sample test5.3 How to read the strategy backtest performance report
Comment
All comments (2)
多谢梦总,
function main() {
exchange.SetContractType("quarter")
exchange.SetMarginLevel(20); // 20倍杠杆
var ret = exchange.IO("api", "GET", "/api/futures/v3/orders/EOS-USD-190927?state=2") //获取的最新100组已成交订单
Log(ret.order_info[0]) //最新成交的订单
Log(ret.order_info[0].type) //最新成交的订单类型(1:开多 2:开空 3:平多 4:平空)
}
7 years ago
var ret = exchange.IO("api", "GET", "/api/futures/v3/fills?order_id=123123&instrument_id=LTC-USD-190705&after=2&limit=50")
Log(ret)
实测过。
7 years ago
- 1
