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

Implemented CoinGecko api to get token prices #94

Closed
wants to merge 11 commits into from

Conversation

sajalbnl
Copy link
Contributor

@sajalbnl sajalbnl commented Oct 5, 2024

sajalbnl and others added 11 commits September 2, 2024 18:17
# 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
Copy link
Collaborator

@trbutler4 trbutler4 left a 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>>> {
Copy link
Collaborator

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>>>
Copy link
Collaborator

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

@trbutler4
Copy link
Collaborator

resolved conflicts and merged locally

@trbutler4 trbutler4 closed this Oct 8, 2024
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