diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 320b3210d..a7d417141 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -69,7 +69,7 @@ jobs: # https://github.com/pytest-dev/pytest/issues/3216#issuecomment-2572882817 - name: Run test scripts run: | - poetry run pytest --tb=native --dist loadscope -n 2 --durations=20 -m "not slow_test_group" --timeout=300 + poetry run pytest --tb=native --dist loadscope -n 4 --durations=20 -m "not slow_test_group" --timeout=300 env: TRADING_STRATEGY_API_KEY: ${{ secrets.TRADING_STRATEGY_API_KEY }} BNB_CHAIN_JSON_RPC: ${{ secrets.BNB_CHAIN_JSON_RPC }} diff --git a/deps/trading-strategy b/deps/trading-strategy index 4631c94b0..9cde279cd 160000 --- a/deps/trading-strategy +++ b/deps/trading-strategy @@ -1 +1 @@ -Subproject commit 4631c94b0b87aab86eed625e68b61f14c5add2d9 +Subproject commit 9cde279cd6076b1ac8bc69d2f9a46e3d764b5f9b diff --git a/tradeexecutor/strategy/trading_strategy_universe.py b/tradeexecutor/strategy/trading_strategy_universe.py index 975867f8e..8d4d06f64 100644 --- a/tradeexecutor/strategy/trading_strategy_universe.py +++ b/tradeexecutor/strategy/trading_strategy_universe.py @@ -100,6 +100,9 @@ class Dataset: #: How much back we looked from today history_period: Optional[datetime.timedelta] = None + def __repr__(self): + return f"" + def get_chain_ids(self) -> Set[ChainId]: """Get all chain ids on this dataset.""" return {e.chain_id for e in self.exchanges.exchanges}