Chartbreaker
    Preparing search index...

    Type Alias PortfolioInfo

    type PortfolioInfo = {
        convertCurrencyIsoToSymbol: (currencyISO?: string) => string | undefined;
        initKoCalculation: (
            param: { prod: string; underlying: string },
            cb: (err: Error | null, data: KoCalculations) => void,
        ) => { unbind: () => void };
        portfolioId: string;
        selectedExchangeStore: SelectedExchangesStore;
        session: Session;
        subscribeUnderlyingQuoteEstimateByProductQuote: (
            params: subscribeUnderlyingQuoteEstimateByProductQuoteObject,
            cb: (
                err: Error & { code: string } | null,
                data: {
                    askTooOld: boolean;
                    bidTooOld: boolean;
                    underlyingEstimate: number;
                },
            ) => void,
        ) => { unbind: () => void };
        subscribeQuotes(
            subscriptions: {
                crossRate1?: number;
                crossRate2?: number;
                prodAsk: number;
                prodBid: number;
                underlying: string;
            },
            cb: (
                quotes: {
                    crossRate1?: number;
                    crossRate2?: number;
                    prodAsk: Quote;
                    prodBid: Quote;
                    underlying: Quote;
                },
            ) => void,
        ): { unbind: () => void };
    }
    Index

    Properties

    convertCurrencyIsoToSymbol: (currencyISO?: string) => string | undefined
    initKoCalculation: (
        param: { prod: string; underlying: string },
        cb: (err: Error | null, data: KoCalculations) => void,
    ) => { unbind: () => void }
    portfolioId: string
    selectedExchangeStore: SelectedExchangesStore
    session: Session
    subscribeUnderlyingQuoteEstimateByProductQuote: (
        params: subscribeUnderlyingQuoteEstimateByProductQuoteObject,
        cb: (
            err: Error & { code: string } | null,
            data: {
                askTooOld: boolean;
                bidTooOld: boolean;
                underlyingEstimate: number;
            },
        ) => void,
    ) => { unbind: () => void }

    Methods

    • Parameters

      • subscriptions: {
            crossRate1?: number;
            crossRate2?: number;
            prodAsk: number;
            prodBid: number;
            underlying: string;
        }
      • cb: (
            quotes: {
                crossRate1?: number;
                crossRate2?: number;
                prodAsk: Quote;
                prodBid: Quote;
                underlying: Quote;
            },
        ) => void

      Returns { unbind: () => void }