how to set the database url for "portfolio"
JustinGuese opened this issue · comments
Describe the bug
The docs are horrible! no code works, it's the most unlogic code I have ever seen...
One thing I could not repair or fix myself: in your "tutorial", you are creating a portfolio with "portfolio create ...", but it tries to connect to localhost:5432.
Your Quickstart creates a docker psql at localhost:5400, so that is the first mistake, and the second is even though you state you can set the DSN env variable it is not used? what the heck?
To Reproduce
Steps to reproduce the behavior:
- https://amor71.medium.com/liualgotrader-part-ii-putting-it-all-together-1d447650808b
- portfolio create
OSError: Multiple exceptions: [Errno 61] Connect call failed ('::1', 5432, 0, 0), [Errno 61] Connect call failed ('127.0.0.1', 5432)
Expected behavior
portfolio is created
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: MacOS
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Thank you for joining LiuAlgoTrader community and submitting your first issue. Feel free to check out Liu community: https://gitter.im/LiuAlgoTrader/community
Stale issue message
Project seems abondened