API reference · Sim

List built-in strategies

GET/v1/sim/strategies

The built-in strategies the simulator runs on the server, their parameters and defaults, and the fill model.

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.

Request

Terminal
curl "https://api.langbot.ai/v1/sim/strategies"

Response

200 OK

JSON
{
  "count": 5,
  "strategies": [
    {
      "name": "buy_yes_near_threshold",
      "params": {"qty": 10, "max_price": 0.8, "min_progress": 0.5, "min_needed": 3, "min_confidence": 0.6},
      "doc": "Buy Yes (IOC, up to max_price) once a multi-mention market's verified count reaches\n    min_progress of the mentions it needs."
    },
    {
      "name": "buy_yes_on_first_counting_hit",
      "params": {"qty": 10, "max_price": 0.95, "min_confidence": 0.6, "legacy_counts": true},
      "doc": "Buy Yes (IOC, up to max_price) on the first counting phrase hit of each market."
    }
  ],
  "default_latency_ms": 250,
  "latency_shifts_ms": [0, 2000],
  "fee_model": {"taker_rate": 0.07, "maker_rate": 0.0175},
  "custom_code": "client-side only: langbot sim run --strategy my_bot.py"
}

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

Errors

StatuscodeWhen
401token_invalidA token was sent and not recognised. Send a valid one, or none to call anonymously.
429rate_limitedOver your request budget; wait Retry-After seconds.

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