# Budget REST calls and WebSocket slots

Estimate MadeOnSol account usage, measure shared subscriptions and match the workload to your plan limits.

Access: All self-serve plans

[Compare plans and subscribe](https://madeonsol.com/pricing#pricing)

## Integration choice

Estimate daily calls as active seconds divided by refresh interval, multiplied by distinct uncached queries. Count initial reads and recovery reads separately. Use measured peak concurrent sockets when choosing a plan.

## Implementation steps

1. Use the limits below to budget across the account. A request every five seconds runs 17,280 times in a day. Multiply by active tokens and viewers if they poll independently.
2. Cache identical reads on your backend. Share in-flight requests, fetch only visible panels and use push for supported updates. A webhook is useful for an occasional event that should trigger background work.
3. If you hit a connection limit, list your stream sessions before reconnecting. Check which process owns each session and close only an obsolete one. For REST throttling, slow the request queue and check the response headers before retrying.

## Self-serve account limits

| Plan | REST / day | Standard sockets | DEX sockets | Webhooks |
| --- | ---: | ---: | ---: | ---: |
| Free | 200 | 0 | 0 | 0 |
| Pro | 10000 | 2 | 0 | 3 |
| Ultra | 100000 | 5 | 3 | 10 |
| Business | 500000 | 15 | 6 | 30 |

## Inspect your stream sessions (Pro and above)

~~~bash
curl -H "Authorization: Bearer $MADEONSOL_API_KEY" "https://madeonsol.com/api/v1/stream/sessions"
~~~

## Verify your integration

Record upstream request counts and peak sockets for a representative session. Repeat with twice as many viewers on the same watchlist. Verify shared subscriptions stay within the slot limit and compare the projected daily total with the table.

## Related reference

- [Errors and rate limits](https://madeonsol.com/api-docs#errors)
- [API tier comparison](https://madeonsol.com/api-docs#tier-comparison)

[Canonical guide](https://madeonsol.com/docs/account)
