public class ClientConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
String |
configFilePath |
static ClientConfig |
DEFAULT_CONFIG
default client config
|
String |
defaultAccount
default account
|
int |
failRetryCounts
request fail retry counts, range:[0, 5], if less than 1 will no retry; if bigger than 5 will set default value
|
boolean |
isAutoGrabPermission
whether to automatically grab quote permission when the initialization instance is completed
|
boolean |
isAutoRefreshToken
whether to automatically refresh token
|
boolean |
isSslSocket |
Language |
language
default language
|
License |
license |
String |
privateKey
private key
|
int |
refreshTokenIntervalDays
refresh token frequency
|
String |
refreshTokenTime
refresh token time, formate: HH:mm:ss
|
String |
secretKey
institutional trader private key
|
String |
tigerId
tigerId : 2015xxxx, address:https://www.itiger.com/openapi/info
|
TimeZoneId |
timeZone
default time zone
|
String |
token
token(Only Hong Kong license required)
|
boolean |
useFullTick
subscribed tradetick data, Whether to use the full version of the stock tick
|
String |
version |
| 构造器和说明 |
|---|
ClientConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
Language |
getDefaultLanguage() |
TimeZoneId |
getDefaultTimeZone() |
Env |
getEnv() |
io.netty.handler.ssl.SslProvider |
getSslProvider() |
String |
readPrivateKey(String privateKeyFile)
已过时。
|
void |
setEnv(Env env) |
void |
setSslProvider(io.netty.handler.ssl.SslProvider sslProvider) |
public static final ClientConfig DEFAULT_CONFIG
public String configFilePath
public License license
public String version
public boolean isSslSocket
public String tigerId
public String defaultAccount
public String privateKey
public volatile String token
public int refreshTokenIntervalDays
public String refreshTokenTime
public boolean isAutoGrabPermission
public boolean isAutoRefreshToken
public TimeZoneId timeZone
public Language language
public String secretKey
public int failRetryCounts
public boolean useFullTick
public TimeZoneId getDefaultTimeZone()
public Language getDefaultLanguage()
public Env getEnv()
public void setEnv(Env env)
public io.netty.handler.ssl.SslProvider getSslProvider()
public void setSslProvider(io.netty.handler.ssl.SslProvider sslProvider)
@Deprecated public String readPrivateKey(String privateKeyFile)
privateKeyFile - absolute pathreadPrivateKey()Copyright © 2025. All rights reserved.