Skip to content

Commit f2ed7c8

Browse files
author
Sheng Lundquist
authored
Bumping hyperdrivetypes version. Bump agent0 version to 0.26.0 (#1738)
1 parent 197c487 commit f2ed7c8

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "agent0"
3-
version = "0.25.1"
3+
version = "0.26.0"
44
# Authors are the current, primary stewards of the repo
55
# contributors can be found on github
66
authors = [
@@ -33,7 +33,7 @@ dependencies = [
3333
"fixedpointmath>=0.2.1",
3434
"hexbytes>=1.2.1",
3535
"hyperdrivepy==0.17.1",
36-
"hyperdrivetypes==1.0.20.12",
36+
"hyperdrivetypes==1.0.20.13",
3737
"ipython>=8.26.0",
3838
"ipykernel>=6.29.5",
3939
"matplotlib>=3.9.2",

src/agent0/core/hyperdrive/interactive/exec/execute_agent_trades.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def get_liquidation_trades(
4848
The list of liquidation trades.
4949
"""
5050
minimum_transaction_amount = interface.pool_config.minimum_transaction_amount
51-
action_list = []
51+
action_list: list[Trade] = []
5252
for maturity_time, long in wallet.longs.items():
5353
logging.debug("closing long: maturity_time=%g, balance=%s", maturity_time, long)
5454
if long.balance > minimum_transaction_amount:
@@ -67,7 +67,8 @@ def get_liquidation_trades(
6767

6868
# We use the underlying policies rng object for randomizing liquidation trades
6969
if randomize_trades:
70-
action_list = rng.permutation(action_list).tolist()
70+
# Numpy has issues with typing of list of Trades
71+
action_list: list[Trade] = rng.permutation(action_list).tolist() # type: ignore
7172

7273
# Always set withdrawal shares to be last, as we need trades to close first before withdrawing
7374
if wallet.withdraw_shares > 0:

0 commit comments

Comments
 (0)