-
Notifications
You must be signed in to change notification settings - Fork 29
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
Implemented CoinGecko api to get token prices #94
Conversation
sajalbnl
commented
Oct 5, 2024
•
edited
Loading
edited
- issue [feat] Implement CoinGecko api to get token prices #86
- follows contribution guide
- code change includes tests
- breaking change
# Conflicts: # wallet_app/android/app/src/main/AndroidManifest.xml # wallet_app/android/app/src/main/java/com/example/walletapp/MainActivity.kt # wallet_app/android/app/src/main/java/com/example/walletapp/WalletActivity.kt # wallet_app/android/app/src/main/java/com/example/walletapp/ui/activity/AccountBalanceActivity.kt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! just requested some readability/QOL improvements
suspend fun getTokenPrices( | ||
ids: String, | ||
vsCurrencies: String | ||
): Response<Map<String, Map<String, Double>>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change this type to be a named type like TokenPriceResponse
suspend fun getTokenPrices( | ||
@Query("ids") ids: String, // Comma-separated token IDs | ||
@Query("vs_currencies") vsCurrencies: String // Comma-separated currency codes | ||
): Response<Map<String, Map<String, Double>>> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reuse named TokenPriceResponse type here
resolved conflicts and merged locally |