This commit is contained in:
David Brazda
2023-04-17 15:59:46 +02:00
parent d814340b09
commit 67819657d9
2 changed files with 2 additions and 1 deletions

View File

@ -242,6 +242,7 @@ def next(data, state: StrategyState):
state.vars.limitka = None state.vars.limitka = None
for o in orderlist: for o in orderlist:
if o.side == OrderSide.SELL: if o.side == OrderSide.SELL:
print("Nalezena LIMITKA")
state.vars.limitka = o.id state.vars.limitka = o.id
if o.side == OrderSide.BUY: if o.side == OrderSide.BUY:
pendingbuys_new[str(o.id)]=float(o.limit_price) pendingbuys_new[str(o.id)]=float(o.limit_price)

View File

@ -31,7 +31,7 @@ ic.configureOutput(includeContext=True)
def threadName(): def threadName():
return '%s |> ' % str(current_thread().name) return '%s |> ' % str(current_thread().name)
ic.configureOutput(prefix=threadName) ic.configureOutput(prefix=threadName)
ic.disable() #ic.disable()
""""" """""
Main entry point of the bot. Starts strategies according to config file, each Main entry point of the bot. Starts strategies according to config file, each
in separate thread. in separate thread.