diff --git a/pyproject.toml b/pyproject.toml index 5757d83e30..4e5ad9c04a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "agent0" -version = "0.25.1" +version = "0.26.0" # Authors are the current, primary stewards of the repo # contributors can be found on github authors = [ @@ -33,7 +33,7 @@ dependencies = [ "fixedpointmath>=0.2.1", "hexbytes>=1.2.1", "hyperdrivepy==0.17.1", - "hyperdrivetypes==1.0.20.12", + "hyperdrivetypes==1.0.20.13", "ipython>=8.26.0", "ipykernel>=6.29.5", "matplotlib>=3.9.2", diff --git a/src/agent0/core/hyperdrive/interactive/exec/execute_agent_trades.py b/src/agent0/core/hyperdrive/interactive/exec/execute_agent_trades.py index e0d8037a18..8af9d0b081 100644 --- a/src/agent0/core/hyperdrive/interactive/exec/execute_agent_trades.py +++ b/src/agent0/core/hyperdrive/interactive/exec/execute_agent_trades.py @@ -48,7 +48,7 @@ def get_liquidation_trades( The list of liquidation trades. """ minimum_transaction_amount = interface.pool_config.minimum_transaction_amount - action_list = [] + action_list: list[Trade] = [] for maturity_time, long in wallet.longs.items(): logging.debug("closing long: maturity_time=%g, balance=%s", maturity_time, long) if long.balance > minimum_transaction_amount: @@ -67,7 +67,8 @@ def get_liquidation_trades( # We use the underlying policies rng object for randomizing liquidation trades if randomize_trades: - action_list = rng.permutation(action_list).tolist() + # Numpy has issues with typing of list of Trades + action_list: list[Trade] = rng.permutation(action_list).tolist() # type: ignore # Always set withdrawal shares to be last, as we need trades to close first before withdrawing if wallet.withdraw_shares > 0: