diff --git a/bot.py b/bot.py index 0c6e100..67ca975 100644 --- a/bot.py +++ b/bot.py @@ -86,6 +86,9 @@ def on_trade(message: dict, orderman: OrderManager, state: StateManager): price = message["price"] state.set_last_price(symbol, price) + + print("포지션 괴리율", orderman.positions["VELE"] - orderman.future_positions["VALE"], orderman.positions["VALBZ"] - orderman.future_positions["VALBZ"]) + execute_arb(orderman, state)