API Reference


daiprice.info/api/price

'day_open_price'   :   calendar day open for dai-eth-usd price

'day_low_price'   :   calendar day low for dai-eth-usd price

'day_high_price'  :   calendar day high for dai-eth-usd price

'last24h_avg_dai_eth_usd_price'   :   average price over last 24 hours

'last24h_avg_dai_usd_price'   :   average price over last 24 hours

'last24h_avg_eth_usd_price'   :   average price over last 24 hours

'dai_eth_usd_price'   :   current price

'dai_usd_price'   :   current price

'weighted_usd_price'   :   current price

'dai_supply'   :   current dai total supply

'time'   :   quote timestamp


daiprice.info/api/dex

'dex_asks'   :   [{'exchangeName1': name, 'tokenSymbol': DAI, 'error': null, 'avgPrice': price, 'totalPrice': price *100, 'timestamp': time}, {'exchangeName2'....}]

'dex_bids'   :   [{'exchangeName1': name, 'tokenSymbol': DAI, 'error': null, 'avgPrice': price, 'totalPrice': price *100, 'timestamp': time}, {'exchangeName2'....}]


daiprice.info/api/hist

last 30 days

[{'day': date, 'average_dai_supply': average supply, 'average_dai_usdc': average price, 'average_eth_usd': average price, 'average_dai_eth_usd': average price, 'open': day open dai-eth-usd price, 'close': day close dai-eth-usd price, 'high': day high dai-eth-usd price, 'low': day low dai-eth-usd price}...]