023deals - coinexcom/coinex_exchange_api GitHub Wiki
-
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"
}