Skip to content

Limits and credits

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.

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 of native and rhea.
  • A result with 1S candles: 1 more per started hundred candles.
  • Pushes cost only their size.
  • hello, idle, errors and end cost 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.