Coinbase Auth API requires an API key and secret to initialize the CoinbaseAuthAPI class. PycryptoBot class' constructor migrates the API key and secret to coinbase.key file and second-time initialization results in a missing key and secret. Instead of adding it to the config.json to be read correctly by the code, read it from coinbase.key file where it is supposed to exit going forward.
Formatting using black added more diff to the file.
Partially fixes #832 (bullet 1)
Type of change
Please make your selection.
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] This change requires a new dependency
[ ] Code Maintainability / comments
[ ] Code Refactoring / future-proofing
How Has This Been Tested?
CLI script execution: python ./scanner.py
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added pytest unit tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings
Description
Coinbase Auth API requires an API key and secret to initialize the CoinbaseAuthAPI class. PycryptoBot class' constructor migrates the API key and secret to
coinbase.key
file and second-time initialization results in a missing key and secret. Instead of adding it to the config.json to be read correctly by the code, read it fromcoinbase.key
file where it is supposed to exit going forward.Formatting using
black
added more diff to the file.Partially fixes #832 (bullet 1)
Type of change
Please make your selection.
How Has This Been Tested?
CLI script execution:
python ./scanner.py
Checklist: