CoinAPI Market Data REST API
Cryptocurrency market data: metadata, quotes, books, trades, OHLCV, rates, metrics, options.
Finance & banking#cryptocurrency
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Cryptocurrency market data: metadata, quotes, books, trades, OHLCV, rates, metrics, options.
Endpoints 52
Trades
- GETHistorical data
/v1/trades/:symbol_id/historyGet history transactions from specific symbol, returned in time ascending order. This endpoint supports hourly granularity for APITP data with automatic… - GETLatest data by symbol_id
/v1/trades/:symbol_id/latestGet latest trades executed up to 1 minute ago. Latest data is always returned in time descending order. - GETLatest data
/v1/trades/latestGet latest trades executed up to 1 minute ago. Latest data is always returned in time descending order.
Metadata
- GETList active symbol mapping for the exchange
/v1/symbols/map/:exchange_id - GETList all active symbols
/v1/symbols/:exchange_id/activeRetrieves all currently active (listed) symbols, with optional filtering. :::info "price_precision" and "size_precision" are data precisions and are not… - GETList all historical symbols for an exchange.
/v1/symbols/:exchange_id/historyThis endpoint provides access to symbols that are no longer actively traded or listed on a given exchange. The data is provided with pagination support. - GETList symbols not yet mapped to a CoinAPI symbol_id for an exchange.
/v1/symbols/:exchange_id/unmappedReturns raw exchange symbols that MarketAccess has received (KVP data available) but that have not been mapped to a CoinAPI symbol_id yet. Since symbol_id is… - GETGet a single symbol by its exchange-native symbol identifier.
/v1/symbols/:exchange_id/by-exchange-symbol/:exchange_symbol_idLooks up a symbol by symbol_id_exchange regardless of mapping status - this also returns symbols that have not been mapped to a CoinAPI symbol_id yet (see… - GETList all exchanges
/v1/exchangesGet a detailed list of exchanges provided by the system. :::info Properties of the output are providing aggregated information from across all symbols related… - GETList all exchanges by exchange_id
/v1/exchanges/:exchange_id - GETList of icons for the exchanges
/v1/exchanges/icons/:size - GETList all blockchain chains
/v1/chainsRetrieves all blockchain chains supported by the system. :::info Properties of the output are providing aggregated information from across all symbols related… - GETList all chains by chain ID
/v1/chains/:chain_id - GETList all assets
/v1/assetsRetrieves all assets. :::info Our asset identifiers are aligned with the ISO 4217 currency codes standard only for fiat money (government or law regulated… - GETList all assets by asset ID
/v1/assets/:asset_id - GETList all asset icons
/v1/assets/icons/:sizeGets the list of icons (of the given size) for all the assets.
Quotes
- GETHistorical data
/v1/quotes/:symbol_id/historyGet historical quote updates within requested time range, returned in time ascending order. This endpoint supports hourly granularity for APITP data with… - GETCurrent data
/v1/quotes/currentGet current quotes for all symbols or for a specific symbol. :::info When requesting current data for a specific symbol, output is not encapsulated into JSON… - GETCurrent quotes for a specific symbol
/v1/quotes/:symbol_id/current - GETLatest data
/v1/quotes/latestGet latest updates of the quotes up to 1 minute ago. Latest data is always returned in time descending order. - GETLatest quote updates for a specific symbol
/v1/quotes/:symbol_id/latest
Order Book L3
- GETCurrent order books
/v1/orderbooks3/current - GETCurrent order book by symbol_id
/v1/orderbooks3/:symbol_id/currentRetrieves the current L3 order book for the specified symbol. L3 order books include individual order IDs for each price level.
Order Book
- GETCurrent depth of the order book
/v1/orderbooks/:symbol_id/depth/currentRetrieves the current depth of the order book for the specified symbol. - GETHistorical data
/v1/orderbooks/:symbol_id/historyGet historical order book snapshots for a specific symbol within time range, returned in time ascending order. :::info The historical order book data via the… - GETGet current order book
/v1/orderbooks/:symbol_id/currentRetrieves the current order book for the specified symbol.
Options
- GETCurrent data by Exchange
/v1/options/:exchange_id/currentGet current options data for a specific exchange. Returns option data grouped by underlying asset, quote currency, and expiration time, with quotes for both…
OHLCV
- GETList all periods
/v1/ohlcv/periodsGet full list of supported time periods available for requesting OHLCV timeseries data. Available periods Time unit | Period identifiers --------- |… - GETHistorical data
/v1/ohlcv/:symbol_id/history?period_id=stringGet OHLCV timeseries data returned in time ascending order. Data can be requested by the period and for the specific symbol eg BITSTAMP_SPOT_BTC_USD, if you… - GETHistorical data by exchange
/v1/ohlcv/exchanges/:exchange_id/history?period_id=string&time_start=string&time_end=stringGet OHLCV timeseries data returned in time ascending order. Data can be requested by the period and for the specific exchange eg BITSTAMP :::info The OHLCV… - GETLatest data
/v1/ohlcv/:symbol_id/latest?period_id=stringGet OHLCV latest timeseries data returned in time descending order. Data can be requested by the period and for the specific symbol eg BITSTAMP_SPOT_BTC_USD,…
Metrics V1
- GETListing of all supported metrics by CoinAPI
/v1/metrics/listingGet all data metrics. - GETListing of all supported exchange metrics
/v1/metrics/exchange/listing?exchange_id=stringGet data metrics for exchange. Returns both exchange-level and symbol-level metrics. For exchange-level metrics, the symbol_id field will be null. For… - GETCurrent metrics for given exchange
/v1/metrics/exchange/current?exchange_id=stringGet current exchange metrics values. - GETHistorical metrics for the exchange
/v1/metrics/exchange/history?metric_id=string&exchange_id=stringGet exchange metrics history. - GETListing of all supported metrics for symbol
/v1/metrics/symbol/listingGet data metrics for symbol. Returns only symbol-level metrics (entries that have a symbol associated). The symbol_id field is always populated with the… - GETCurrent metrics for given symbol
/v1/metrics/symbol/currentGet current symbol metrics. - GETHistorical metrics for symbol
/v1/metrics/symbol/history?metric_id=string&symbol_id=stringGet symbol metrics history. - GETListing of all supported metrics for asset
/v1/metrics/asset/listingGet data metrics for asset. - GETCurrent metrics for given asset
/v1/metrics/asset/currentGet current asset metrics. - GETHistorical metrics for asset
/v1/metrics/asset/history?metric_id=string&exchange_id=stringGet asset metrics history.
Metrics V2
- GETListing of all supported metrics
/v2/metrics/listingGet all metrics available in the system. - GETListing of metrics available for specific exchange
/v2/metrics/exchange/listing?exchange_id=stringGet all metrics that are actually available for the specified exchange. - GETHistorical metrics for the exchange
/v2/metrics/exchange/history?metric_id=string&exchange_id=stringGet exchange metrics history. - GETHistorical metrics for the asset
/v2/metrics/asset/history?metric_id=string&asset_id=stringGet asset metrics history. - GETHistorical metrics for the chain
/v2/metrics/chain/history?metric_id=string&chain_id=stringGet chain metrics history. - GETListing of metrics available for specific asset
/v2/metrics/asset/listing?asset_id=stringGet all metrics that are actually available for the specified asset. - GETListing of metrics available for specific chain
/v2/metrics/chain/listing?chain_id=stringGet all metrics that are actually available for the specified blockchain chain.
Exchange Rates
- GETGet specific rate
/v1/exchangerate/:asset_id_base/:asset_id_quoteRetrieves the exchange rate for a specific base and quote asset at a given time or the current rate. :::info If you are using an exchange rate for… - GETGet all current rates
/v1/exchangerate/:asset_id_baseGet the current exchange rate between requested asset and all other assets. :::info If you are using an exchange rate for mission-critical operations, then… - GETTimeseries periods
/v1/exchangerate/history/periodsYou can also obtain historical exchange rates of any asset pair, grouped into time periods. Get full list of supported time periods available for requesting… - GETTimeseries data
/v1/exchangerate/:asset_id_base/:asset_id_quote/historyGet the historical exchange rates between two assets in the form of the timeseries.
API details
- Base URL
https://rest.coinapi.io- Authentication
- An API key in the Authorization header
A bearer token in the Authorization header - Operations
- 52 operations on 52 pathsGET 52
- Main resources
- Metadata 13Metrics V1 10Metrics V2 7Quotes 5Exchange Rates 4OHLCV 4Order Book 3Trades 3Order Book L3 2Options 1
- Response formats
application/jsontext/jsontext/plain- Description format
- OpenAPI 3.0.4, API version
v1 - Links
- OpenAPI document · Support
- Listed from
- Coinapi's published OpenAPI description
How to test the CoinAPI Market Data REST API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the CoinAPI Market Data REST API collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the Authorization header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Historical data” (GET /v1/trades/:symbol_id/history), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the CoinAPI Market Data REST API?
Cryptocurrency market data: metadata, quotes, books, trades, OHLCV, rates, metrics, options. It is listed under Finance & banking and has 52 endpoints.
Who publishes the CoinAPI Market Data REST API?
It is listed from Coinapi's public API description (an OpenAPI document), not published by Coinapi on Swastik Codes. Anyone who controls coinapi.io can claim the profile by adding a DNS TXT record.
What is the base URL of the CoinAPI Market Data REST API?
Requests go to https://rest.coinapi.io. Endpoint paths are added to this base URL.
How do I authenticate with the CoinAPI Market Data REST API?
It accepts 2 methods: an API key in the Authorization header; A bearer token in the Authorization header.
How many endpoints does the CoinAPI Market Data REST API have?
52 operations on 52 paths (52 GET). The largest groups are Metadata, Metrics V1, Metrics V2, Quotes.
Is forking the CoinAPI Market Data REST API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.