DEV Community

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

Collapse
mike8724 profile image
Michael

I must be missing something because i cant get the bot to deploy. Does anyone have a more detailed explination of how to make it run in command line?

Im completley new to this

Collapse
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 :)

Collapse
mike8724 profile image
Michael

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