donewiththedollar / directionalscalper

CCXT based algorithmic trading framework for Bybit and other CCXT supported exchanges
https://quantumvoid.org
MIT License
150 stars 49 forks source link

Streamlit run dashboard.py : FileNotFoundError: [Errno 2] No such file or directory: 'data/open_positions_data.json' #89

Closed guntoken closed 7 months ago

guntoken commented 7 months ago

Hello,

I've followed the installation instructions precisely, but when I attempt to run streamlit run dashboard.py, I encounter a FileNotFoundError pointing to the absence of "data/open_positions_data.json".

Here's the exact error message:

"FileNotFoundError: [Errno 2] No such file or directory: 'data/open_positions_data.json'"

Could you please advise on why this file is missing and how I can resolve this issue? Is there an initial setup step I might have overlooked, or should this file be generated automatically during the process?

Thank you for your assistance

donewiththedollar commented 7 months ago

Hey! Which strategy are you using? I added extra logging and exception handling to the bybit strategies and tested the dashboard and it actually works fine without this error.

clebersonjf83 commented 4 months ago

Screenshot_20240620-204219

The same error also happens to me, I'm using bybit with the qsgridob strategy. How to solve it, I'm very new to programming...

Note. Sorry for my English, I use the translator.