Batch Operations
Process multiple API requests in single batch operations. Reduce API calls by up to 90% and improve performance for bulk data retrieval and analysis.
Overview
Batch operations allow you to send multiple API requests in a single HTTP request. This reduces API call counts, improves latency, and is ideal for bulk data retrieval, monitoring multiple symbols, or performing batch analysis. Send up to 100 requests per batch.
Batch Request Format
POST to /v1/batch with an array of request objects:
Batch Response Format
Receive all responses in a single batch response object, indexed by request ID:
Code Examples
Python: Batch Whale Positions for Multiple Symbols
Benefits of Batch Operations
Reduced API Calls
Send 100 requests in one batch = 1 API call instead of 100. Massive quota savings for high-volume integrations.
Improved Performance
Single round-trip HTTP request instead of 100. Lower latency and faster data retrieval for bulk operations.
Atomic Transactions
All requests in a batch are processed together. No partial failures across batch operations.
Easier Error Handling
Process individual response statuses for each request while handling the batch as a unit.
Use Cases
Monitoring multiple trading pairs: Fetch whale positions for 50 symbols in one batch request.
Daily reporting: Collect all relevant data (funding rates, OI, liquidations) in a single batch.
Portfolio analysis: Analyze positions across multiple symbols and exchanges efficiently.
Webhook processing: Batch multiple webhook events into single API calls for analysis.
Optimize Your Queries
Use batch operations to maximize efficiency and reduce API quota usage.
View API Reference