Executor crash with unknow trade flag
Closed this issue · 0 comments
hieuh25 commented
Crash log:
self.runner.tick(
File "/usr/src/trade-executor/tradeexecutor/strategy/runner.py", line 789, in tick
self.execution_model.execute_trades(
File "/usr/src/trade-executor/tradeexecutor/ethereum/execution.py", line 407, in execute_trades
routing_model.setup_trades(
File "/usr/src/trade-executor/tradeexecutor/strategy/generic/generic_router.py", line 118, in setup_trades
router.setup_trades(
File "/usr/src/trade-executor/tradeexecutor/ethereum/routing_model.py", line 528, in setup_trades
return self.execute_trades_internal(
File "/usr/src/trade-executor/tradeexecutor/ethereum/routing_model.py", line 436, in execute_trades_internal
trade_txs = self.make_credit_supply_trade(
File "/usr/src/trade-executor/tradeexecutor/ethereum/one_delta/one_delta_routing.py", line 555, in make_credit_supply_trade
trade_txs = routing_state.lend_via_one_delta(
File "/usr/src/trade-executor/tradeexecutor/ethereum/one_delta/one_delta_routing.py", line 274, in lend_via_one_delta
raise ValueError(f"Wrong trade flags used: {trade_flags}")
ValueError: Wrong trade flags used: {<TradeFlag.increase: 'increase'>}