Limits and credits
This page is also Markdown, for agents: /api/reference/limits.md, and /llms.txt lists every page.
Limits
Section titled “Limits”| Requests waiting for their reply | 4,096 |
| Subscriptions per connection | 100 |
ids, tokens and where.parent lists |
2,000 |
Tokens in trades and transfers, from token or under parent |
100 |
Accounts followed with balances.subscribe |
100 |
| Rows in a page of history | 200 |
Rows from after_id |
10,000 |
| A message from the client | 64 KiB |
schema has them as limits, and so does hello, without feed_tokens. Going over one is a too_many error, except for these: more than 200 rows in a page of history (limit or history) is a bad_request, more than 10,000 rows after an after_id is too_far_behind, and a message of 64 KiB or more on the WebSocket drops the connection. candles.* take up to 200 tokens and prices.at up to 100 queries, and going over those is a bad_request.
Credits
Section titled “Credits”Every message has credits_used, what it cost:
- A credit per started KiB of the message, uncompressed, at least one.
- A
balances.*result: 5 more for each ofnativeandrhea. - A result with
1Scandles: 1 more per started hundred candles. - Pushes cost only their size.
hello,idle, errors andendcost nothing.
Over HTTP, the X-Credits-Used header of a method’s response has it, for the response’s body. /public_key, /stats, /cosmetics and icons have none.