0
Follow
0
Followers
祖父,祖母,祖母,祖母,祖母,祖母,祖母,祖母
今OKはV3のインターフェースで,多くのGETは,このようなインターフェースをexchange.IOで呼び出す方法について,また,私たちのコミュニティでステッカーを投稿する方が良い,この問題に直面している人はたくさんいます
この例では,Exchange.IOで呼び出す方法について説明します.
取引の詳細を入手
このインターフェースは,過去7日間のデータを検索できます.
速度制限のルール:20倍/2秒
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
