API reference · Monitoring

List fills

GET/v1/bots/{bot_id}/fills

A bot's fills, newest first, reported by the bot or attached from a linked wallet.

On this page

Auth. An account token (Authorization: Bearer lb_…) or a signed-in web session. A report-only token (lbr_…) is refused here with 403 scope_denied.

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

Parameters

Path parameters

NameTypeRequiredDescription
bot_idstringyesThe bot id (bot_…).

Query parameters

NameTypeRequiredDescription
cursorstringnonext_cursor from the previous page.
limitintegernoPage size. 1 to 500. Default 100.
venuestringnoOnly this venue.
tickerstringnoOnly this market.
sourcestringnoclient (reported by the bot) or chain (from a linked wallet).
sinceintegernoOldest ts, ms epoch.
untilintegernoNewest ts, ms epoch.

Request

Terminal
curl "https://api.langbot.ai/v1/bots/bot_01M6G72RFQRQ8JGNG8T1447GGP/fills?limit=1" \
  -H "Authorization: Bearer $LANGBOT_API_TOKEN"

Response

200 OK

JSON
{
  "fills": [
    {
      "client_event_id": "s1:3",
      "type": "fill",
      "ts": 1793693117653,
      "venue": "kalshi",
      "ticker": "KXMENTION-26NOV03-TARIFF",
      "side": "yes",
      "action": "sell",
      "price": 0.55,
      "count": 5.0,
      "fee": 0.04,
      "liquidity": "taker",
      "order_id": "o-2",
      "client_order_id": null,
      "text": null,
      "meta": null,
      "source": "client",
      "applied": true,
      "received_at": 1793693147656
    }
  ],
  "next_cursor": "WzE3OTM2OTMxMTc2NTMsICJzMTozIl0"
}

Errors

StatuscodeWhen
404not_foundNo bot with that id on your account (or it was deleted).
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.