Type/to search
0
Follow
0
Followers
OKV3 인터페이스, exchange.IO로 호출하는 방법
Help
Created 2019-06-30 21:42:40  
 2
 1908

이 글은 한 명의 남성인 Z가 작성한 것입니다.
이제 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의 주문 중 첫 50건의 거래 정보)

Related Recommendations
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
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)