0

I am using PyCharm in two instances for crypto-trading. Currently when my computer starts up, I would have to open both projects on PyCharm manually and enter two different commands manually.

Is there a way to run these projects with the commands needed automatically right after starting my computer?

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Nes Elm
  • 87
  • 1
  • 3
  • 12

1 Answers1

1

A better way to start your bot on startup is to add your python script or something in a startup or run your python script as a service.

Check out this article

  • Hey man, thanks for your reply! Currently I start one script with "python -m binance_trade_bot" and the other script with "python -m btb_manager_telegram -t XXXXX -c YYYYY" after opening each script manually. How could I apply that? :-) – Nes Elm Sep 01 '21 at 14:09
  • import os os.system(f"start cmd /K python -m binance_trade_bot") – Elguja Lomsadze Sep 01 '21 at 17:09
  • Thanks man but I still don't get it :-) What must I do with this snippet and where? – Nes Elm Sep 02 '21 at 06:44