> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pacifica.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Rate Limits

> Pacifica uses a credit-based rate limiting system with a 60-second rolling window.

### Credit Quotas

The API config key system allows Pacifica to provision higher rate limits to verified users, ensuring real traders have adequate resources while protecting against abuse.

| Tier | Base Credits/60s |
| - | - |
| Unidentified IP | 100 |
| Valid API Config Key | 300 |

These are base quotas and may be increased based on account reputation. The credit is shared across a main account and all its subaccounts. Naturally, higher [fee tier](https://docs.pacifica.fi/trading-on-pacifica/trading-fees.md) grants an account higher rate limits.

| Tier | Credits/60s |
| - | - |
| 1 | 300 |
| 2 | 600 |
| 3 | 1200 |
| 4 | 2400 |
| 5 | 6000 |
| VIP1 | 12000 |
| VIP2 | 24000 |
| VIP3 | 30000 |

### Credit Costs

| Action | Unidentified IP | API Config Key |
| - | - | - |
| Standard request/action | 1 | 1 |
| Order cancellation | 0.5 | 0.5 |
| Heavy GET requests | 3-12 | 1-4 |

When credits are exhausted, requests return HTTP 429.

### WebSocket Limits

| Limit | Value | When exceeded |
| - | - | - |
| Concurrent connections per IP | 255 | Connection upgrade fails with `429` |
| New connections per IP per minute | 255 | Connection upgrade fails with `429` |
| Subscriptions per connection | 500 | Subscribe fails with code `429` |
| Distinct accounts per connection | 500 | Subscribe fails with code `429` |
| Subscribe and unsubscribe messages per minute | 200 | Message fails with code `429` |

Subscription limits apply to each connection. Quotas can be raised for specific accounts.

### Open Order Limits

Each account can hold a limited number of open orders in each market:

| Account | Open orders per market |
| - | - |
| [Fee tier](https://docs.pacifica.fi/trading-on-pacifica/trading-fees.md) 1 | 300 |
| Fee tier 2 and above, and market makers | 1,000 |

An order that would go over the limit fails with code `10` (`OPEN_ORDER_LIMIT_REACHED`). Market and IOC orders do not rest on the book, so the limit does not apply to them.

### Checking Your Quota

> **Note:** All credit values are multiplied by 10 to support fractional costs (e.g., `r=1200` = 120.0 credits).

**REST API** - Response headers:

```
ratelimit: "credits";r=1200;t=32
ratelimit-policy: "credits";q=1250;w=60
```

**WebSocket** - `rl` field in action responses:

```json theme={null}
{"rl": {"r": 1200, "q": 1250, "t": 32}}
```

| Field | Description |
| - | - |
| `r` | Remaining credits |
| `t` | Seconds until refresh |
| `q` | Total quota per window |
| `w` | Window size in seconds |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.