consensusnetworks / casimir

🌊 Decentralized staking and asset management
https://casimir.co
Other
6 stars 3 forks source link

Get exchange rate per block and store for events #181

Closed shanejearley closed 1 year ago

shanejearley commented 2 years ago

Currently using https://docs.cryptowat.ch/rest-api/ @elizyoung0011. Also used https://docs.coinapi.io/#get-specific-rate-get but it has a more aggressive rate limit.

shanejearley commented 1 year ago

Switching over to https://www.alphavantage.co/ with the Premium plan at 75 requests/minute if it works well. I'm not sure what the limits are on historical data for the crawler syncing aspect (you might need to find these by doing the integration), but we'd at least be solid on the latest data for streaming.

It still might make sense to sync an internal and long-lived bucket with historical data once per day and then use it in the crawler in combination with using the API directly for streamed blocks.