bugfix
This commit is contained in:
@ -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)
|
||||||
|
|||||||
@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user