public class ClientConfig extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static ClientConfig |
DEFAULT_CONFIG
default client config
|
String |
defaultAccount
default account
|
boolean |
isAutoGrabPermission
是否初始化实例完成时,自动抢占行情权限
|
String |
privateKey
private key
|
String |
secretKey
institutional trader private key 机构交易员专有密钥
|
String |
serverUrl
http interface server url
|
String |
socketServerUrl
socket server url
|
String |
stompVersion |
String |
tigerId
tigerId : 2015xxxx, address:https://www.itiger.com/openapi/info
|
| 限定符和类型 | 方法和说明 |
|---|---|
Env |
getEnv() |
io.netty.handler.ssl.SslProvider |
getSslProvider() |
Protocol |
getSubscribeProtocol() |
String |
readPrivateKey(String privateKeyFile)
read private key from file(Remove first and last lines and line breaks)
|
void |
setEnv(Env env) |
void |
setSslProvider(io.netty.handler.ssl.SslProvider sslProvider) |
void |
setSubscribeProtocol(Protocol subscribeProtocol) |
public static final ClientConfig DEFAULT_CONFIG
public String stompVersion
public String serverUrl
public String socketServerUrl
public String tigerId
public String defaultAccount
public String privateKey
public boolean isAutoGrabPermission
public String secretKey
public Protocol getSubscribeProtocol()
public void setSubscribeProtocol(Protocol subscribeProtocol)
public Env getEnv()
public void setEnv(Env env)
public io.netty.handler.ssl.SslProvider getSslProvider()
public void setSslProvider(io.netty.handler.ssl.SslProvider sslProvider)
Copyright © 2022. All rights reserved.