botx
This commit is contained in:
4
bot.py
4
bot.py
@@ -87,9 +87,7 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager):
|
|||||||
|
|
||||||
state.set_last_price(symbol, price)
|
state.set_last_price(symbol, price)
|
||||||
|
|
||||||
print("포지션 괴리율", orderman.positions["VALE"] - orderman.future_positions["VALE"], orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"])
|
if orderman.positions["VALE"] - orderman.future_positions["VALE"] == 0 or orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"] == 0:
|
||||||
|
|
||||||
|
|
||||||
execute_arb(orderman, state)
|
execute_arb(orderman, state)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user