API reference · Sim

Get an event study

GET/v1/sim/events/{event_id}/study

How each market's YES mid moved in the seconds and minutes after chosen words were said, with sample sizes and caveats.

On this page

Auth. An API token: Authorization: Bearer lb_… (create one). Signed-in web sessions work too.

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

Path parameters

NameTypeRequiredDescription
event_idstringyesA replayable event (ev_…).

Query parameters

NameTypeRequiredDescription
wordsstringnoComma-separated words or phrases; default every phrase heard.
tickersstringnoComma-separated tickers; default every ticker with books.
horizonsstringnoComma-separated horizons in seconds. Default 5,30,300.
clockstringnoemitted (when the data was available, default) or spoken.
require_countsbooleannoOnly hits Langbot read as counting under the rules. Default false.

Request

Terminal
curl "https://api.langbot.ai/v1/sim/events/ev_kxearningsmentiongs_26oct13/study?words=private%20credit&horizons=5,30,300" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "v": 1,
  "clock": "emitted",
  "horizons_ms": [5000, 30000, 300000],
  "triggers": 3,
  "results": [
    {
      "word": "private credit",
      "ticker": "KXEARNINGSMENTIONGS-26OCT13-PRIV",
      "triggers": 3,
      "priced": 3,
      "horizons": [ { "horizon_ms": 30000, "n": 3, "mean_c": 4.0, "median_c": 3.5, "up": 1.0, "down": 0.0, "flat": 0.0 } ]
    }
  ],
  "caveats": ["n < 10 at the middle horizon"]
}

Price moves in cents. A measurement of the record, not a signal; with few triggers it says little.

Errors

StatuscodeWhen
401auth_requiredNo token was sent.
401token_invalidThe token was not recognised (mistyped, revoked or expired).
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.