Depth

GET /depth

Retrieve L2 order book data for a specific market.

Query parameters

  • pair string Required

    Market to get depth for (e.g. "USD_BTCCALL_PERP").

  • limit integer

    Number of bids and asks to return (default is 40).

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • code integer

      Response code

    • msg string

      Diagnostic message

    • result object

      Request result

      Hide result attributes Show result attributes object
      • bids array[object]

        Bid array

        Hide bids attributes Show bids attributes object
      • asks array[object]

        Ask array

        Hide asks attributes Show asks attributes object
  • 503 application/json

    Error

    Hide response attributes Show response attributes object
GET /depth
curl \
 -X GET https://api.testnet.everstrike.io/depth?pair=string
Response examples (200)
{
  "code": 200,
  "msg": "null",
  "result": {
    "asks": [
      {
        "qty": 0.00284,
        "price": 0.08546
      },
      {
        "qty": 0.09746,
        "price": 0.08654
      },
      {
        "qty": 0.01746,
        "price": 0.09883
      },
      {
        "qty": 0.021,
        "price": 0.08674
      }
    ],
    "bids": [
      {
        "qty": 0.00998,
        "price": 0.01123
      },
      {
        "qty": 0.0989,
        "price": 0.00892
      },
      {
        "qty": 0.01693,
        "price": 0.00976
      },
      {
        "qty": 0.03855,
        "price": 0.00828
      }
    ]
  }
}
Response examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}