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

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