TradHodlingIndexPool
- class TradHodlingIndexPool[source]
Bases:
IndexMarketCapPoolMarket-cap index pool simulating traditional (off-chain) rebalancing.
Like
HodlingIndexPool, this variant only rebalances during theweight_interpolation_periodwindow at the start of eachchunk_periodand HODLs reserves otherwise. The key difference is that reserve updates model centralised-exchange (CEX) execution costs rather than on-chain AMM swap mechanics:CEX fees (
cex_tau): flat proportional fee on sold tokens.Bid-ask spread (
cex_spread): per-asset half-spread cost.Market impact (Grinold-alpha model, currently commented out): square-root impact scaled by volatility and volume.
An
annual_streaming_fee(default 4 %) is also compounded into a per-step multiplicative fee applied to reserves at each active trading step, modelling the management fee charged by traditional index products.This pool loads auxiliary market-microstructure data (volatility, volume, spread) via
get_data_dictat reserve-calculation time, so it requires the full historic data pipeline to be available.Inherits weight calculation logic (market-cap weighting) from
IndexMarketCapPooland overridescalculate_reserves_with_feesandcalculate_reserves_zero_fees.See also
HodlingIndexPoolOn-chain AMM variant (uses G3M swap-fee mechanics).
IndexMarketCapPoolContinuously-rebalanced base class.