hot fix
This commit is contained in:
1 parent
e40f457ecf
commit
13159014fe
1 file changed
+1
-1
@@ -87,7 +87,7 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager):
|
||||
|
||||
state.set_last_price(symbol, price)
|
||||
|
||||
if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 or orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0:
|
||||
if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 and orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0:
|
||||
execute_arb(orderman, state)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user