fbpx
Tag

API Archives - Coinscious

Cryptocurrency Market Data: Supported Exchanges, Tokens, Trading Pairs

Market Data: Supported Exchanges, Tokens & Trading Pairs

By | Cryptocurrency, Market Data | No Comments

Coinscious provides data on various cryptocurrency exchanges, tokens, and trading pairs. To see whether the data you require is available, you can conveniently check through the following three endpoints in our Market Data API.

Supported Exchanges

  • A complete list of exchanges supported by Coinscious can be obtained by sending a GET request to the endpoint: https://api.coinscious.org/exchanges.
  • In addition to the names, you will also receive additional information such as their execution fees, withdrawal fees, and margin funding requirements.

Shell Example

Python Example

Java Example

Supported Tokens

  • A complete list of tokens supported by Coinscious can be obtained by sending a GET request to the endpoint https://api.coinscious.org/tokens.
  • The returned data will contain the symbol, English, and Chinese name of all cryptocurrencies.

Shell Example

Python Example

Java Example

Supported Trading Pairs

Shell Example

Python Example

Java Example

Resources

Links

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Cryptocurrency Market Data: Live Stream Trade Data

Market Data: Live Stream Trade Data

By | Cryptocurrency, Market Data | No Comments

What Is Trade Data?

  • Trade data is information about a cryptocurrency trade that was transacted. This data includes the price, amount, cryptocurrency exchange where it occurred, and time when it occurred.

How To Obtain Live Stream Trade Data?

  • Coinscious provides trade data specific to a trading pair and exchange in a live stream format through our WebSocket Market Data API.
  • To subscribe to the data, send { subscribe: “trade”, msg: {exchange: <exchange>, pair: <pair>} }, and to unsubscribe, send { unsubscribe: “trade”,msg: {exchange: <exchange>, pair: <pair>} }. Once you are subscribed, you will receive real-time information about trades as they happen until you unsubscribe. 
Name Required Type Description
exchange Yes string Exchanges supported
pair Yes string Token Pair supported

Python Example

Java Example

Resources

Links

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Cryptocurrency Market Data: Live Stream Order Book

Market Data: Live Stream Order Book

By | Cryptocurrency, Market Data | No Comments

What Are Order Books?

  • Limit order books are electronic lists of open buy and sell orders for a specific asset.
  • Order books list the bids and asks available at each price level.
  • They are arranged with the best offered prices at the top, meaning the lowest ask limit order prices will be at the top of the ask order book, and the highest bid limit prices will be at the top of the bid order book.

Why Use Order Books?

  • Order book data is valuable as it can reveal more information about the market than simply looking at the last traded price or the mid-price.
  • For instance, order books can tell you about what prices other people in the market are willing to buy and sell at, and the relative amount can indicate whether it will be easier for the price to move up or down.

How To Obtain Order Book Data?

  • Coinscious provides order book data specific to a trading pair and exchange in a live stream format through our WebSocket Market Data API.
  • To subscribe to the data, send { subscribe: <subscribe>, msg: {exchange: <exchange>, pair: <pair>} }, and to unsubscribe, send { unsubscribe: <subscribe>,msg: {exchange: <exchange>, pair: <pair>} }. Once you are subscribed, you will receive real-time information about the order book as they change over time until you unsubscribe.
  • In addition to specifying the cryptocurrency trading pair and the exchange, there is also a <subscribe> parameter. The <subscribe> parameter can take multiple values and controls the types of order book data that you will receive.
  • orderbook5, orderbook10, orderbook20 modes are limit order books that respectively provide the top 5, 10, and 20 asks or bids of an order book.
  • snapshot and orderbookStream modes provide Level 2 order book data. snapshot is the full order book that includes every price level and amount at each timestep, whereas orderbookStream provides streamed data in the form of operations to be applied to the previous timestep’s order book.
  • orderbookL3 and orderbookL3Stream modes both provides the original depth of market data from exchanges, and are the snapshot and streamed versions of the data, respectively.
