Package com.longportwhale
Class Config
- java.lang.Object
-
- com.longportwhale.Config
-
- All Implemented Interfaces:
AutoCloseable
public class Config extends Object implements AutoCloseable
Configuration options for LongPort sdk
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static ConfigfromEnv()Create a new `Config` from the given environment variables
-
-
-
Method Detail
-
fromEnv
public static Config fromEnv() throws OpenApiException
Create a new `Config` from the given environment variablesIt first gets the environment variables from the .env file in the current directory.
- Returns:
- Config object
- Throws:
OpenApiException- If an error occurs
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-