Skip to content

023deals

千叶忆夕阳 edited this page Mar 7, 2019 · 5 revisions

Acquire Latest Transaction Data

  • 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"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally