Added check for valid Coinbase product, including delisted checking #1633
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change fixes a bug I reported yesterday. Fixes #1624
When loading a Coinbase portfolio, the list cointains USD as well as delisted products(XRP). The load fails when checking prices for invalid pairs or delisted products.
The fix does 3 things
Testing
Testing requires an account on Coinbase PRO. I confirmed my portfolio loaded as expected.
What is missing
Multiple portfolios: In Coinbase Pro you can have multiple portfolios. Each with its own API-KEY-SECRET. Adding this feature will require additional changes to key management and a decision on how to handle multiple portfolios within a single broker.
Description
How has this been tested?
Checklist:
Others
pre-commit install
.pytest tests/...
.