DEV Community

Discussion on: Building a Crypto Trading Bot in Python 101: Automatic Deposits on Coinbase Pro

Collapse
 
sbadisa profile image
sbadisa

Thanks for this great tutorial. It's been a massive help. I do have a question though - where does the os come from in the config.py file? I don't see it defined anywhere...

Collapse
 
sbadisa profile image
sbadisa

Solved this problem by importing os. But now I have a different error:

'PASSPHRASE': os.environ['CB_PASSPHRASE'],
Enter fullscreen mode Exit fullscreen mode

File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 679, in getitem
raise KeyError(key) from None
KeyError: 'CB_PASSPHRASE'

Any ideas on what I'm missing? I've followed the tutorial to the letter :S