Name Required Type Description
subscribe Yes string orderbook mode, value supported: orderbook, orderbook5, orderbook10, orderbook20, orderbookStream, orderbookL3, orderbookL3Stream
unsubscribe Yes string orderbook mode, value supported: orderbook, orderbook5, orderbook10, orderbook20, orderbookStream, orderbookL3, orderbookL3Stream
exchange Yes string Exchanges supported
pair Yes string Token Pair supported

Python Example

Java Example

Resources

Links

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Cryptocurrency Market Data: Exchange VWAP

Market Data: Exchange VWAP

By | Cryptocurrency, Market Data | No Comments

What Is VWAP Data?

  • VWAP data is a form of cryptocurrency market data and stands for volume weighted average price. 
  • VWAP is the average price of an asset within an interval, and this average is calculated by weighing the prices proportionally to the volume traded at that price.

How To Obtain Exchange VWAP Data?

  • Coinscious provides Exchange VWAP data for a variety of exchanges and trading pairs, as well as for intervals ranging from one minute to one day.
  • The exchange VWAP endpoint provides the VWAP of a specific trading pair on a single exchange.
  • This is different from the VWAP data endpoint, which provides the price of a cryptocurrency across multiple exchanges and markets and is denominated in a fiat currency. Learn more about our VWAP data: here.
  • Exchange VWAP data can be obtained from our Market Data API by making a GET request to the endpoint  https://api.coinscious.org/exchange-vwap/{exchange}/{pair}. 
  • Optional parameters that can be included include the interval, start and end times, and limit. For instance, if you want the ETH/BTC VWAP at Binance at one minute intervals, then you would make a GET request to this url: https://api.coinscious.org/exchange-vwap/binance/eth_btc?interval=1m
Name Required Type Description
exchange Yes string Exchanges supported
pair Yes string Token Pair supported
interval No string Interval and limit
start No timestamp
end No timestamp
limit No integer Interval and limit

Shell Example

Python Example

Java Example

Resources

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Cryptocurrency Market Data: VWAP

Market Data: VWAP

By | Cryptocurrency, Market Data | No Comments

What Is VWAP Data?

  • VWAP data is a form of cryptocurrency market data and stands for volume weighted average price. 
  • VWAP is the average price of an asset within an interval, and this average is calculated by weighing the prices proportionally to the volume traded at that price.

How To Obtain VWAP Data?

  • Coinscious provides VWAP data for a variety of cryptocurrencies for intervals ranging from one minute to one day, as well as denominated in various fiat currencies.
  • The VWAP data endpoint from Coinscious provides the price of a cryptocurrency across multiple exchanges and markets and is denominated in a fiat currency.
  • This is different from the Exchange VWAP endpoint, which provides the VWAP of a specific trading pair on a single exchange. Learn more about our Exchange VWAP: here.
  • VWAP data can be obtained from our Market Data API by making a GET request to the endpoint: https://api.coinscious.org/vwap/{token}.
  • Optional parameters that can be included include the interval, start and end times, and limit. For instance, if you want the BTC VWAP in Canadian Dollars, then you would make a GET request to this url: https://api.coinscious.org/ohlcv/binance/btc?fiat=CAD.
Name Required Type Description
token Yes string Token supported
fiat No string Fiat Currency supported
interval No string Interval and limit
start No timestamp
end No timestamp
limit No integer Interval and limit

Shell Example

Python Example

Java Example

Resources

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Cryptocurrency Market Data: OHLCV

Market Data: OHLCV

By | Cryptocurrency, Market Data | No Comments

What Is OHLCV Data?

  • OHLCV data is a form of cryptocurrency market data that summarizes the prices within an interval using five data points.
  • OHLCV stands for open, high, low, close, and volume.
  • Open and close data points are the first and last prices in the interval.
  • High and low data points are the highest and lowest prices in the interval.
  • Volume data is the total amount traded over the interval.

How To Obtain OHLCV Data?

Name Required Type Description
exchange Yes string Exchanges supported
pair Yes string Token pair supported
interval No string Interval and limit
start No timestamp
end No timestamp
limit No integer Interval and limit

Shell Example

Python Example

Java Example

