backend: slope support, gui:add json

This commit is contained in:
David Brazda
2023-04-17 15:26:30 +02:00
parent c7d67fdf65
commit f4fbda7daf
20 changed files with 196 additions and 26 deletions

View File

@ -517,7 +517,7 @@ class Backtester:
#with lock:
for o in self.open_orders:
#print(o)
if o.symbol == symbol:
if o.symbol == symbol and o.canceled_at is None:
if side is None or o.side == side:
res.append(o)
return res