Chartbreaker
    Preparing search index...

    Type Alias SelectedExchangesStore

    Provides client-definited exchange selection for realtime calculations.

    type SelectedExchangesStore = {
        subscribeItem(
            instrumentId: string,
            instrument: Instrument,
            cb: Nodeback<string>,
        ): ObservableSubscription;
    }
    Index

    Methods

    • Subscribe the exchange id to use for calculations for the given instrument. Note that realtime calculators will wait for this subscription to call back (it is allowed to just call cb(null, null) if the user has no preference).

      Parameters

      • instrumentId: string

        id of the instrument

      • instrument: Instrument

        the instrument, if it can be loaded

      • cb: Nodeback<string>

        nodeback that is called like cb(null, <exchangeId>)

      Returns ObservableSubscription