Dai API

Dai supply and demand data.

Demo

This API powers Dai in DeFi.

API Access

Beta Version

The v0 endpoints are in beta. We expect to make some changes in advance of releasing the v1 stable version of the API.

Please email hello@blocklytics.org for an API key.

Append the API key to the end of the request. For example:

curl https://api.blocklytics.org/dai/v0/supply?key=API_KEY

Supply

get
Supply

https://api.blocklytics.org/dai/v0/supply
Returns supply delta by day.
Request
Response
Path Parameters
key
required
string
API Key
200: OK
[{
"date":"2019-05-03",
"supplyDelta":-386013.8039528052
},{
"date":"2019-05-04",
"supplyDelta":-184471.2886732058
},{
"date":"2019-05-05",
"supplyDelta":-156286.5534154886
}]

Demand

get
Demand

https://api.blocklytics.org/dai/v0/demand
Returns demand delta by day.
Request
Response
Path Parameters
key
required
string
API Key
200: OK
[{
"date":"2019-05-10",
"sets_balance_delta":-36.950510339999994,
"uma_balance_delta":0.0,
"nuo_balance_delta":49926.66890073692,
"dharma_balance_delta":24900.451000000005,
"compound_balance_delta":-248179.0603177033,
"uniswap_balance_delta":35383.65748134729,
"xdai_balance_delta":-89.97477378894244,
"dydx_balance_delta":-98540.45223162585,
"oasis_dex_balance_delta":0.0,
"bancor_balance_delta":-334.4492152200593,
"ethfinex_dex_balance_delta":19803.29584952475,
"eth2dai_dex_balance_delta":35407.30951521919
}]