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

Endpoint Request: /tools/get-market-cap #52

Open
whoabuddy opened this issue Apr 21, 2022 · 1 comment
Open

Endpoint Request: /tools/get-market-cap #52

whoabuddy opened this issue Apr 21, 2022 · 1 comment

Comments

@whoabuddy
Copy link
Contributor

What endpoint would you like to request?

/tools/get-market-cap/:city

Is this something directly available, or does it have to be calculated?

It would need to be calculated in two steps:

  1. Get the price for the city
  2. Get the total supply for the city
  3. Multiply and return the value
@whoabuddy
Copy link
Contributor Author

This can also be returned by existing endpoints, and might be worth reporting a combination to help make sure things are in sync, e.g.

{
  "calculated": "aggregate price * total supply"
  "coingecko": "value_from_api"
  "coinmarketcap": "value_from_api"
  "etc": "etc"
}

The aggregate price is based on #37 and #38 getting done as it's just CoinGecko data for now.

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

1 participant