DEV Community

Discussion on: How to Build a Stock Trading Bot with Python

sewangco profile image
Saji Wang Author

Hi there, in your, terminal navigate to the folder with the python file in it, then run pipenv shell, followed by pipenv install alpaca_trade_api, and then finally run your python file with python INSERT_FILE_NAME

let me know if that helped :)

mike8724 profile image

Hi Saji, After a few battles with Codesphere, i had worked out the steps you suggested managing to get the bot to communicate with the trading api. My next battle is to work out why the file structure in codesphere keeps disappearing(although the files are still active)

Thanks for the response