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

Feature/live prices #14

Merged
merged 51 commits into from
Jan 4, 2022
Merged

Conversation

agustin-v
Copy link
Contributor

@agustin-v agustin-v commented Dec 21, 2021

Updated CoinMarketCap class to receive chainId in the constructor to pick the right dictionary.
Updated tests for CoinMarketCap
Updated validatePricesRequest function by adding chainId as new parameter.
Updated validatePricesRequest function by adding chainId as new parameter.
Updated RSKExplorer API to work with the chainId in order to validate the price requests

.env

COIN_MARKET_CAP_KEY=....
DEFAULT_CONVERT_FIAT=USD

Prices endopoint

http://localhost:3000/price?convert=USD&addresses=0x19f64674d8a5b4e652319f5e239efd3bc969a1fe

Address wallet for sockets

{
  "address": "0x3F6750bB87Bdffa7C04377e155cCA62aB9BBe8a0"
}

@agustin-v agustin-v changed the base branch from develop to feature/live-balances December 21, 2021 19:00
Copy link
Contributor

@ilanolkies ilanolkies left a comment

Choose a reason for hiding this comment

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

LGTM!

src/subscriptions/pushNewPrices.ts Outdated Show resolved Hide resolved
@agustin-v agustin-v marked this pull request as ready for review January 3, 2022 19:34
Copy link
Contributor

@chescalante chescalante left a comment

Choose a reason for hiding this comment

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

LGTM!

@chescalante chescalante merged commit dde2abe into feature/live-balances Jan 4, 2022
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.

None yet

3 participants