Interface ConfigParams

Configuration parameters

interface ConfigParams {
    appKey: string;
    appSecret: string;
    accessToken: string;
    httpUrl?: string;
    quoteWsUrl?: string;
    tradeWsUrl?: string;
    language?: Language;
    enableOvernight?: boolean;
    pushCandlestickMode?: PushCandlestickMode;
}

Properties

appKey: string

App Key

appSecret: string

App Secret

accessToken: string

Access Token

httpUrl?: string

HTTP API url (default: "https://openapi.longportapp.com")

quoteWsUrl?: string

Websocket url for quote API (default: "wss://openapi-quote.longportapp.com/v2")

tradeWsUrl?: string

Websocket url for trade API (default: "wss://openapi-trade.longportapp.com/v2")

language?: Language

Language identifier (default: Language.EN)

enableOvernight?: boolean

Enable overnight (default: false)

pushCandlestickMode?: PushCandlestickMode

Push candlesticks mode (default: PushCandlestickMode.Realtime)