collect_leg_bid_price_detail

passengersim.callbacks.bid_price_detail.collect_leg_bid_price_detail(leg_ids: set[int], *, include_sold_out: bool = True) → collections.abc.Callable[[CallbackMixin, int], dict | None][source]

Build a daily callback that records bid prices for selected legs.

Parameters:
leg_ids : collection of int

The legs to record.

include_sold_out : bool, default True

If True, record each leg’s reported bid price, including sold-out legs. If False, skip legs whose bid price marks them as sold out.

Returns:

Callable – A daily callback returning {"leg-<id>-bidprice": price} for each recorded leg, or None during burn-in samples.