StaticfromCreate a new Config from the given environment variables
It first gets the environment variables from the .env file in the
current directory.
LONGPORT_LANGUAGE - Language identifier, zh-CN, zh-HK or en
(Default: en)LONGPORT_APP_KEY - App keyLONGPORT_APP_SECRET - App secretLONGPORT_ACCESS_TOKEN - Access tokenLONGPORT_HTTP_URL - HTTP endpoint urlLONGPORT_QUOTE_WS_URL - Quote websocket endpoint urlLONGPORT_TRADE_WS_URL - Trade websocket endpoint urlLONGPORT_ENABLE_OVERNIGHT - Enable overnight quote, true or
false (Default: false)LONGPORT_PUSH_CANDLESTICK_MODE - realtime or confirmed (Default:
realtime)LONGPORT_PRINT_QUOTE_PACKAGES - Print quote packages when connected,
true or false (Default: true)Gets a new access_token
expired_at - The expiration time of the access token, defaults to 90
days.
OptionalexpiredAt: Date
Configuration for LongPort sdk