Create a new Config
Static
fromCreate a new Config
from the given environment variables
It first gets the environment variables from the .env
file in the
current directory.
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
)
Configuration for LongPort sdk