-
Notifications
You must be signed in to change notification settings - Fork 87
0313batch_orders_status
张帅磊 edited this page May 27, 2021
·
5 revisions
-
Request description: acquire multiple orders status in the same market, limit up to 100.
-
Request type: GET
-
Signature required: Yes
-
Rate limit: 100/10s
-
Request Header:
authorization:"xxxx" (32-digit capital letters, see generating methos in <API invocation instruction>) -
Request Url:https://api.coinex.com/v1/order/status/batch
-
Request parameter:
name type required description access_id String Yes access_id batch_ids String Yes multiple order nos string market String Yes See <API invocation description·market> tonce Interger Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds from Unix epoch to the current time. Error between tonce and server time can not exceed plus or minus 60s -
Return value description:
name type description amount String order count avg_price String average price create_time Interger time when placing order deal_amount String count deal_fee String transaction fee deal_money String executed value finished_time Interger complete time id Interger Order No. maker_fee_rate String maker fee market String See <API invocation description·market> order_type String limit:limit order;
market:market order;price String order price status String not_deal: unexecuted;
part_deal: partly executed;
done: executed;
cancel: cancelled;
To guarantee server performance, all cancelled unexecuted orders will be deleted.taker_fee_rate String taker fee type String sell: sell order;
buy: buy order; -
Example:
# Request
GET https://api.coinex.com/v1/order/status/batch?batch_ids=300021,300022,300033&access_id=F0160AD40BAE4519A3836BFB057BD682&market=BTCBCH&tonce=1513746038205
# Response
{
"code": 0,
"data": # order data
[
{
"code": 0,
"data": {
"amount": "1000", # order count
"avg_price": "11782.28", # average executed price
"create_time": 1496761108, # order placing time
"deal_amount": "1000", # executed amount
"deal_fee": "23564.5798468", # transaction fee
"stock_fee": "111", # stock transaction fee
"money_fee": "222", # money transaction fee
"asset_fee": "222", # asset transaction fee
"deal_money": "11782289.9234", # executed value
"id": 300021, # order no.
"left": "9.4", # unexecuted amount
"maker_fee_rate": "0.001", # maker fee
"market": "BTCBCH", # market
"order_type": "limit", # order type
"price": "7000", # order price
"status": "done", # order status
"taker_fee_rate": "0.002", # taker fee
"type": "sell" # order type
},
"message": "",
},
......
]
"message": "Ok"
}
Common API
Market API
-
Acquire Market List
-
Acquire Market Statistics
-
Acquire Market Depth
-
Acquire Latest Transaction Data
-
Acquire K-Line Data
-
Acquire Market Information
-
Acquire Single Market Information
-
Acquire AMM Market List
Account API
-
Inquire Account Info
-
Inquire Withdrawal List
-
Submit A Withdrawal Order
-
Cancel Withdrawal
-
Inquire Deposit List
-
Transfer between main account and sub account
-
Transfer between main account and margin account
-
Get deposit address
-
Generate deposit address
-
Inquire Sub Account Balance
-
Inquire Sub Account Balance History
-
Create Sub Account
-
Frozen Sub Account
-
Unfrozen Sub Account
-
Acquire Credit Account Info
Trading API
-
Place Limit Order
-
Place Multiple Limit Orders
-
Place Market Order
-
Place Stop Limit Order
-
Place IOC Order
-
Acquire Unexecuted Order List
-
Acquire Executed Order List
-
Acquire Order Status
-
Acquire Multiple Orders Status
-
Acquire Executed Order Detail
-
Acquire User Deals
-
Cancel Order
-
Cancel Multiple Orders
-
Cancel All Orders
Margin API
-
Inquire Margin Account Info
-
Inquire Margin Account Market Info
-
Inquire Margin Account of A Currency
-
Acquire Margin Account Settings
-
Acquire Margin Account Settings of A Currency
-
Acquire Loan List
-
Place Loan
-
Place Flat
-
Margin Balance Transfer
Contract API