Resources

Data Services 

MARKET DATA API: The most accurate and comprehensive raw crypto market VWAP, OHLCV, trade and order book data. Our data services enable retail and institutional investors easy access to historical and live stream, gapless data with only 100 millisecond latency. Subscribe Now

ALERT API: Fast, real-time alerts to capture more trade opportunities. Track price, volume & trend changes in mainstream crypto markets, and monitor big monetary movements on blockchain data. Subscribe Now

Terminal

COINSCIOUS TERMINAL: real-time analytics on the top 100 coins/tokens, 18 mainstream crypto exchanges, and top technical trading indicators. Access now.

Disclaimer

The information contained herein is for informational purposes only and is not intended as a research report or investment advice. It should not be construed as Coinscious recommending investment in cryptocurrencies or other products or services, or as a solicitation to buy or sell any security or engage in a particular investment strategy. Investment in the crypto market entails substantial risk. Before acting on any information, you should consider whether it is suitable for your particular circumstances and consult all available material, and, if necessary, seek professional advice.

Coinscious and its partners, directors, shareholders and employees may have a position in entities referred to herein or may make purchases and/or sales from time to time, or they may act, or may have acted in the past, as an advisor to certain companies mentioned herein and may receive, or may have received, a remuneration for their services from those companies.

Neither Coinscious or its partners, directors, shareholders or employees shall be liable for any damage, expense or other loss that you may incur out of reliance on any information contained in this report. 

Accurate Crypto Market Data Ultimately Leads to Winning Model

By | Coinscious Lab, Cryptocurrency | No Comments

The world’s most valuable resource is no longer oil but data. [1] This holds true even for the finance industry. The control that financial companies wield over their data gives them enormous power, and the abundance and quality of data they use changes the very nature of the competition. According to Bloomberg, the financial sector is adopting big data analytics to maintain a competitive advantage in the trading environment” [2]. Quantitative- and high-frequency trading are ubiquitous, indispensable tools in current times, and their full value in cryptocurrency trading are being realized. A key aspect that is still often overlooked in quantitative crypto-trading is the quality of the data being used to design sophisticated prediction models.

In this era of cryptocurrency trading, those with the most data of the highest quality will surely win. In algorithmic trading applications, accuracy is one of the best quality indicators of a data source. It determines the execution prices, the model’s behaviour, and the model’s ability to fit the market efficiently and effectively. In the extreme case, high frequency traders care about order-by-order data to simulate precise market-making algorithms. In order to accurately determine what and how much to trade at a low cost, traders desire the finest scales of accurate data with low latency.

Many algorithmic traders incorporate massive amounts of data into their algorithms to create better pricing models and leverage large volumes of historical data to backtest their trading algorithms. Particularly with recent advances in machine learning, the data-driven approach to modelling is being emphasized more than ever before. Market behaviours are learned from black box models that recognize patterns in big data. This means that the accuracy of the data affects what the model learns and predicts. Thus, the more accurate data you have, the better you can simulate execution quality in algorithms.

Available Sources of High Quality Crypto-Trading Data

There are several companies that provide cryptocurrency market data. Kaiko, CoinAPI, and Coinscious are three well-known crypto data vendors. Most of these companies offer live and historical trading, order books, and OHLCV1  (open, high, low, close, volume) cryptocurrencies. However, what remains unknown, until now, is the quality of data these companies claim to provide. Therefore, the key question is: which data vendor has the highest quality data for you to gain a competitive edge?

The Basics

A simple way to assess data quality is to compare the exchange’s OHLCV data with derived OHLCV data. In the analysis below, the hourly level OHLCV data is computed for December 2018 amongst different data vendors. The error rates were measured over eight well-known exchanges: Binance, Bittrex, Bitfinex, Bitstamp, Bitmex, Huobi Global, Okex, and Coinbase Pro.

Figure 1. OHLC error rates for Bitcoin (BTC), Ethereum (ETH), and Ripple (XRP)2. Given that our budget limits us to purchase just one dataset between Kaiko and CoinAPI, we chose the more expensive one: Kaiko’s data

