Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug in Trade() method: if not "oK" status received then TP/SL orders still opens #66

Closed
Tim55667757 opened this issue Oct 28, 2022 · 1 comment
Assignees
Labels
Error It's a BUG! Or just something isn't working...
Milestone

Comments

@Tim55667757
Copy link
Owner

Just run `python scenario1.py' and see logs:

...
scenario1.py        L:108  INFO    [2022-10-28 16:17:40,331] --- Ticker [GOOGL], data analysis...
scenario1.py        L:115  INFO    [2022-10-28 16:17:40,768] Total portfolio cost: 4791.26 rub; blocked: 0.00 rub; changes: +88.88 rub (+1.89%)
scenario1.py        L:125  INFO    [2022-10-28 16:17:40,769] Available funds free for trading: 0.29 eur; 1.42 cny; 1.00 chf; 10.00 try; 0.68 usd; 2.41 hkd; 3346.28 rub
scenario1.py        L:151  INFO    [2022-10-28 16:17:40,861] Ticker [GOOGL]: no current open positions with that instrument, checking opens rules...
scenario1.py        L:174  INFO    [2022-10-28 16:17:40,862] Opening BUY position... (Buyers volumes [1281] >= 1.1 * sellers volumes [687] and current price to buy: [92.56 usd])
TKSBrokerAPI.py     L:2842 WARNING [2022-10-28 16:17:41,329] Not `oK` status received! Market order not created. See full debug log or try again and open order later.
TKSBrokerAPI.py     L:3113 INFO    [2022-10-28 16:17:47,926] Stop-order [********-****-****-****-************] was created: ticker [GOOGL], FIGI [BBG009S39JX6], action [Sell], lots [1], target price [95.34 usd], limit price [95.34 usd], stop-order type [Take profit] and expiration date in UTC [2022-10-28 14:17:40]
...
@Tim55667757 Tim55667757 added the Error It's a BUG! Or just something isn't working... label Oct 28, 2022
@Tim55667757 Tim55667757 added this to the release-1.5 milestone Oct 28, 2022
@Tim55667757 Tim55667757 self-assigned this Oct 28, 2022
Tim55667757 added a commit that referenced this issue Nov 13, 2022
@Tim55667757
Copy link
Owner Author

fixed since v1.5.*

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Error It's a BUG! Or just something isn't working...
Projects
None yet
Development

No branches or pull requests

1 participant