Chartbreaker
    Preparing search index...

    Class TradingContext

    Index

    Constructors

    Properties

    AbortController: WhatWgAbortController
    boerseGoApiClientId: string
    boerseGoAuth: BoerseGoAuth
    boerseGoPortfolioPush: BoerseGoPortfolioPush
    dependencies: BrokerDependencies
    enableBrokerizeLongTermTokens: boolean

    If true, enables long-term brokerize guest user tokens to be stored in LocalStorage. The brokerize guest user's refresh_token_without_tradingsession will be persisted in LocalStorage. This does not extend trading session lifetime, but only the lifetime of the brokerize guest user account.

    This saves resources in the brokerize backend, as new logins do not need to re-sync the entire account data each day.

    Of course, this only affects brokerize implementations.

    enableBrokerizeTradeStatistics: boolean

    true to enable the new brokerize trade statistic features. Turning it on means that the order list view "history" becomes available. This is a temporary feature toggle which should be removed once trade stats are available in all frontends.

    instruments: Instruments
    localStorage: KeyValueStore
    log: Logger
    platform: Platform
    quotesProvider: QuotesProvider
    realMoneyOrderCreatedSubject: Subject<void>
    sessionStorage: KeyValueStore
    setCookie: (opts: { domain?: string; key?: string; value?: string }) => void

    Methods

    • Type Parameters

      • T

      Parameters

      • createPromise: (abortSignal: AbortSignal_2) => Promise<T>
      • OptionaldoComplete: boolean

      Returns Observable<T>

    • Parameters

      • portfolioId: string

      Returns Observable<void>

    • Parameters

      • portfolioId: string

      Returns Observable<void>

    • Parameters

      • userId: string

      Returns Observable<void>

    • Parameters

      • userId: string

      Returns Observable<void>

    • Parameters

      • url: string
      • Optionalprotocols: string | string[]

      Returns WebSocket_2

    • Returns void

    • Parameters

      • str: string

      Returns string

    • Parameters

      Returns string

    • Parameters

      • date: Date

      Returns string