Figure 2. OHLC error rates for OHLC error rates for four alternative coins (ADA, XLM, TRX, ZRX)

Coinscious data proves to be the most accurate among these data vendors for the top 3 coins (BTC, ETH, and XRP). In average, Coinscious data are 38% better than Kaiko’s data, where the relative errors on OHLC are 39%, 41%, 31%, and 37% respectively (see Figure 1). Similar results have also been shown using four alternative coins (ADA, XLM, TRX, ZRX). Surprisingly, even though Kaiko data is accurate for high and low prices, their open and close prices are quite divergent when compared to Coinscious and CoinAPI.

Error In Trading Volume

In Figure 3 and Figure 4, volume error rates over time reveal the dates when the higher error rates occur. The spike in volume error rates occurs in two scenarios; the first scenario occurs when the volume and volume error rates spikes simultaneously, whereas the second scenario occurs when the volume error rates spike, but volume does not. The former can be attributed to increased latency on exchanges as traffic increases, whereas the latter can be attributed to internal server issues.

Figure 3. Absolute error between exchange volumes versus data vendors’ volumes in December 2018 (the lower, the better). The errors were measured for BTC/USD, ETH/USD, and XRP/USD on the top 7 exchanges3.

Coinscious’ error rates remain relatively low compared to other vendors’ error rates. Overall, it is clear that Coinscious data has the lowest error rates with respect to volume data.

Figure 4. Absolute distance error between exchange volumes versus data vendors’ volumes in December 2018 (the lower, the better). The errors were measured for the following alternative coins: ADA/USD at Bittrex, XLM/USD, TRX/USD, and ZRX/USD at Bitfinex.

The volume quality for alternative coins (i.e., altcoins) was also considered. Eight altcoins were randomly selected from different exchanges, including NEO, TRON, XLM, EOS, LTC, ZRX, and ADA. From the figure above, CoinAPI does not perform well on volumes with respect to these altcoins.

Reason For Data Discrepancies Between Vendors

Now you must be wondering, if the exchange provides public API, why would you need to purchase data? Firstly, public APIs have limited histories of information they provide, and unless a trader has stored historical price data, they would need to gather it from a third-party source. Secondly, even though exchanges provide public APIs, aggregating and preprocessing all possible cryptocurrency pairs for different exchanges is cumbersome, and arguably the most tedious step in developing a trading system. This is especially the case as the data receiving intervals gets coarser as the number of requests for data grows. It is for these reasons that the aforementioned data vendors exist.

More importantly, why do discrepancies in the accuracies exist across different data vendors? There are several possible reasons. It could be due to downtimes of exchange APIs. Or, given the thousands of combinations of cryptocurrency exchanges and trade pairs, there exist API rate limits on all cryptocurrency exchanges, and therefore a large number of data collection clients and complicated infrastructure is required.

While many companies are collecting vast amounts of data across different exchanges and coins, the quality of the data may be hidden underneath the quantity of the data. Especially in this era of a data-driven finance world, success and risk can be heavily dependent on the data quality and the data operations environment. Obtaining the right trading tools and hiring talented traders can certainly help, but even then, tools and people cannot guarantee success if the data is flawed. The cryptocurrency finance market definitely could benefit from having more of data quality analysis in order to understand the granular level of datasets and where they can obtain them.

Footnotes

  1. Open, high, low, close, volume (OHLCV) prices.
  2. Given that our budget limits us to purchase just one dataset between Kaiko and CoinAPI, we chose the more expensive one: Kaiko’s data.
  3. Top 7 exchanges include: Binance, HuobiPro, Bitfinex, Bitmex, OKEx, Bitstamp, and Coinbase.

References

[1] “The world’s most valuable resource is no longer oil, but data”. The Economist, 6 May 2017, https://www.economist.com/leaders/2017/05/06/the-worlds-most-valuable-resource-is-no-longer-oil-but-data

[2] “3 ways big data is changing financial trading”. Bloomberg, 5 July 2017, https://www.bloomberg.com/professional/blog/3-ways-big-data-changing-financial-trading/