What Kind of Crypto Data Can You Access Through API?
Looking for different types of aggregated and standardized data from multiple cryptocurrency exchanges? You have come to the right place! This article will tell you what kind of data you can get with an easy API connection with our Market Data API.
What you gain
By integrating with CoinAPI, you access +350 cryptocurrency exchanges and obtain real-time and historical data. Some date back to 2011 (the exact depth can vary depending on the specific data type and exchange). We offer data granularity ranging from 1 second to 5 years. This allows for detailed analysis and visualization of market data. Below you will find what crypto data you can access.
Trades (Transactions)
CoinAPI provides comprehensive information about trades and transactions. Both terms are used to describe the exchange of assets between buyers and sellers on cryptocurrency exchanges. The data provided for trades and transactions includes:
- Trade Data - This includes details such as the trade ID, timestamp, price, and volume of each trade.
- Historical Trades - You can access historical trade data, which allows you to analyze past trading activity.
- Real-time Trades - CoinAPI offers real-time trade data, enabling you to monitor current market activity as it happens.
1[
2 {
3 "symbol_id": "BINANCE_SPOT_BTC_USDT",
4 "time_exchange": "2024-01-01T00:00:00.000000Z",
5 "time_coinapi": "2024-01-01T00:00:00.0045420Z",
6 "uuid": "001e66b6-3ee2-4a31-8d02-091780c044a2",
7 "price": 42283.58,
8 "size": 0.00069,
9 "taker_side": "SELL",
10 "id_trade": "3344747379",
11 "id_order_maker": "96bd6411-0005-0000-0000-000000000000",
12 "id_order_taker": "96bd6559-0005-0000-0000-000000000000"
13 },
14 {
15 "symbol_id": "BINANCE_SPOT_BTC_USDT",
16 "time_exchange": "2024-01-01T00:00:00.0010000Z",
17 "time_coinapi": "2024-01-01T00:00:00.0045353Z",
18 "uuid": "acd32990-8d34-41e1-a386-38216c15cea2",
19 "price": 42283.59,
20 "size": 0.00144,
21 "taker_side": "BUY",
22 "id_trade": "3344747380",
23 "id_order_maker": "96bd64ab-0005-0000-0000-000000000000",
24 "id_order_taker": "96bd655a-0005-0000-0000-000000000000"
25 },
26 {
27 "symbol_id": "BINANCE_SPOT_BTC_USDT",
28 "time_exchange": "2024-01-01T00:00:00.0030002Z",
29 "time_coinapi": "2024-01-01T00:00:00.0069037Z",
30 "uuid": "6e98275b-b7be-49d4-a697-9e4c2413e5fb",
31 "price": 42283.58,
32 "size": 0.00069,
33 "taker_side": "SELL",
34 "id_trade": "3344747381",
35 "id_order_maker": "96bd6411-0005-0000-0000-000000000000",
36 "id_order_taker": "96bd655b-0005-0000-0000-000000000000"
37 }
38]
Trades example for BINANCE_SPOT_BTC_USDT
This data not only serves traders but also financial analysts, academic researchers, developers, and data scientists.
Exchange rates
This is the value at which one currency can be exchanged for another. It serves as a measure of the value of one currency relative to another. By connecting with CoinAPI, you will be able to learn the exchange rating of multiple cryptocurrencies on more than 350 exchanges. The minimal latency guaranteed by the connection via our API means that this data can be used, for example, in statistical arbitrage.
1{
2 "time": "2024-08-20T08:37:56.0000000Z",
3 "asset_id_base": "BTC",
4 "asset_id_quote": "USD",
5 "rate": 60769.259091524554011334614945
6}
Exchange rate for BTC/USD
Read the full guide on cryptocurrency exchange rates.
Find out why is the role of latency in cryptocurrency data crucial.
Quotes - snapshots of current trading information
Quotes provide trading information for assets, offering critical data for buyers and sellers to swiftly make informed decisions. Specifically, quotes display the best bid and ask prices for a particular trading pair on an exchange, serving as a key indicator of current market conditions and the spread between buy and sell orders. This data is also referred to as passive level 1 data.
Here are some key components of quotes in the Market Data API:
- Best Bid and Ask Prices - Quotes provide information about the highest price a buyer is willing to pay (bid) and the lowest price a seller is willing to accept (ask) for a specific trading pair.
- Volume Information - Along with the prices, quotes also include the volume resting on the best bid and ask. If the volume is zero, it indicates that the size is unknown.
- Timestamps - Quotes include timestamps for when the quote was received by the exchange (time_exchange) and when it was received by CoinAPI (time_coinapi).
1[
2 {
3 "symbol_id": "BINANCE_SPOT_BTC_USDT",
4 "time_exchange": "2024-01-01T00:00:00.0227853Z",
5 "time_coinapi": "2024-01-01T00:00:00.0227853Z",
6 "ask_price": 42283.59,
7 "ask_size": 2.81993,
8 "bid_price": 42283.58,
9 "bid_size": 9.09329
10 },
11 {
12 "symbol_id": "BINANCE_SPOT_BTC_USDT",
13 "time_exchange": "2024-01-01T00:00:00.0333546Z",
14 "time_coinapi": "2024-01-01T00:00:00.0333546Z",
15 "ask_price": 42283.59,
16 "ask_size": 2.81861,
17 "bid_price": 42283.58,
18 "bid_size": 9.09329
19 },
20 {
21 "symbol_id": "BINANCE_SPOT_BTC_USDT",
22 "time_exchange": "2024-01-01T00:00:00.0384892Z",
23 "time_coinapi": "2024-01-01T00:00:00.0384892Z",
24 "ask_price": 42283.59,
25 "ask_size": 2.81861,
26 "bid_price": 42283.58,
27 "bid_size": 9.09277
28 },
29 {
30 "symbol_id": "BINANCE_SPOT_BTC_USDT",
31 "time_exchange": "2024-01-01T00:00:00.0384961Z",
32 "time_coinapi": "2024-01-01T00:00:00.0384961Z",
33 "ask_price": 42283.59,
34 "ask_size": 2.81861,
35 "bid_price": 42283.58,
36 "bid_size": 9.09159
37 }
38]
Quotes for BINANCE_SPOT_BTC_USDT
For more detailed information, you can refer to the CoinAPI documentation on quotes:
https://docs.coinapi.io/market-data/rest-api/quotes
Order book data
An order book is a real-time updated list of buy and sell orders on a trading platform for a financial instrument (like cryptocurrencies), showing the quantity of the instrument being bid or offered at various price levels. Provides valuable clues as to whether prices are about to rise or fall.
Order book - Level 1, Level 2, Level 3
CoinAPI delivers full-depth order book data:
- Level 1 (L1) - Provides the best bid and ask prices along with their sizes. This is the most basic level of order book data and is often used for quick reference to the current market price.
- Level 2 (L2) - Includes multiple price levels on both the bid and ask sides. It provides more depth than L1, showing the market depth beyond the best bid and ask prices. This level is useful for understanding the supply and demand at different price levels.
- Level 3 (L3) - Offers the most granular view of the order book, including individual orders. It provides detailed information about each order, such as order ID, price, size, and the type of update (e.g., add, update, delete). This level is essential for high-frequency trading and in-depth market analysis.
1{
2 "symbol_id": "BINANCE SPOT BTC USDT",
3 "time_exchange": "2024-08-20T08:40:45.208000000Z",
4 "time_coinapi": "2024-08-20T08:40:45.213103Z",
5 "asks": [
6 {
7 "price": 60782.32000000,
8 "size": 1.04093000
9 },
10 {
11 "price": 60782.33000000,
12 "size": 0.00147000
13 },
14 {
15 "price": 60782.45000000,
16 "size": 0.00009000
17 },
18 {
19 "price": 60782.46000000,
20 "size": 0.03877000
21 },
22 {
23 "price": 60782.47000000,
24 "size": 0.00616000
25 },
26 {
27 "price": 60782.59000000,
28 "size": 0.00096000
29 },
30 {
31 "price": 60782.60000000,
32 "size": 0.09865000
33 },
34 {
35 "price": 60782.64000000,
36 "size": 0.00087000
37 },
38 {
39 "price": 60782.72000000,
40 "size": 0.00009000
41 },
42 {
43 "price": 60782.81000000,
44 "size": 0.00086000
45 },
46 {
47 "price": 60782.85000000,
48 "size": 0.00107000
49 },
50 {
51 "price": 60783.34000000,
52 "size": 0.00633000
53 },
54 {
55 "price": 60783.57000000,
56 "size": 0.32092000
57 },
58 {
59 "price": 60784.00000000,
60 "size": 0.04127000
61 },
62 {
63 "price": 60785.89000000,
64 "size": 0.10937000
65 }
66 ]
67}
Orderbooks L3 for BINANCE_SPOT_BTC_USDT
Order book snapshots
Order book snapshots provide a complete view of the order book at a specific point in time. They capture the state of the order book, including all the bids and asks, and are useful for getting a comprehensive picture of market depth. CoinAPI offers various levels of order book snapshots:
- Book 5: Top 5 levels from each side of the book.
- Book 20: Top 20 levels from each side of the book.
- Book 50: Top 50 levels from each side of the book.
The frequency of order book snapshots can vary, but CoinAPI aims to provide real-time updates with minimal latency.
OHLCV
OHLCV (Open, High, Low, Close, Volume) is a summary of changes in the price of a trading instrument and trading activity over a specified period. The Open and Closed values indicate the price at which the security was first traded and the last price at the end of the period, respectively. The High and Low values represent the maximum and minimum prices during the period. The volume shows the total volume traded. OHLCV gives a detailed insight into price changes and the number of transactions that took place over a certain time. This data is available in various granularities, from 1 second to 5 years.
1[
2 {
3 "time_period_start": "2024-01-01T00:00:00.000000Z",
4 "time_period_end": "2024-01-02T00:00:00.000000Z",
5 "time_open": "2024-01-01T00:00:00.000000Z",
6 "time_close": "2024-01-01T23:59:59.999999Z",
7 "price_open": 42283.58,
8 "price_high": 44184.1,
9 "price_low": 42100.77,
10 "price_close": 44179.55,
11 "volume_traded": 26187.108389999987,
12 "trades_count": 1070662
13 },
14 {
15 "time_period_start": "2024-01-02T00:00:00.000000Z",
16 "time_period_end": "2024-01-03T00:00:00.000000Z",
17 "time_open": "2024-01-02T00:00:00.000000Z",
18 "time_close": "2024-01-02T23:59:59.999999Z",
19 "price_open": 44179.55,
20 "price_high": 45879.63,
21 "price_low": 44148.34,
22 "price_close": 44946.91,
23 "volume_traded": 62156.20929000035,
24 "trades_count": 2151078
25 },
26 {
27 "time_period_start": "2024-01-03T00:00:00.000000Z",
28 "time_period_end": "2024-01-04T00:00:00.000000Z",
29 "time_open": "2024-01-03T00:00:00.000000Z",
30 "time_close": "2024-01-03T23:59:59.999999Z",
31 "price_open": 44946.91,
32 "price_high": 45600,
33 "price_low": 40750,
34 "price_close": 42845.23,
35 "volume_traded": 81194.36704000004,
36 "trades_count": 2658036
37 },
38 {
39 "time_period_start": "2024-01-04T00:00:00.000000Z",
40 "time_period_end": "2024-01-05T00:00:00.000000Z",
41 "time_open": "2024-01-04T00:00:00.000000Z",
42 "time_close": "2024-01-04T23:59:59.999999Z",
43 "price_open": 42845.23,
44 "price_high": 44729.88,
45 "price_low": 42613.77,
46 "price_close": 44151.1,
47 "volume_traded": 48038.06097000002,
48 "trades_count": 1819941
49 },
50 {
51 "time_period_start": "2024-01-05T00:00:00.000000Z",
52 "time_period_end": "2024-01-06T00:00:00.000000Z",
53 "time_open": "2024-01-05T00:00:00.000000Z",
54 "time_close": "2024-01-05T23:59:59.999999Z",
55 "price_open": 44151.1,
56 "price_high": 44357.46,
57 "price_low": 42450,
58 "price_close": 44145.12,
59 "volume_traded": 40086.37648000012,
60 "trades_count": 2064843
61 }
62]
This data structure contains daily trading information, including opening and closing times, price ranges (open, high, low, close), trading volume, and the number of trades for each day from January 1st to January 5th, 2024.
Read more about OHLCV data or check in doumentation.
What’s more?
In addition to those mentioned above, CoinAPI also provides data of varying levels of detail needed to better understand the crypto market.
Metadata
Metadata in CoinAPI provides essential information about exchanges, assets, and symbols. This includes details such as the name of the exchange, the type of asset (e.g., cryptocurrency, fiat), and the specific symbols used for trading pairs. Metadata is crucial for understanding the context of the data you are working with, ensuring that you can accurately interpret and utilize the information provided by CoinAPI. It helps in mapping and standardizing data across different exchanges, making it easier to integrate and analyze.
Raw Data
Raw data represents the most granular level of market information available. Unlike aggregated data types, raw data captures every single market event as it happens, without any summarization or aggregation. This includes individual trades, order book updates, and quote changes. Raw data is disseminated continuously, ensuring that users have access to the most immediate and detailed market insights. This type of data is particularly valuable for custom analysis, developing unique trading algorithms, and conducting in-depth market research.
Tick-by-Tick Data
Tick-by-tick data is a subset of raw data that provides a detailed record of every single trade and quote update in the market. Each "tick" represents a single event, such as a trade execution or a change in the best bid or ask price. This data is invaluable for high-frequency trading strategies, quantitative analysis, and backtesting trading models. CoinAPI offers access to historical tick-by-tick data through flat files, allowing users to perform comprehensive historical analysis and develop data-driven trading strategies.
Get to know Market Data API better.
Something new: crypto indexes
In addition to the above data available through the Market Data API, you can now also collect information on crypto indices thanks to Indexes API. Crypto indexes, such as those provided by CoinAPI, are typically calculated by tracking a selection of cryptocurrencies based on specific criteria, such as market capitalization. The index value is derived from the prices of the included cryptocurrencies, which are weighted according to their market cap or other factors. This allows the index to reflect the overall performance of the cryptocurrency market or its segment.
Stay up-to-date with the latest CoinApi News.
I Agree to CoinApi’s Privacy Policy*