Interface BarSubscriptionOptions

Optional context for continuing history and recovering an interrupted stream.

interface BarSubscriptionOptions {
    cumDayVolumeSoFar?: number;
    onResync?: () => void;
    seedFrom?: Bar;
}

Properties

cumDayVolumeSoFar?: number

Cumulative day volume at the seed snapshot, if the host knows it.

onResync?: () => void

The stream reconnected and may have missed data. Refresh authoritative history, then resubscribe with its last bar as the seed. Older bars must not be delivered through onBar, whose consumers commonly accept only tails.

seedFrom?: Bar

Last historical time-bucketed bar, used as the live builder's starting point.