Skip to content
API reference /Market queries

Read bid and ask depth

Inspect five price levels on each side of the ETH-SWAP order book.

Endpoint & access

GET
/api/usdt/instruments/depth

Rate limit

  • 10 requests / 1 second

Query parameters

Field Data type Required Meaning
instrument_id string YES Contract abbreviation, for example BTC, ETH, BCH, or BSV.
depth string NO Order book depth. Documented levels are 5, 10, 20, 50, and 100. Available levels depend on server configuration. Defaults to 5.

Returned fields

Field Data type Meaning
asks array Ask levels, each in the form [price, quantity, order_count]
bids array Bid levels, each in the form [price, quantity, order_count]
contract_code string Contract code, such as ETH-SWAP
timestamp integer Unix timestamp in milliseconds

Example request

GET /api/usdt/instruments/depth?instrument_id=ETH&depth=5

Example result

{
  "code": 200,
  "message": null,
  "data": {
    "contract_code": "ETH-SWAP",
    "asks": [
      ["2450.2", "184", "3"],
      ["2450.3", "276", "4"],
      ["2450.4", "320", "5"],
      ["2450.5", "145", "2"],
      ["2450.6", "410", "6"]
    ],
    "bids": [
      ["2449.8", "236", "4"],
      ["2449.7", "190", "3"],
      ["2449.6", "355", "5"],
      ["2449.5", "128", "2"],
      ["2449.4", "460", "7"]
    ],
    "timestamp": 1795161600000
  }
}