Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiticker datasources #40

Open
hrishikeshio opened this issue Oct 29, 2022 · 2 comments
Open

Add multiticker datasources #40

hrishikeshio opened this issue Oct 29, 2022 · 2 comments

Comments

@hrishikeshio
Copy link
Member

To reduce API requests, we can fetch prices for multiple tickets using a single request. This is necessary since most of the public APIs have strict usage limits.

https://api.coingecko.com/api/v3/simple/price?ids=razor-network%2Cethereum&vs_currencies=usd

Razor-go should cache it for short-term use (4 mins, e.g.) the results instead of querying it again and again.

@hrishikeshio
Copy link
Member Author

Related razor-network/oracle-node#976

@SkandaBhat
Copy link
Contributor

This has been merged. razor-network/oracle-node#976

Please test on staging with a URL like this - https://api.coingecko.com/api/v3/simple/price?ids=bitcoin%2Cethereum&vs_currencies=usd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants