fix(positioning): thread coin_gross_cap into bybit-paper-book CLI seed path

The review of fb4cb49 found one more silently-uncapped call into
build_bybit_paper_book: the `bybit-paper-book` CLI command (cli.py) used
to manually seed/re-seed the SAME live Bybit paper book the nightly
Dagster asset populates. It mirrored the nightly asset's pre-fix call
exactly and was missed because it wasn't in that task's file list.

Pass positioning_coin_gross_cap=POSITIONING_COIN_GROSS_CAP, matching the
nightly bybit_paper_book asset call site. Default-None behavior elsewhere
is unaffected.
This commit is contained in:
2026-07-20 19:53:08 +00:00
parent fb4cb49b18
commit dd527e6658

View File

@@ -3281,6 +3281,7 @@ def bybit_paper_book_cmd(
from fxhnt.adapters.orchestration.assets import _data_dir, build_bybit_paper_book
from fxhnt.adapters.persistence.paper_repo import PaperRepo
from fxhnt.adapters.warehouse.timescale_feature_store import TimescaleFeatureStore
from fxhnt.application.bybit_forward_track import POSITIONING_COIN_GROSS_CAP
from fxhnt.application.bybit_liquidity import liquid_universe
from fxhnt.application.unlock_calendar_loader import load_unlock_events, operational_unlock_repo
@@ -3299,7 +3300,8 @@ def bybit_paper_book_cmd(
repo.migrate()
n = build_bybit_paper_book(
repo, store, capital=settings.paper_capital, at=dt.datetime.now(dt.UTC),
universe=universe, unlock_events=unlock_events, enabled=True)
universe=universe, unlock_events=unlock_events, enabled=True,
positioning_coin_gross_cap=POSITIONING_COIN_GROSS_CAP)
finally:
store.close()