StaticfromApp key
App secret
Access token
OptionalhttpUrl: string | nullHTTP endpoint url override (reads
LONGBRIDGE_HTTP_URL from env if omitted; falls
back to https://openapi.longbridge.com)
StaticfromCreate a new HttpClient from environment variables (API Key mode)
It first reads the .env file in the current directory.
LONGBRIDGE_HTTP_URL - HTTP endpoint urlLONGBRIDGE_APP_KEY - App keyLONGBRIDGE_APP_SECRET - App secretLONGBRIDGE_ACCESS_TOKEN - Access tokenStaticfromCreate a new HttpClient from an OAuth handle
LONGBRIDGE_HTTP_URL is read from the environment automatically.
Passing httpUrl overrides that value.
OAuth handle obtained from OAuth.build(...)
OptionalhttpUrl: string | nullHTTP endpoint url override (reads LONGBRIDGE_HTTP_URL
from env if omitted; falls back to
https://openapi.longbridge.com)
Create a new
HttpClientusing API Key authenticationLONGBRIDGE_HTTP_URLis read from the environment automatically. PassinghttpUrloverrides that value.