OptionalhttpHTTP API url (default: "https://openapi.longbridge.com")
OptionalquoteWebsocket url for quote API (default: "wss://openapi-quote.longbridge.com/v2")
OptionaltradeWebsocket url for trade API (default: "wss://openapi-trade.longbridge.com/v2")
OptionallanguageLanguage identifier (default: Language.EN)
OptionalenableEnable overnight (default: false)
OptionalpushPush candlesticks mode (default: PushCandlestickMode.Realtime)
OptionalenableEnable printing the opened quote packages when connected to the server
(default: true). Set to false to suppress the output.
OptionallogSet the path of the log files (Default: no logs)
OptionalenableEnable paper trading mode (default: false).
When true, all API calls target the paper trading (simulation)
environment. The server validates the token: if it belongs to a
real-money account the server returns an error.
When false (the default) the server imposes no restrictions — both
paper trading and real-money accounts are accepted.
Paper trading users should set this to true as a safety guard.
Optional extra parameters shared by
Config.fromApikeyandConfig.fromOAuth. All fields are optional.