-
Notifications
You must be signed in to change notification settings - Fork 87
039user_deals
yangjialong edited this page Jul 17, 2019
·
11 revisions
-
Request description: Acquire user deals.
-
Request type: GET
-
Signature required: Yes
-
Request Header:
authorization:"xxxx" (32-digit capital letters, see generating methos in <API invocation instruction>) -
Request Url:https://api.coinex.com/v1/order/user/deals
-
Request parameter:
name type required description access_id String Yes access_id market String Yes See <API invocation description·market> page Interger Yes page, start from 1 limit Interger Yes amount per page(Max. 100) tonce Interger Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds since Unix epoch to the current time and error between tonce and server time can not exceed plus or minus 60s account_id Integer no main account ID: 0, margin account ID: See < Inquire Margin Account Market Info >, future account ID: See < Inquire Future Account Market Info > -
Return value description:
name type description amount String executed amount create_time Interger executed time deal_money String executed value fee String transaction fee fee_asset String transaction fee asset id Interger executed id order_id Interger order no. price String order price role String order role type String sell:sell;
buy:buy -
Example:
# Request
GET https://api.coinex.com/v1/order/user/deals?access_id=F0160AD40BAE4519A3836BFB057BD682&page=1&limit=1&market=btcbch&tonce=1513746038205
# Response
{
"code": 0,
"data": {
"count": 1,
"curr_page": 1,
"data": [
{
"amount": "0.622", # executed amount
"create_time": 1496799439, # executed time
"deal_money": "7240.6398", # executed value
"fee": "0.008196", # transaction fee
"fee_asset": "CET", # transaction fee asset
"id": 1012977, # executed id
"order_id": 12977, # order no.
"price": "10.9", # order price
"role": "taker" # order role
"type": "sell" # order type
}
],
"has_next": true
},
"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