whittlem / pycryptobot

Python Crypto Bot (PyCryptoBot)
Apache License 2.0
1.97k stars 739 forks source link

fix: Coinbase missing API key and secret when starting scanner #839

Closed mominafiz closed 7 months ago

mominafiz commented 7 months ago

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 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.

How Has This Been Tested?

CLI script execution: python ./scanner.py

Checklist:

whittlem commented 7 months ago

@mominafiz, thanks for the update.