Fireblocks strives to offer a stable and secure platform at all times. Accordingly, API call traffic is continuously monitored by all parties to identify patterns that might affect the network. API rate limits assure that a single client can't overload the system for other clients.
Error responses with HTTP status code 429 indicate that rate limits have been temporarily exceeded.
API rate limits are set at the API user level. If you regularly receive HTTP 429 responses, do your best to limit the rate of requests, spread them out across minute intervals, or spread them out across multiple API users.
Some common mistakes that can result in receiving many API rate limit errors are:
- Not monitoring 429 errors on the client
- Retry API calls whenever they fail without noticing the error type - causing an escalation in rate limits
- Using too many parallel processes for batch operations
- Monitoring many transactions via polling instead of using webhooks
- Excessively checking gas prices or token prices
Monitor rate limit errors - if you receive 429 errors more than a handful of times a day - something is probably not done properly. Consider what change in the solution architecture can reduce the number of API calls you are making.
Retry API calls reasonably - If you are calling an API periodically - consider not retrying and relying on the next time it will be checked. Additional, an exponential backoff retry strategy is recommended when it is required to try again.
Use Webhooks to monitor applications - using push notifications and webhooks will dramatically reduce the number of API calls you need to make for standard operations. It will reduce the load on both your internal system and the Fireblocks backed.
Use Cache - Some elements do not need to be checked on every transaction or every second - consider using cache for data points that you only need to update periodically.
Developer Sandbox workspaces have a very low rate limit configuration and so you might see many rate limit errors if you try to test for scale.
The Developer Sandbox workspace was not meant for that level of testing, so you should use a Testnet workspace. Testnet environment rate limits are more flexible and handle large amounts of requests for testing.
Updated 8 months ago