Historical data

Hi all,
Is there a resource where I could download / access historical data for each markets on COMP? like past 6M/year? Would like to see how it evolves. Thank you very much.
Best

1 Like

Hi strutt,
The Compound Labs api has historical ctoken data available via the block_number parameter, such as
https://api.compound.finance/api/v2/ctoken?block_number=12202733

There is also a block_timestamp parameter that will estimate block numbers if that is an easier way to bucket timestamps for you.

Finally, most web3 clients have block number option you can pass in to query a contract method at a given block.

2 Likes