> For the complete documentation index, see [llms.txt](https://docs.imperial.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperial.trade/developers/api.md).

# API

REST and WebSocket access to market data, account data and trading.

Imperial's REST and WebSocket API covers market data, account data and trading. The full reference lists every endpoint.

* **Base URL:** `https://api.imperial.trade/api/v1`
* **Reference:** [api.imperial.trade/api/v1/docs](https://api.imperial.trade/api/v1/docs)
* **OpenAPI spec:** [api.imperial.trade/api/v1/openapi.json](https://api.imperial.trade/api/v1/openapi.json)

Start with the Quickstart at the top of the reference. It goes from a signed-in wallet to a first order.

### Rate limits

| Client        | Limit                                                |
| ------------- | ---------------------------------------------------- |
| Signed in     | 600 requests per minute per wallet, bursts up to 120 |
| Not signed in | 600 requests per minute per IP, bursts up to 120     |

Order book and halt polling have a separate, higher allowance. Running a bot that needs more? Ask on [Discord](https://discord.gg/j2puEpu4xU).

### Example

```bash
curl https://api.imperial.trade/api/v1/armada/markets
```
