# List built-in strategies

Source: https://langbot.ai/docs/api/sim/list-strategies

`GET /v1/sim/strategies`

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

**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

**curl**

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

**Python**

```python
from langbot import LangbotClient

async with LangbotClient() as lb:
    for s in await lb.sim_strategies():
        print(s["name"], s["params"])
```

**TypeScript**

```ts
const res = await fetch("https://api.langbot.ai/v1/sim/strategies");
console.log(await res.json());
```

## 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

| Status | `code` | When |
|---|---|---|
| 401 | `token_invalid` | A token was sent and not recognised. Send a valid one, or none to call anonymously. |
| 429 | `rate_limited` | Over your request budget; wait `Retry-After` seconds. |

Every error body is `{"detail": …, "code": "…"}`; branch on `code`. All codes: [Errors](https://langbot.ai/docs/api#errors).
