API reference · Sim

List replayable events

GET/v1/sim/events

The events with a recorded feed and recorded order books, newest first, that the simulator can replay.

On this page

Auth. None. Without a token the call is served as Free (the Free delay and request budget, shared per IP); send Authorization: Bearer lb_… for your plan's.

Limits. Counts against your plan's API requests (60, 600 or 3,000 a minute on Free, Builder and Standard). Does not count as a Sim run.

Parameters

Query parameters

NameTypeRequiredDescription
limitintegernoPage size. 1 to 500. Default 50.
cursorstringnonext_cursor from the previous page.
samplebooleannotrue for the suggested first events only.

Request

Terminal
curl "https://api.langbot.ai/v1/sim/events?limit=1"

Response

200 OK

JSON
{
  "ts": 1793685884697,
  "count": 20,
  "next_cursor": "1",
  "partial": false,
  "events": [
    {
      "title": "What nicknames will Trump say before 2027?",
      "sample": false,
      "window": {"to": 1798816200000, "from": 1790861400000},
      "ends_at": 1798815600000,
      "tickers": ["KXTRUMPSAY-26NOV02-ANTI", "KXTRUMPSAY-26NOV02-AUTO"],
      "coverage": {
        "books": 96483,
        "events": 81061,
        "candles": 2,
        "last_ts": 1793614367134,
        "markets": 286,
        "settled": false,
        "first_ts": 1793489241009,
        "phrase_hits": 1919,
        "markets_settled": 75,
        "tickers_with_books": 243,
        "tickers_with_candles": 1
      },
      "event_id": "ev_kxtrumpsaynickname_27jan01",
      "starts_at": 1790863200000,
      "speaker_keys": []
    }
  ]
}

A real response from the API; long lists are cut to their first items.

coverage counts what was recorded: feed events, phrase_hits, order-book snapshots (books) and markets with books.

Errors

StatuscodeWhen
401token_invalidA token was sent and not recognised. Send a valid one, or none to call anonymously.
422validation_errorA parameter failed validation; detail[].loc names it.
429rate_limitedOver your request budget; wait Retry-After seconds.

Every error body is {"detail": …, "code": "…"}; branch on code. All codes: Errors.