-
Notifications
You must be signed in to change notification settings - Fork 87
023deals
千叶忆夕阳 edited this page Mar 7, 2019
·
5 revisions
-
Request description: Acquire latest transaction data,return up to 1000
-
Request type: GET
-
Signature required: No
-
Request Url:https://api.coinex.com/v1/market/deals?market=BCHBTC
-
Request parameter:
name type required description market String Yes See<API invocation description·market> last_id Integer No Transaction history id, send 0 to draw from the latest record. limit Integer No(default 100) Less than or equal to 1000 -
Return value description:
name type description id Integer Transaction No date Integer Transaction time date_ms Integer Transaction time(ms) amount String Transaction amount price String Transaction price type String buy;
sell; -
Example:
# Request
GET https://api.coinex.com/v1/market/deals?market=BCHBTC&last_id=2
# Response
{
"code": 0,
"data": [
{
"amount": "0.0001", # Transaction amount
"date": 1494214689, # Transaction time(s)
"date_ms": 1494214689067, # Transaction time(ms)
"id": 5, # Transaction No
"price": "10.00", # Transaction price
"type": "buy" # Transaction type: buy, sell
}
],
"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