The resource loading... loading...

OKV3接口,如何用exchange.IO调用

Author: Eating without cooking, Created: 2019-06-30 21:42:40, Updated:

Big Z, I have a question for you: Now OK is the V3 interface, and a lot of it is GET, how to call such an interface with exchange.IO, and please give some guidance, it's best to post a post in our community, many people are having this problem. Here's an example of how we can use exchange.IO to call:

Get the details of the transaction To get a detailed list of recent transactions, this interface can query data for the last 7 days.

Speed limit rule: 20 times/2s

HTTP requests

GET /api/futures/v3/fills

Example request

GET/api/futures/v3/fills?order_id=123123&instrument_id=BTC-USD-180309&after=2&limit=50(returns BTC-USD-180309 in order_id is 123123 on page 2 of the first 50 transaction information)


More

Eating without cookingThank you for your help. function main (() { Exchange.SetContractType ((quarter)) Exchange.SetMarginLevel ((20); // 20 times the leverage var ret = exchange.IO (("api", "GET", "/api/futures/v3/orders/EOS-USD-190927?state=2") // the latest 100 sets of orders received that have been settled Log ((ret.order_info[0]) // Most recently placed orders Log ((ret.order_info[0].type) // Type of order most recently placed ((1: open 2: open 3: even 4: even) I'm not sure.

Inventors quantify - small dreamsWhat's up? var ret = exchange.IO (("api", "GET", "/api/futures/v3/fills?order_id=123123&instrument_id=LTC-USD-190705&after=2&limit=50") Log ((ret)) What's up? I've been tested.