Skip to content

Commit

Permalink
Fix strategy that crashes a local test
Browse files Browse the repository at this point in the history
  • Loading branch information
miohtama committed Mar 3, 2025
1 parent ac9ee26 commit d42aee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion strategies/test_only/ethereum-memecoin-vol-basket.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from tradingstrategy.pair import PandasPairUniverse
from tradingstrategy.timebucket import TimeBucket
from tradingstrategy.utils.token_extra_data import filter_scams
from tradingstrategy.utils.token_filter import deduplicate_pairs_by_volume
from tradingstrategy.utils.token_filter import deduplicate_pairs_by_volume, add_base_quote_address_columns
from tradingstrategy.types import TokenSymbol
from tradeexecutor.state.identifier import TradingPairIdentifier

Expand Down Expand Up @@ -145,6 +145,8 @@ def create_trading_universe(
chain_mask = pairs_df["chain_id"] == Parameters.chain_id.value
pairs_df = pairs_df[chain_mask]

pairs_df = add_base_quote_address_columns(pairs_df)

# Pull out our benchmark pairs ids.
# We need to construct pair universe object for the symbolic lookup.
pair_universe = PandasPairUniverse(pairs_df, exchange_universe=exchange_universe)
Expand Down

0 comments on commit d42aee2

Please sign in to comment.