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

Migrate allcoin page to coingecko #9

Merged
merged 8 commits into from
May 25, 2021
Merged

Migrate allcoin page to coingecko #9

merged 8 commits into from
May 25, 2021

Conversation

temanisparsh
Copy link
Contributor

Fixes #5

  • Add display to select the duration for viewing the percentage change
  • Fetch map of Symbol to Id from coingecko
  • Fetch data for all coin page from coingecko

@temanisparsh temanisparsh requested a review from Gituser143 May 25, 2021 11:32
pkg/api/getAllData.go Show resolved Hide resolved
pkg/display/allcoin/allCoin.go Outdated Show resolved Hide resolved
pkg/display/allcoin/allCoin.go Show resolved Hide resolved
Comment on lines 292 to 294
// Update currency fields
coinHeader[2] = fmt.Sprintf("Price (%s)", currency)
favHeader[1] = fmt.Sprintf("Price (%s)", currency)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the Change header to reflect the percentage duration here. Changing currency is irrelevant here :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, that's what happens when you copy paste I guess XD

pkg/display/allcoin/allCoin.go Outdated Show resolved Hide resolved
@Gituser143 Gituser143 merged commit 1dee148 into Gituser143:migrate-to-coingecko May 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants