For the complete documentation index, see llms.txt. This page is also available as Markdown.

orderBooks

Get order books metadata.


Response Description: 1) Taker and maker fees are in percentage. 2) Min base amount: The minimum amount of base token that can be traded in a single order. 3) Min quote amount: The amount of quote token that can be traded in a single order. 4) Supported size decimals: The number of decimal places that can be used for the size of the order. 5) Supported price decimals: The number of decimal places that can be used for the price of the order. 6) Supported quote decimals: supported size decimals + supported price decimals.

get
/api/v1/orderBooks
Query parameters
market_idinteger · int16Optional

Public market identifier returned by orderBooks or events.

Default: 255
filterstring · enumOptional

Select the records to include using the listed filter values. Allowed values: all, spot, perp.

Default: allPossible values:
Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
get/api/v1/orderBooks
GET /api/v1/orderBooks HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
  "code": 200,
  "message": "text",
  "order_books": [
    {
      "symbol": "ETH",
      "market_id": 0,
      "market_type": "perp",
      "base_asset_id": 0,
      "quote_asset_id": 0,
      "status": "active",
      "taker_fee": "0.0001",
      "maker_fee": "0.0000",
      "liquidation_fee": "0.01",
      "min_base_amount": "0.01",
      "min_quote_amount": "0.1",
      "supported_size_decimals": 4,
      "supported_price_decimals": 4,
      "supported_quote_decimals": 4,
      "order_quote_limit": "281474976.710655",
      "is_maker_fee_enabled": true,
      "is_taker_fee_enabled": true,
      "created_at": "1640995200000",
      "multiplier": "1.000000000000000000",
      "start_timestamp": 1640995200000,
      "end_timestamp": 1640995200000,
      "open_interest": "93.0",
      "open_interest_limit": "text",
      "open_interest_usd": "text",
      "outcome": 0,
      "operator_account_index": 1,
      "settlement_cap": 10000,
      "settlement_type": 0,
      "settlement_price": 10000,
      "default_price": 5000,
      "is_frozen": false,
      "market_deployer": "text"
    }
  ]
}

Last updated

Was this helpful?