Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是不是缺少大哥2.2策略? #5

Open
qqnr88 opened this issue May 19, 2024 · 2 comments
Open

是不是缺少大哥2.2策略? #5

qqnr88 opened this issue May 19, 2024 · 2 comments

Comments

@qqnr88
Copy link

qqnr88 commented May 19, 2024

(venv) [root@iZbp13hsmske2ra9ukl7qnZ trader]# python trader/main.py
Big Brother is watching you!
used config file: /root/.config/trader/config.ini
log stored in: /root/.cache/trader/log
pid file: /root/.cache/trader/trader.pid
Traceback (most recent call last):
File "/root/trader/trader/main.py", line 77, in
TradeStrategy(name='大哥2.2').run()
File "/root/trader/trader/strategy/brother2.py", line 45, in init
self.__strategy = Strategy.objects.get(name=name)
File "/root/trader/venv/lib/python3.10/site-packages/django/db/models/manager.py", line 87, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/root/trader/venv/lib/python3.10/site-packages/django/db/models/query.py", line 649, in get
raise self.model.DoesNotExist(
panel.models.DoesNotExist: Strategy matching query does not exist.

@xjf01793
Copy link

@qqnr88 我也碰到类似的问题,请教一下你是怎么解决这个问题的?

@johnxn
Copy link

johnxn commented May 30, 2024

得把dashboard搭起来,进入后台自己新建一个策略

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants