-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
controller.calculateProfit
doesn't work properly with sqlite database
#321
Comments
Hi @magicaleks, thank you for your report. I tried testing the controller using SQL storage, and it seems to be working normally. Perhaps the error stems from your file creation process. In sqlite package, you can specify a filename instead of manually creating the file. It will be created if it doesn't already exist. ![]() |
FYI: calculateProfit was updated to updatePosition nine months ago. Please ensure you're using the latest version. |
Hi @panapol-p Does it make sense to derive positions from persistence database? |
Hi @magicaleks |
@rodrigo-brito the issue was tested on old version of ninjabot when we tried to use sql database with old implementation of |
sure, it is something that requires improvements. |
It would be really helpful. If you don't mind, could you describe how would you do it? Maybe I can implement it myself |
The main change is: |
In this test replace
with
and run this test. You will see the following error:

The text was updated successfully, but these errors were encountered: