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

Accessing Market Data #6

Open
tspoff opened this issue May 22, 2020 · 2 comments
Open

Accessing Market Data #6

tspoff opened this issue May 22, 2020 · 2 comments

Comments

@tspoff
Copy link
Contributor

tspoff commented May 22, 2020

CoinGecko API is a solid choice, and what we used for Balancer project. Open to other suggestions. From here we can get asset values in any fiat currency, as well as price action within a timeframe.

They also have a nice Javascript wrapper lib already

  • Will we need to consider rate limits / API keys here?
    • Free tier is 100 requests / minute.

What data do we need?

For each asset:
* Current price (in USD)
* 24 hour change

You can make one call /coin/:id but there is a ton of extraneous data

@dOrgJelli
Copy link
Member

Another route that could be taken:

  • Aggregate multiple sources into a single "average" price across all markets.
  • We can start with "free" sources, such as the various on-chain price oracles (Uniswap, Synthetix, dxdx, etc)
  • If this is a native application, historical price data can be persisted to help with loading.

@tspoff
Copy link
Contributor Author

tspoff commented Jun 2, 2020

Great points. We could use the first two to reduce dependency on any given service.
Native app isn't in the scope for now - but I think it will need to be for Mix to be competitive.

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

No branches or pull requests

2 participants