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

events

Lighter only.

Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events.

Use this endpoint to discover binary options markets and read their actual trading windows, decimals and market fees. Binary options are excluded from orderBookDetails. See Discover markets for examples, pagination and lifecycle statuses.

get
/api/v1/events
Query parameters
event_idsstringOptional

comma-separated positive IDs, max 50

market_idsstringOptional

comma-separated positive IDs, max 50

creator_account_indexinteger · int64Optional

Only return events created by this account.

cursorinteger · int64Optional

Opaque pagination cursor returned by the previous response; pass it unchanged.

activebooleanOptional

true: at least one outcome still tradeable; false: none

limitinteger · int64 · min: 1 · max: 100Optional

Maximum number of records to return.

tagstringOptional

series tag; creator filter is optional

event_kindstring · enumOptional

Event category filter.

Possible values:
start_frominteger · int64Optional

inclusive start_at, Unix milliseconds

start_beforeinteger · int64Optional

exclusive start_at, Unix milliseconds

sortstring · enumOptional

Field used to sort the result.

Default: idPossible values:
orderstring · enumOptional

Ascending or descending result order.

Default: descPossible values:
Responses
200

A successful response.

application/json
codeinteger · int32RequiredExample: 200
messagestringOptional
next_cursorinteger · int64OptionalExample: 1
get/api/v1/events
GET /api/v1/events HTTP/1.1
Host: mainnet.zklighter.elliot.ai
Accept: */*
{
  "code": 200,
  "message": "text",
  "next_cursor": 1,
  "events": [
    {
      "event_id": 1,
      "title": "text",
      "description": "text",
      "creator_account_index": 1,
      "created_at": 1640995200000,
      "tag": "text",
      "event_kind": "one_off",
      "recurrence_period_seconds": 1,
      "start_at": 1,
      "end_at": 1,
      "metadata": {
        "ANY_ADDITIONAL_PROPERTY": "anything"
      },
      "order_books": [
        {
          "symbol": "ETH",
          "market_id": 1,
          "market_type": "perp",
          "base_asset_id": 1,
          "quote_asset_id": 2,
          "status": "inactive",
          "taker_fee": "0.0001",
          "is_taker_fee_enabled": true,
          "maker_fee": "0.0000",
          "is_maker_fee_enabled": true,
          "liquidation_fee": "0.01",
          "min_base_amount": "0.01",
          "min_quote_amount": "0.1",
          "order_quote_limit": "235.25",
          "supported_size_decimals": 4,
          "supported_price_decimals": 4,
          "supported_quote_decimals": 4,
          "created_at": "1640995200000",
          "multiplier": "1.000000000000000000",
          "start_timestamp": 1640995200000,
          "end_timestamp": 1640995200000,
          "open_interest": "93.0",
          "outcome": 0,
          "operator_account_index": 1,
          "settlement_cap": 10000,
          "settlement_type": 0,
          "settlement_price": 10000,
          "default_price": 5000,
          "is_frozen": false,
          "size_decimals": 4,
          "price_decimals": 4,
          "stats": {
            "symbol": "BINOPT1000",
            "market_id": 1000,
            "mid_price": "0.52",
            "best_ask_price": "0.53",
            "best_bid_price": "0.51",
            "last_trade_price": "0.52",
            "daily_base_token_volume": 235.25,
            "daily_quote_token_volume": 115.27,
            "daily_price_low": 0.42,
            "daily_price_high": 0.55,
            "daily_price_change": 0.03,
            "lifetime_quote_token_volume": 8400000,
            "lifetime_base_token_volume": 16000000,
            "open_interest": "93.0",
            "status": "inactive",
            "outcome": 0
          },
          "open_interest_limit": "text",
          "open_interest_usd": "text",
          "market_deployer": "text"
        }
      ],
      "lifetime_quote_token_volume": 8400000
    }
  ]
}

Last updated

Was this helpful?