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

    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
      • bids array[object]

        Bid array

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

        Ask array

        Hide asks attributes Show asks attributes
  • 503

    Error

    Hide response attributes Show response attributes object
GET /depth
curl \
 -X GET https://api.everstrike.io/depth?pair=string
Response examples (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 examples (503)
{
  "code": 503,
  "msg": "Invalid request",
  "result": {}
}