Skip to content

022depth

buyongji edited this page Mar 31, 2019 · 10 revisions

Acquire Market Depth

  • Request description: Acquire buy/sell statistics,return up to 50

  • Request type: GET

  • Signature required: No

  • Request Url:https://api.coinex.com/v1/market/depth

  • Request parameter:

    name type required description
    market String Yes See<API invocation description·market>
    merge String Yes '0', '0.1', '0.01', '0.001', '0.0001', '0.00001', '0.000001', '0.0000001', '0.00000001
    limit Interger No(Default20) Return amount,range: 5/10/20/50
  • Return value description:

    name type description
    last String Last price
    time Long Updated time of Depth
    asks Array Seller depth
    asks[0][0] String Order price
    asks[0][1] String Order amount
    bids Array Buyer depth
    bids[0][0] String Order price
    bids[0][1] String Order amount
  • Example:

# Request
GET https://api.coinex.com/v1/market/depth?market=bchbtc&limit=5&merge=0
# Response
{
  "code": 0,
  "data": {
    "last": "10.00",
    "time": 1539764050033,
    "asks": [      # Sell Depth
      [
        "10.00",   # Order price
        "0.9999"   # Order amount
      ]
    ],
    "bids": [      # Buy Depth
      [
        "10.00",   # Order price
        "1.0000"   # Order amount
      ]
    ]
  },
  "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally