Market Data Endpoint Migration

We’ve redesigned our spot, futures and swaps market data endpoints to be familiar and simpler to use, resulting in the following benefits

  1. Combining the separate /latest and /historical endpoints for each data type.

  2. Consistent pagination for large queries.

  3. Increased max range of 2 years (731 days) for startDate and endDate.

  4. Combining futures and swaps endpoints.

  5. Deprecation of /latest and /historical endpoints

  6. Removal of /api/v2 in the path

Here are tables showing the consolidation of /latest and /historical for spot, futures and swaps

Spot

Data TypeNew EndpointsLegacy (Deprecated Endpoints)Old Documentation URL
Tradeshttps://api.amberdata.com/markets/spot/trades/{pair}https://web3api.io/api/v2/market/spot/trades/{pair}/historicalhttps://docs.amberdata.io/reference/market-trades
Tickershttps://api.amberdata.com/markets/spot/tickers/{pair}https://web3api.io/api/v2/market/spot/tickers/{pair}/historicalhttps://docs.amberdata.io/reference/get-market-ticker-pair-historical
https://web3api.io/api/v2/market/spot/tickers/{pair}/latesthttps://docs.amberdata.io/reference/get-latest-market-ticker
Order Book Eventshttps://api.amberdata.com/markets/spot/order-book-events/{pair}https://web3api.io/api/v2/market/spot/order-book-events/{pair}/historicalhttps://docs.amberdata.io/reference/order-book-updates
Order Book Snapshotshttps://api.amberdata.com/markets/spot/order-book-snapshots/{pair}https://web3api.io/api/v2/market/spot/order-book-snapshots/{pair}/historicalhttps://docs.amberdata.io/reference/get-market-orders

Futures & Swaps

Data TypeNew EndpointsLegacy (Deprecated) EndpointsOld Documentation URL
Funding Rateshttps://api.amberdata.com/markets/futures/funding-rates/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/funding-rates/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-funding-rates-historical-old
https://web3api.io/api/v2/market/{futures|swaps}/funding-rates/{instrument}/latesthttps://docs.amberdata.io/reference/futures-funding-rates-latest
Insurance Fundhttps://api.amberdata.com/markets/futures/insurance-fund/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/insurance-fund/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-insurance-fund-historical
https://web3api.io/api/v2/market/{futures|swaps}/insurance-fund/{instrument}/latesthttps://docs.amberdata.io/reference/futures-insurance-fund-latest
Liquidationshttps://api.amberdata.com/markets/futures/liquidations/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/liquidations/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-liquidations-historical-old
https://web3api.io/api/v2/market/{futures|swaps}/liquidations/{instrument}/latesthttps://docs.amberdata.io/reference/futures-liquidations-latest
Long/Short Ratiohttps://api.amberdata.com/markets/futures/long-short-ratio/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/long-short-ratio/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-long-short-ratio-historical-old
https://web3api.io/api/v2/market/{futures|swaps}/long-short-ratio/{instrument}/latesthttps://docs.amberdata.io/reference/futures-long-short-ratio-latest
Open Interesthttps://api.amberdata.com/markets/futures/open-interest/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/open-interest/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-open-interest-historical-old
https://web3api.io/api/v2/market/{futures|swaps}/open-interest/{instrument}/latesthttps://docs.amberdata.io/reference/futures-open-interest-latest
Order Books Eventshttps://api.amberdata.com/markets/futures/order-book-events/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/order-book-events/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-order-book-events-historical
Order Book Snapshotshttps://api.amberdata.com/markets/futures/order-book-snapshots/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/order-book-snapshots/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-order-book-snapshots-historical
Tickershttps://api.amberdata.com/markets/futures/tickers/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/tickers/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-tickers-historical-old
https://web3api.io/api/v2/market/{futures|swaps}/tickers/{instrument}/latesthttps://docs.amberdata.io/reference/futures-tickers-latest
Tradeshttps://api.amberdata.com/markets/futures/trades/{instrument}https://web3api.io/api/v2/market/{futures|swaps}/trades/{instrument}/historicalhttps://docs.amberdata.io/reference/futures-trades-historical-old

❗️

Deprecation for */latest */historical

All the endpoints listed in the column Legacy (Deprecated) Endpoints will be deprecated on June 28, 2024. These endpoints will be shut off and all requests to them will return errors.

📘

What about Market Data Options?

We will be launching a similar consolidation of the Options API endpoints in an upcoming version.