Documentation ¶
Index ¶
- Constants
- func DecodeGBK(s string) (string, error)
- func GetFieldValueIgnoreEmptyPassword(field interface{}) map[string]interface{}
- func LogReq(reqID int, message string, reqRtn int, reqField interface{})
- func RspToError(pRspInfo libctp.CThostFtdcRspInfoField) error
- func ShouldDecodeGBK(s string) string
- func StringSlice2C(strs []string) *string
- type Account
- type ClientAuth
- type RequestReturnValue
Constants ¶
View Source
const ( OK RequestReturnValue = 0 // 0,代表成功。 NetworkError = -1 //-1,表示网络连接失败; UnhandlerExceedLimit = -2 //-2,表示未处理请求超过许可数; QPSExceedLimit = -3 //-3,表示每秒发送请求数超过许可数。 )
Variables ¶
This section is empty.
Functions ¶
func GetFieldValueIgnoreEmptyPassword ¶
func GetFieldValueIgnoreEmptyPassword(field interface{}) map[string]interface{}
func RspToError ¶
func RspToError(pRspInfo libctp.CThostFtdcRspInfoField) error
func ShouldDecodeGBK ¶
func StringSlice2C ¶
Types ¶
type Account ¶
type Account struct { BrokerID string `toml:"broker_id"` UserID string `toml:"user_id"` Password string `toml:"password"` }
Account 为交易CTP交易账户,可用于登录行情、交易前置
type ClientAuth ¶
type RequestReturnValue ¶
type RequestReturnValue int
func (RequestReturnValue) String ¶
func (i RequestReturnValue) String() string
Click to show internal directories.
Click to hide internal directories.