2025-01-08
We are excited to announce upcoming improvements being made to our Batch API endpoints! As part of our commitment to delivering the best developer experience, we will be introducing new versioned Batch endpoints under the/markets prefix by the end of March 2025 (or sooner). These changes will provide a more consistent and intuitive URI structure, improved usability, and enhanced scalability.
What’s Changing?
New Endpoint Structure- The legacy Batch endpoints (e.g.,
market/options/open-interest/exchange/{exchange}/historical) will be replaced by new versioned endpoints using the/marketsprefix and a streamlined naming convention:- Example:
market/options/open-interest/exchange/{exchange}/historical→/markets/options/batch-open-interest/{exchange}
- Example:
- The new endpoints will support the following parameters (instruments, startDate, endDate, timeInterval, timeFormat) and will remain functional with the following changes:
pairbecomesinstrumentsexchangeis a required path parameterinstrumentsis a required parameter- The
startDateandendDateparameters cannot retrieve data older than 62 days. Any requests attempting to access data beyond this limit will result in an error. Default behavior will change to return only the previous 62 days of data. timeIntervalwill no longer accepttickorticks(only minutes, hours, days)timeFormatremains unchanged (keep existing functionality)- All new endpoints will use pagination (
nextURL) - All new endpoints accept two new headers (same functionality as the other new versioned endpoints):
api-versionAccept-Encoding
Deprecation Timeline
| Action | Date |
|---|---|
| Announcement of changes | 2025-01-08 |
| New endpoints available | 2025-03-31 (or sooner) |
| Legacy endpoints deprecated | 2025-06-01 |
Affected Endpoints
The following legacy endpoints will be replaced:| Legacy Endpoint | Future New Endpoint |
|---|---|
market/futures/funding-rates/exchange/{exchange}/historical | /markets/futures/batch-funding-rates/{exchange} |
market/futures/ohlcv/exchange/{exchange}/historical | /markets/futures/batch-ohlcv/{exchange} |
market/futures/open-interest/exchange/{exchange}/historical | /markets/futures/batch-open-interest/{exchange} |
market/options/ohlcv/exchange/{exchange}/historical | /markets/options/batch-ohlcv/{exchange} |
market/options/open-interest/exchange/{exchange}/historical | /markets/options/batch-open-interest/{exchange} |
market/spot/ohlcv/exchange/{exchange}/historical | /markets/spot/batch-ohlcv/{exchange} |
market/swaps/ohlcv/exchange/{exchange}/historical | /markets/futures/batch-ohlcv/{exchange} |
market/swaps/funding-rates/exchange/{exchange}/historical | /markets/futures/batch-funding-rates/{exchange} |
market/swaps/open-interest/exchange/{exchange}/historical | /markets/futures/batch-open-interest/{exchange} |
What You Need to Do
- Update your API calls to use the new
/marketsendpoints once they are available. - Review your applications and ensure compatibility with the new endpoint structure.
- Test the new endpoints during the migration period to confirm they meet your requirements.