API Documentation

Find the right data for your needs Show your users the most transparent data on the market with our API. Whether you're building a financial service, a portfolio management tool, a new media offering, or more, we have the most advanced and updated data on the market for your product. For Oracle usage see github.

Backtest your strategies Use the most efficient and transparent crypto data to run simulations and backtest your trading or investing strategies. With crowd-aggregated hundreds of exchanges you can be sure that you're getting the right picture every single time.

Run Experiments Build your own models with our data, to further your interest or just for fun. With our flexible and powerful API, we provide you with a set of data that will help you draw insights and make conclusions.

Request your data Set a bounty on gitcoin.io or drop us line.

Version: 1.0

API Access

You can find documnentation for our live API on our api documentation site. Several endpoints exist that show the different kind of data we collect:

When referencing currencies, {TLA} has to be replaced by the acronym for an asset (e.g., BTC for Bitcoin).

Currently, DIA collects data from several crypto exchanges. To get an overview, the latest information about these exchanges can be found in this table:

Name

Number of Pairs

API link

Binance

47

Binance API Documentation

Bitfinex

25

Bitfinex Websocket Documentation

Coinbase

3

Coinbase v2 API

GateIO

42

Gate.io API Documentation

HitBTC

43

HitBTC API Browser

Huobi

40

Huobi API Documentation

Kraken

8

Kraken Public API Documentation

LBank

20

LBank API Documentation (Chinese)

OKEx

27

OKEx API Documentation (Chinese)

Simex

14

Simex API Documentation

ZB.com

127

Zb.com API Documentation (Chinese)

Here you can find the introduction to the structure of the system and first steps to contribute.

The DIA base url is https://api.diadata.org/. All API paths are sub-paths of this base URL.

Use cases

Bash scripting

The API can be accessed through a Linux terminal by using curl. For example curl https://api.diadata.org/v1/interestrate/ESTER/2020-03-16 >> userPath/myFile.txt writes the return value of the GET request into myFile.txt for further processing.

Usage with Python

The JSON object obtained in an API GET request complies with Python syntax. It can be cast into a list or dictionary resp. using Python's eval(string) function.