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

add network foreach cryprto in getPrices #288

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

raniamorheg
Copy link
Contributor

Dear team,

This PR introduces an important update to the cryptoDetails variable by adding the networkSupported and contractAddress fields for each cryptocurrency. The information for these fields will be retrieved using the following API endpoint: https://pro-api.coinmarketcap.com/v2/cryptocurrency/info.

The following changes have been made:

Adding networkSupported and contractAddress Fields: We have enhanced the cryptoDetails variable by including the networkSupported and contractAddress fields for each cryptocurrency. These fields provide information about the supported network and contract address associated with each cryptocurrency. The data for these fields will be fetched from the specified API endpoint.
Reviewers, please ensure that the networkSupported and contractAddress fields have been successfully added to the cryptoDetails variable by fetching the necessary data from the provided API endpoint. Verify that the information is accurate and aligned with the respective cryptocurrencies. Your feedback, suggestions, and alternative approaches to improve the implementation of these additions are highly appreciated.

Thank you for your time and effort in enhancing the functionality and data representation of our platform.

Best regards,
Rania Morheg

web3/wallets.js Outdated Show resolved Hide resolved
web3/wallets.js Outdated Show resolved Hide resolved
web3/wallets.js Show resolved Hide resolved
web3/wallets.js Outdated Show resolved Hide resolved
web3/wallets.js Outdated Show resolved Hide resolved
web3/wallets.js Show resolved Hide resolved
web3/wallets.js Outdated
},
headers: {
'X-CMC_PRO_API_KEY': process.env.CMCAPIKEY,
},

Choose a reason for hiding this comment

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

I think it's better to move the options variable in the config file to make cointMarketCap reusiable for futur needs .

@HamdiBenK HamdiBenK merged commit 2a4fa8f into develop Jul 24, 2023
3 checks passed
@HamdiBenK HamdiBenK deleted the add-networks-foreach-crypto-in-getPrices branch July 24, 2023 08:32
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.

4 participants