Documentation
¶
Index ¶
- func GBK(chars *C.char) string
- type TAPIAUTHCODE
- type TAPIAccountRightType
- type TAPIAccountState
- type TAPIAccountType
- type TAPIBankAccountLWFlagType
- type TAPIBillFileTypeType
- type TAPIBillTypeType
- type TAPICHAR
- type TAPICalculateModeType
- type TAPICallOrPutFlagType
- type TAPICashAdjustTypeType
- type TAPIClientIDType
- type TAPIClientLocationIDType
- type TAPICmbDirectType
- type TAPICommodityType
- type TAPIContractTypeType
- type TAPIDATE
- type TAPIDATETIME
- type TAPIDTSTAMP
- type TAPIDeliveryModeType
- type TAPIFutureAlgType
- type TAPIHedgeFlagType
- type TAPIINT32
- type TAPIINT64
- type TAPILOGLEVEL
- type TAPILoginTypeType
- type TAPIMACTYPE
- type TAPIMarginCalculateModeType
- type TAPIMatchSourceType
- type TAPIMsgLevelType
- type TAPIMsgReceiverType
- type TAPIMsgTypeType
- type TAPINoticeIgnoreFlagType
- type TAPIORDERACT
- type TAPIOpenCloseModeType
- type TAPIOptionAlgType
- type TAPIOptionMarginCalculateModeType
- type TAPIOptionType
- type TAPIOrderQryTypeType
- type TAPIOrderSourceType
- type TAPIOrderStateType
- type TAPIOrderTypeType
- type TAPIPasswordType
- type TAPIPositionEffectType
- type TAPIREAL64
- type TAPIRightIDType
- type TAPISTR_10
- type TAPISTR_100
- type TAPISTR_20
- type TAPISTR_2000
- type TAPISTR_30
- type TAPISTR_300
- type TAPISTR_40
- type TAPISTR_50
- type TAPISTR_500
- type TAPISTR_70
- type TAPISecondSerialIDType
- type TAPISettleFlagType
- type TAPISideType
- type TAPITIME
- type TAPITacticsTypeType
- type TAPITimeInForceType
- type TAPITradingStateType
- type TAPITriggerConditionType
- type TAPITriggerPriceTypeType
- type TAPIUINT16
- type TAPIUINT32
- type TAPIUINT8
- type TAPIUserTypeType
- type TAPIYNFLAG
- type TapAPIAbnormalFalgType
- type TapAPIAccQryReq
- type TapAPIAccountCashAdjustQryReq
- type TapAPIAccountCashAdjustQryRsp
- type TapAPIAccountFeeRentQryReq
- type TapAPIAccountFeeRentQryRsp
- type TapAPIAccountIPOAddNotice
- type TapAPIAccountIPOAddReq
- type TapAPIAccountIPOAddRsp
- type TapAPIAccountIPOCancelNotice
- type TapAPIAccountIPOCancelReq
- type TapAPIAccountIPOCancelRsp
- type TapAPIAccountIPOQryReq
- type TapAPIAccountIPOQryRsp
- type TapAPIAccountInfo
- type TapAPIAccountMarginRentQryReq
- type TapAPIAccountMarginRentQryRsp
- type TapAPIAmendOrder
- type TapAPIApplicationInfo
- type TapAPIApplyStatusType
- type TapAPIApplyTypeType
- type TapAPIAuthPasswordReq
- type TapAPIAvailableApplyQryReq
- type TapAPIAvailableApplyQryRsp
- type TapAPIBillQryReq
- type TapAPIBillQryRsp
- type TapAPICertificateTypeType
- type TapAPIChangePasswordReq
- type TapAPICloseInfo
- type TapAPICloseQryReq
- type TapAPICombinePositionInfo
- type TapAPICombinePositionQryReq
- type TapAPICombineStrategyType
- type TapAPICommodity
- type TapAPICommodityInfo
- type TapAPIContactContentType
- type TapAPIContract
- type TapAPICurrencyInfo
- type TapAPIExchangeInfo
- type TapAPIFillInfo
- type TapAPIFillLocalInputReq
- type TapAPIFillLocalRemoveReq
- type TapAPIFillLocalRemoveRsp
- type TapAPIFillQryReq
- type TapAPIFundData
- type TapAPIFundReq
- type TapAPIHisDeliveryQryReq
- type TapAPIHisDeliveryQryRsp
- type TapAPIHisMatchQryReq
- type TapAPIHisMatchQryRsp
- type TapAPIHisOrderProcessQryReq
- type TapAPIHisOrderProcessQryRsp
- type TapAPIHisOrderQryReq
- type TapAPIHisOrderQryRsp
- type TapAPIHisPositionQryReq
- type TapAPIHisPositionQryRsp
- type TapAPIIPOInfoQryReq
- type TapAPIIPOInfoQryRsp
- type TapAPINewOrder
- type TapAPIOrderActionRsp
- type TapAPIOrderActivateReq
- type TapAPIOrderCancelReq
- type TapAPIOrderDeactivateReq
- type TapAPIOrderDeleteReq
- type TapAPIOrderInfo
- type TapAPIOrderInfoNotice
- type TapAPIOrderLocalInputReq
- type TapAPIOrderLocalModifyReq
- type TapAPIOrderLocalRemoveReq
- type TapAPIOrderLocalRemoveRsp
- type TapAPIOrderLocalTransferReq
- type TapAPIOrderMarketDeleteReq
- type TapAPIOrderMarketInsertReq
- type TapAPIOrderMarketInsertRsp
- type TapAPIOrderProcessQryReq
- type TapAPIOrderQryReq
- type TapAPIOrderQuoteMarketNotice
- type TapAPIPositionInfo
- type TapAPIPositionProfit
- type TapAPIPositionProfitNotice
- type TapAPIPositionQryReq
- type TapAPIPositionSummary
- type TapAPIRequestVertificateCodeRsp
- type TapAPISecondCertificationReq
- type TapAPISpecialOrderInfo
- type TapAPISpecialOrderInsertReq
- type TapAPISpecialOrderQryReq
- type TapAPISpecialOrderTypeType
- type TapAPISpotLockDataNotice
- type TapAPISpotLockDataRsp
- type TapAPISpotLockQryReq
- type TapAPISpotLockQryRsp
- type TapAPISubmitUserLoginInfo
- type TapAPISubmitUserLoginRspInfo
- type TapAPITradeContractInfo
- type TapAPITradeLoginAuth
- type TapAPITradeLoginRspInfo
- type TapAPITradeMessage
- type TapAPITradeMessageReq
- type TapAPITradingCalendarQryRsp
- type TapAPIUserTrustDeviceAddReq
- type TapAPIUserTrustDeviceDelReq
- type TapAPIUserTrustDeviceQryReq
- type TapAPIUserTrustDeviceQryRsp
- type TapAPIVerifyIdentityReq
- type Trade
- func (t *Trade) ActivateOrder(sessionID *TAPIUINT32, order *TapAPIOrderCancelReq) C.int
- func (t *Trade) AddAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOAddReq) C.int
- func (t *Trade) AddUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceAddReq) C.int
- func (t *Trade) AmendOrder(sessionID *TAPIUINT32, order *TapAPIAmendOrder) C.int
- func (t *Trade) AuthPassword(sessionID *TAPIUINT32, req *TapAPIAuthPasswordReq) C.int
- func (t *Trade) CancelAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOCancelReq) C.int
- func (t *Trade) CancelHKMarketOrder(sessionID *TAPIUINT32, order *TapAPIOrderMarketDeleteReq) C.int
- func (t *Trade) CancelOrder(sessionID *TAPIUINT32, order *TapAPIOrderCancelReq) C.int
- func (t *Trade) ChangePassword(sessionID *TAPIUINT32, req *TapAPIChangePasswordReq) C.int
- func (t *Trade) CreateITapTradeAPI(appInfo *TapAPIApplicationInfo, res *TAPIINT32)
- func (t *Trade) CreateITapTradeAPINotify()
- func (t *Trade) DelUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceDelReq) C.int
- func (t *Trade) Disconnect() C.int
- func (t *Trade) FillLocalInput(sessionID *TAPIUINT32, fill *TapAPIFillLocalInputReq) C.int
- func (t *Trade) FillLocalRemove(sessionID *TAPIUINT32, fill *TapAPIFillLocalRemoveReq) C.int
- func (t *Trade) FreeITapTradeAPI(api unsafe.Pointer)
- func (t *Trade) GetITapErrorDescribe(errorCode TAPIINT32) string
- func (t *Trade) GetITapTradeAPIVersion() string
- func (t *Trade) HaveCertainRight(rightID TAPIRightIDType) C.int
- func (t *Trade) InsertHKMarketOrder(sessionID *TAPIUINT32, ClientBuyOrderNo TAPISTR_50, ...) C.int
- func (t *Trade) InsertOrder(sessionID *TAPIUINT32, ClientOrderNo *TAPISTR_50, order *TapAPINewOrder) C.int
- func (t *Trade) InsertSpecialOrder(sessionID *TAPIUINT32, clientorderno TAPISTR_50, ...) C.int
- func (t *Trade) Login(loginAuth *TapAPITradeLoginAuth) C.int
- func (t *Trade) OrderLocalInput(sessionID *TAPIUINT32, order *TapAPIOrderLocalInputReq) C.int
- func (t *Trade) OrderLocalModify(sessionID *TAPIUINT32, order *TapAPIOrderLocalModifyReq) C.int
- func (t *Trade) OrderLocalRemove(sessionID *TAPIUINT32, order *TapAPIOrderLocalRemoveReq) C.int
- func (t *Trade) OrderLocalTransfer(sessionID *TAPIUINT32, order *TapAPIOrderLocalTransferReq) C.int
- func (t *Trade) QryAccount(sessionID *TAPIUINT32, qryReq *TapAPIAccQryReq) C.int
- func (t *Trade) QryAccountCashAdjust(sessionID *TAPIUINT32, qryReq *TapAPIAccountCashAdjustQryReq) C.int
- func (t *Trade) QryAccountFeeRent(sessionID *TAPIUINT32, qryReq *TapAPIAccountFeeRentQryReq) C.int
- func (t *Trade) QryAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOQryReq) C.int
- func (t *Trade) QryAccountMarginRent(sessionID *TAPIUINT32, qryReq *TapAPIAccountMarginRentQryReq) C.int
- func (t *Trade) QryBill(sessionID *TAPIUINT32, qryReq *TapAPIBillQryReq) C.int
- func (t *Trade) QryCombinePosition(sessionID *TAPIUINT32, qryReq *TapAPICombinePositionQryReq) C.int
- func (t *Trade) QryCommodity(sessionID *TAPIUINT32) C.int
- func (t *Trade) QryContract(sessionID *TAPIUINT32, qryReq *TapAPICommodity) C.int
- func (t *Trade) QryCurrency(sessionID *TAPIUINT32) C.int
- func (t *Trade) QryExchange(sessionID *TAPIUINT32) C.int
- func (t *Trade) QryFill(sessionID *TAPIUINT32, qryReq *TapAPIFillQryReq) C.int
- func (t *Trade) QryFund(sessionID *TAPIUINT32, qryReq *TapAPIFundReq) C.int
- func (t *Trade) QryHisDelivery(sessionID *TAPIUINT32, qryReq *TapAPIHisDeliveryQryReq) C.int
- func (t *Trade) QryHisMatch(sessionID *TAPIUINT32, qryReq *TapAPIHisMatchQryReq) C.int
- func (t *Trade) QryHisOrder(sessionID *TAPIUINT32, qryReq *TapAPIHisOrderQryReq) C.int
- func (t *Trade) QryHisOrderProcess(sessionID *TAPIUINT32, qryReq *TapAPIHisOrderProcessQryReq) C.int
- func (t *Trade) QryHisPosition(sessionID *TAPIUINT32, qryReq *TapAPIHisPositionQryReq) C.int
- func (t *Trade) QryIPOInfo(sessionID *TAPIUINT32, qryReq *TapAPIIPOInfoQryReq) C.int
- func (t *Trade) QryIPOStockQty(sessionID *TAPIUINT32, qryReq *TapAPIAvailableApplyQryReq) C.int
- func (t *Trade) QryOrder(sessionID *TAPIUINT32, qryReq *TapAPIOrderQryReq) C.int
- func (t *Trade) QryOrderProcess(sessionID *TAPIUINT32, qryReq *TapAPIOrderProcessQryReq) C.int
- func (t *Trade) QryPosition(sessionID *TAPIUINT32, qryReq *TapAPIPositionQryReq) C.int
- func (t *Trade) QryPositionSummary(sessionID *TAPIUINT32, qryReq *TapAPIPositionQryReq) C.int
- func (t *Trade) QrySpecialOrder(sessionID *TAPIUINT32, qryReq *TapAPISpecialOrderQryReq) C.int
- func (t *Trade) QrySpotLock(sessionID *TAPIUINT32, qryReq *TapAPISpotLockQryReq) C.int
- func (t *Trade) QryTradeMessage(sessionID *TAPIUINT32, qryReq *TapAPITradeMessageReq) C.int
- func (t *Trade) QryTradingDate(sessionID *TAPIUINT32) C.int
- func (t *Trade) QryUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceQryReq) C.int
- func (t *Trade) RegCallBack()
- func (t *Trade) RequestVertificateCode(sessionID *TAPIUINT32, ContactInfo TAPISTR_40) C.int
- func (t *Trade) SetAPINotify(pSpi unsafe.Pointer) C.int
- func (t *Trade) SetHostAddress(IP string, port TAPIUINT16) C.int
- func (t *Trade) SetReservedInfo(sessionID *TAPIUINT32, info TAPISTR_50) C.int
- func (t *Trade) SetSpi()
- func (t *Trade) SetVertificateCode(sessionID *TAPIUINT32, req *TapAPISecondCertificationReq) C.int
- func (t *Trade) SubmitUserLoginInfo(sessionID *TAPIUINT32, qryReq *TapAPISubmitUserLoginInfo) C.int
- func (t *Trade) UnFreeze(loginAuth *TapAPITradeLoginAuth) C.int
- func (t *Trade) VerificateUnFreezeInfo(sessionID *TAPIUINT32, qryReq *TapAPIVerifyIdentityReq) C.int
- type TradeExt
- func (t *TradeExt) ReqConnect(tradeIP string, port uint) error
- func (t *TradeExt) ReqLogin(accountNo, passWord string) error
- func (t *TradeExt) ReqOrderInsert(exchangeID, commodityNo, contractNo string, orderType TAPIOrderTypeType, ...) (session uint, clientNo string, err error)
- func (t *TradeExt) ReqOrderInsertLMT(exchangeID, commodityNo, contractNo string, price float64, qty int, ...) (session uint, clientNo string, err error)
- func (t *TradeExt) ReqOrderInsertMKT(exchangeID, commodityNo, contractNo string, qty int, side TAPISideType, ...) (session uint, clientNo string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TAPIAUTHCODE ¶
type TAPIAUTHCODE [513]byte
Authorization Code
func (TAPIAUTHCODE) String ¶
func (e TAPIAUTHCODE) String() string
type TAPIAccountRightType ¶
type TAPIAccountRightType TAPICHAR
客户交易状态类型
const TAPI_ACCOUNT_TRADING_RIGHT_CLOSE TAPIAccountRightType = '2' // 只可平仓
const TAPI_ACCOUNT_TRADING_RIGHT_NORMAL TAPIAccountRightType = '0' // 正常交易
const TAPI_ACCOUNT_TRADING_RIGHT_NOTRADE TAPIAccountRightType = '1' // 禁止交易
type TAPIAccountState ¶
type TAPIAccountState TAPICHAR
账号状态
const TAPI_ACCOUNT_STATE_CANCEL TAPIAccountState = 'C' // 销户
const TAPI_ACCOUNT_STATE_NORMAL TAPIAccountState = 'N' // 正常
const TAPI_ACCOUNT_STATE_SLEEP TAPIAccountState = 'S' // 休眠
type TAPIAccountType ¶
type TAPIAccountType TAPICHAR
账号类型
const TAPI_ACCOUNT_TYPE_AGENT TAPIAccountType = 'A' // 代理人
const TAPI_ACCOUNT_TYPE_HOUSE TAPIAccountType = 'H' // Internal
const TAPI_ACCOUNT_TYPE_ORGANIZATION TAPIAccountType = 'O' // 机构客户
const TAPI_ACCOUNT_TYPE_PERSON TAPIAccountType = 'P' // 个人客户
const TAPI_ACCOUNT_TYPE_STOCK TAPIAccountType = 'S' // 股票账户
type TAPIBankAccountLWFlagType ¶
type TAPIBankAccountLWFlagType TAPICHAR
本外币标识
const TAPI_LWFlag_L TAPIBankAccountLWFlagType = 'L' // 境内人民币账户
const TAPI_LWFlag_W TAPIBankAccountLWFlagType = 'W' // 客户境内外币账户
type TAPIBillFileTypeType ¶
type TAPIBillFileTypeType TAPICHAR
帐单文件类型
const TAPI_BILL_FILE_PDF TAPIBillFileTypeType = 'F' // pdf格式文件
const TAPI_BILL_FILE_TXT TAPIBillFileTypeType = 'T' // txt格式文件
type TAPIBillTypeType ¶
type TAPIBillTypeType TAPICHAR
账单类型
const TAPI_BILL_DATE TAPIBillTypeType = 'D' // 日账单
const TAPI_BILL_MONTH TAPIBillTypeType = 'M' // 月账单
type TAPICalculateModeType ¶
type TAPICalculateModeType TAPICHAR
计算方式
const TAPI_CALCULATE_MODE_CHAPERCENTAGE TAPICalculateModeType = '3' // 差值比例
const TAPI_CALCULATE_MODE_CHAQUOTA TAPICalculateModeType = '4' // 差值定额
const TAPI_CALCULATE_MODE_DISCOUNT TAPICalculateModeType = '5' // 折扣
const TAPI_CALCULATE_MODE_PERCENTAGE TAPICalculateModeType = '1' // 比例
const TAPI_CALCULATE_MODE_QUOTA TAPICalculateModeType = '2' // 定额
type TAPICallOrPutFlagType ¶
type TAPICallOrPutFlagType TAPICHAR
看涨看跌标示
const TAPI_CALLPUT_FLAG_CALL TAPICallOrPutFlagType = 'C' // 买权
const TAPI_CALLPUT_FLAG_NONE TAPICallOrPutFlagType = 'N' // 无
const TAPI_CALLPUT_FLAG_PUT TAPICallOrPutFlagType = 'P' // 卖权
type TAPICashAdjustTypeType ¶
type TAPICashAdjustTypeType TAPICHAR
资金调整类型
const TAPI_CASHINOUT_MODE_COLLECTIONCOST TAPICashAdjustTypeType = '4' // 代扣费用
const TAPI_CASHINOUT_MODE_COMPANY TAPICashAdjustTypeType = '6' // 公司间拨账
const TAPI_CASHINOUT_MODE_FEEADJUST TAPICashAdjustTypeType = '0' // 手续费调整
const TAPI_CASHINOUT_MODE_INTERESTREVENUE TAPICashAdjustTypeType = '3' // 利息收入
const TAPI_CASHINOUT_MODE_OTHER TAPICashAdjustTypeType = '5' // 其它
const TAPI_CASHINOUT_MODE_PLEDGE TAPICashAdjustTypeType = '2' // 质押资金
const TAPI_CASHINOUT_MODE_YKADJUST TAPICashAdjustTypeType = '1' // 盈亏调整
type TAPIClientIDType ¶
type TAPIClientIDType [16]byte
子账户类型
func (TAPIClientIDType) String ¶
func (e TAPIClientIDType) String() string
type TAPIClientLocationIDType ¶
type TAPIClientLocationIDType [6]byte
下单人地址
func (TAPIClientLocationIDType) String ¶
func (e TAPIClientLocationIDType) String() string
type TAPICmbDirectType ¶
type TAPICmbDirectType TAPICHAR
组合方向,品种两腿组合合约的买卖方向和第几腿相同
const TAPI_CMB_DIRECT_FIRST TAPICmbDirectType = '1' // 和第一腿一致
const TAPI_CMB_DIRECT_SECOND TAPICmbDirectType = '2' // 和第二腿一致
type TAPICommodityType ¶
type TAPICommodityType TAPICHAR
品种类型
const TAPI_COMMODITY_TYPE_BER TAPICommodityType = 'E' // 看跌垂直套利
const TAPI_COMMODITY_TYPE_BUL TAPICommodityType = 'U' // 看涨垂直套利
const TAPI_COMMODITY_TYPE_BULLBEAR TAPICommodityType = '1' // 港股--牛熊证
const TAPI_COMMODITY_TYPE_CROSSFOREX TAPICommodityType = 'C' // 外汇——交叉汇率
const TAPI_COMMODITY_TYPE_DBET TAPICommodityType = '3' // 港股--债券
const TAPI_COMMODITY_TYPE_DERIVATIVE TAPICommodityType = '0' // 港股--窝轮
const TAPI_COMMODITY_TYPE_DIRECTFOREX TAPICommodityType = 'X' // 外汇——直接汇率
const TAPI_COMMODITY_TYPE_FUND TAPICommodityType = '4' // 港股--基金
const TAPI_COMMODITY_TYPE_FUTURES TAPICommodityType = 'F' // 期货
const TAPI_COMMODITY_TYPE_INDEX TAPICommodityType = 'Z' // 指数
const TAPI_COMMODITY_TYPE_INDIRECTFOREX TAPICommodityType = 'I' // 外汇——间接汇率
const TAPI_COMMODITY_TYPE_INLINE TAPICommodityType = '2' // 港股--界内证
const TAPI_COMMODITY_TYPE_NONE TAPICommodityType = 'N' // 无
const TAPI_COMMODITY_TYPE_OPTION TAPICommodityType = 'O' // 期权
const TAPI_COMMODITY_TYPE_PRT TAPICommodityType = 'R' // 备兑组合
const TAPI_COMMODITY_TYPE_SPREAD_COMMODITY TAPICommodityType = 'M' // 跨品种套利
const TAPI_COMMODITY_TYPE_SPREAD_MONTH TAPICommodityType = 'S' // 跨期套利
const TAPI_COMMODITY_TYPE_STD TAPICommodityType = 'D' // 跨式套利
const TAPI_COMMODITY_TYPE_STG TAPICommodityType = 'G' // 宽跨式套利
const TAPI_COMMODITY_TYPE_STOCK TAPICommodityType = 'T' // 股票/基金
const TAPI_COMMODITY_TYPE_TAS TAPICommodityType = 'B' // TAS
type TAPIContractTypeType ¶
type TAPIContractTypeType TAPICHAR
合约类型
const TAPI_CONTRACT_TYPE_QUOTE TAPIContractTypeType = '2' // 行情合约
const TAPI_CONTRACT_TYPE_TRADEQUOTE TAPIContractTypeType = '1' // 交易行情合约
type TAPIDATETIME ¶
type TAPIDATETIME [20]byte
日期和时间类型(格式 yyyy-MM-dd hh:nn:ss)
func (TAPIDATETIME) String ¶
func (e TAPIDATETIME) String() string
type TAPIDTSTAMP ¶
type TAPIDTSTAMP [24]byte
时间戳类型(格式 yyyy-MM-dd hh:nn:ss.xxx)
func (TAPIDTSTAMP) String ¶
func (e TAPIDTSTAMP) String() string
type TAPIDeliveryModeType ¶
type TAPIDeliveryModeType TAPICHAR
交割行权方式,期货和期权了结的方式
const TAPI_DELIVERY_MODE_ABANDON TAPIDeliveryModeType = 'A' // 期权放弃
const TAPI_DELIVERY_MODE_CASH TAPIDeliveryModeType = 'C' // 现金交割
const TAPI_DELIVERY_MODE_EXECUTE TAPIDeliveryModeType = 'E' // 期权行权
const TAPI_DELIVERY_MODE_GOODS TAPIDeliveryModeType = 'G' // 实物交割
const TAPI_DELIVERY_MODE_HKF TAPIDeliveryModeType = 'H' // 港交所行权
type TAPIFutureAlgType ¶
type TAPIFutureAlgType TAPICHAR
币种组资金是否共享
const TAPI_FUTURES_ALG_DINGSHI TAPIFutureAlgType = 'N' // 不独立
const TAPI_FUTURES_ALG_ZHUBI TAPIFutureAlgType = 'Y' // 独立
type TAPIHedgeFlagType ¶
type TAPIHedgeFlagType TAPICHAR
投机保值类型
const TAPI_HEDGEFLAG_B TAPIHedgeFlagType = 'B' // 保值
const TAPI_HEDGEFLAG_NONE TAPIHedgeFlagType = 'N' // 无
const TAPI_HEDGEFLAG_R TAPIHedgeFlagType = 'R' // 备兑
const TAPI_HEDGEFLAG_T TAPIHedgeFlagType = 'T' // 投机
type TAPILOGLEVEL ¶
type TAPILOGLEVEL TAPICHAR
日志级别
const APILOGLEVEL_DEBUG TAPILOGLEVEL = 'D' // Debug
const APILOGLEVEL_ERROR TAPILOGLEVEL = 'E' // Error
const APILOGLEVEL_NONE TAPILOGLEVEL = 'N' // Normal
const APILOGLEVEL_WARNING TAPILOGLEVEL = 'W' // Warning
type TAPILoginTypeType ¶
type TAPILoginTypeType TAPICHAR
二次认证登录类型
const TAPI_LOGINTYPE_NORMAL TAPILoginTypeType = 'N' // 正常登录(信任该设备)
const TAPI_LOGINTYPE_TEMPORARY TAPILoginTypeType = 'T' // 临时登录
type TAPIMACTYPE ¶
type TAPIMACTYPE [13]byte
MAC地址类型.
func (TAPIMACTYPE) String ¶
func (e TAPIMACTYPE) String() string
type TAPIMarginCalculateModeType ¶
type TAPIMarginCalculateModeType TAPICHAR
期货保证金方式
const TAPI_DEPOSITCALCULATE_MODE_FEN TAPIMarginCalculateModeType = '1' // 分笔
const TAPI_DEPOSITCALCULATE_MODE_SUO TAPIMarginCalculateModeType = '2' // 锁仓
type TAPIMatchSourceType ¶
type TAPIMatchSourceType TAPICHAR
成交来源
const TAPI_MATCH_SOURCE_ABANDON TAPIMatchSourceType = '8' // 期权放弃
const TAPI_MATCH_SOURCE_ALL TAPIMatchSourceType = '0' // 全部
const TAPI_MATCH_SOURCE_CARRY TAPIMatchSourceType = '5' // carry单
const TAPI_MATCH_SOURCE_CHANNEL TAPIMatchSourceType = '9' // 通道费
const TAPI_MATCH_SOURCE_DELIVERY TAPIMatchSourceType = '7' // 交割行权
const TAPI_MATCH_SOURCE_JTRADER TAPIMatchSourceType = '3' // 外部电子单
const TAPI_MATCH_SOURCE_MANUAL TAPIMatchSourceType = '4' // 人工录入单
const TAPI_MATCH_SOURCE_PROGRAM TAPIMatchSourceType = '6' // 程式化单
const TAPI_MATCH_SOURCE_PROGRAMMANUAL TAPIMatchSourceType = 'K' // 程序化手工单
const TAPI_MATCH_SOURCE_PROXY_ETRADER TAPIMatchSourceType = '2' // 代理电子单
const TAPI_MATCH_SOURCE_SELF_ETRADER TAPIMatchSourceType = '1' // 自助电子单
const TAPI_MATCH_SOURCE_TEMPORARY TAPIMatchSourceType = 'J' // 临时成交
type TAPIMsgLevelType ¶
type TAPIMsgLevelType TAPICHAR
消息级别
const TAPI_MSG_LEVEL_IMERGENCY TAPIMsgLevelType = '3' // 紧急
const TAPI_MSG_LEVEL_IMPORTANT TAPIMsgLevelType = '2' // 重要
const TAPI_MSG_LEVEL_NORMAL TAPIMsgLevelType = '1' // 普通
type TAPIMsgReceiverType ¶
type TAPIMsgReceiverType TAPICHAR
消息接收者类型
const TAPI_MSG_RECEIVER_ACCOUNTGROUPNO TAPIMsgReceiverType = '2' // 资金账号分组
const TAPI_MSG_RECEIVER_ACCOUNTNO TAPIMsgReceiverType = '1' // 单资金账号客户
const TAPI_MSG_RECEIVER_ATTRIBUTE TAPIMsgReceiverType = '3' // 符合属性的资金账号
const TAPI_MSG_RECEIVER_USERNO TAPIMsgReceiverType = '4' // 指定登录用户
type TAPIMsgTypeType ¶
type TAPIMsgTypeType TAPICHAR
消息类型
const TAPI_Msg_TYPE_MANAGER TAPIMsgTypeType = '1' // 管理
const TAPI_Msg_TYPE_RISKCONTROL TAPIMsgTypeType = '2' // 风险
type TAPIORDERACT ¶
type TAPIORDERACT TAPICHAR
订单操作类型
const APIORDER_ACTIVATE TAPIORDERACT = '5' // 激活
const APIORDER_DELETE TAPIORDERACT = '3' // 撤单
const APIORDER_INSERT TAPIORDERACT = '1' // 报单
const APIORDER_MODIFY TAPIORDERACT = '2' // 改单
const APIORDER_SUSPEND TAPIORDERACT = '4' // 挂起
const APIORDER_SYSTEM_DELETE TAPIORDERACT = '6' // 删除
type TAPIOpenCloseModeType ¶
type TAPIOpenCloseModeType TAPICHAR
开平方式
const TAPI_CLOSE_MODE_CLOSETODAY TAPIOpenCloseModeType = 'T' // 区分开仓、平仓和平今
const TAPI_CLOSE_MODE_NONE TAPIOpenCloseModeType = 'N' // 不区分开平
const TAPI_CLOSE_MODE_OPENCOVER TAPIOpenCloseModeType = 'C' // 区分开仓和平仓
const TAPI_CLOSE_MODE_UNFINISHED TAPIOpenCloseModeType = 'U' // 平仓未了结
type TAPIOptionAlgType ¶
type TAPIOptionAlgType TAPICHAR
是否是基币
const TAPI_OPTION_ALG_FUTURES TAPIOptionAlgType = '1' // 是基币
const TAPI_OPTION_ALG_OPTION TAPIOptionAlgType = '2' // 不是基币
type TAPIOptionMarginCalculateModeType ¶
type TAPIOptionMarginCalculateModeType TAPICHAR
期权保证金公式,据此判断该品种期权采用何种内置计算公式计算保证金
type TAPIOptionType ¶
type TAPIOptionType TAPICHAR
=============================================================================
type TAPIOrderQryTypeType ¶
type TAPIOrderQryTypeType TAPICHAR
委托查询类型
const TAPI_ORDER_QRY_TYPE_ALL TAPIOrderQryTypeType = 'A' // 返回所有委托
const TAPI_ORDER_QRY_TYPE_UNENDED TAPIOrderQryTypeType = 'U' // 只返回未结束的委托
type TAPIOrderSourceType ¶
type TAPIOrderSourceType TAPICHAR
委托来源
const TAPI_ORDER_SOURCE_ABANDON TAPIOrderSourceType = '8' // 期权放弃
const TAPI_ORDER_SOURCE_CARRY TAPIOrderSourceType = '5' // carry单
const TAPI_ORDER_SOURCE_CHANNEL TAPIOrderSourceType = '9' // 通道费
const TAPI_ORDER_SOURCE_DELIVERY TAPIOrderSourceType = '7' // 交割行权
const TAPI_ORDER_SOURCE_JTRADER TAPIOrderSourceType = '3' // 外部电子单(外部电子系统下单,本系统录入)
const TAPI_ORDER_SOURCE_MANUAL TAPIOrderSourceType = '4' // 人工录入单(外部其他方式下单,本系统录入)
const TAPI_ORDER_SOURCE_PROGRAM TAPIOrderSourceType = '6' // 程式化报单
const TAPI_ORDER_SOURCE_PROGRAMMANUAL TAPIOrderSourceType = 'K' // 程序化手工单
const TAPI_ORDER_SOURCE_PROXY_ETRADER TAPIOrderSourceType = '2' // 代理电子单
const TAPI_ORDER_SOURCE_SELF_ETRADER TAPIOrderSourceType = '1' // 自助电子单
const TAPI_ORDER_SOURCE_TEMPORARY TAPIOrderSourceType = 'J' // 临时成交
type TAPIOrderStateType ¶
type TAPIOrderStateType TAPICHAR
!未结束的委托类型:01234578D
const TAPI_ORDER_STATE_ACCEPT TAPIOrderStateType = '1' // 已受理
const TAPI_ORDER_STATE_APPLY TAPIOrderStateType = 'G' // 已申请——行权、弃权、套利等申请成功
const TAPI_ORDER_STATE_CANCELED TAPIOrderStateType = '9' // 完全撤单
const TAPI_ORDER_STATE_CANCELING TAPIOrderStateType = '7' // 待撤消(排队临时状态)
const TAPI_ORDER_STATE_DELETED TAPIOrderStateType = 'C' // 策略删除
const TAPI_ORDER_STATE_DELETEDFOREXPIRE TAPIOrderStateType = 'E' // 到期删除
const TAPI_ORDER_STATE_EFFECT TAPIOrderStateType = 'F' // 已生效——询价成功
const TAPI_ORDER_STATE_EXCTRIGGERING TAPIOrderStateType = '3' // 交易所待触发
const TAPI_ORDER_STATE_FAIL TAPIOrderStateType = 'B' // 指令失败
const TAPI_ORDER_STATE_FINISHED TAPIOrderStateType = '6' // 完全成交
const TAPI_ORDER_STATE_LEFTDELETED TAPIOrderStateType = 'A' // 已撤余单
const TAPI_ORDER_STATE_MODIFYING TAPIOrderStateType = '8' // 待修改(排队临时状态)
const TAPI_ORDER_STATE_PARTFINISHED TAPIOrderStateType = '5' // 部分成交
const TAPI_ORDER_STATE_QUEUED TAPIOrderStateType = '4' // 已排队
const TAPI_ORDER_STATE_SUBMIT TAPIOrderStateType = '0' // 终端提交
const TAPI_ORDER_STATE_SUPPENDED TAPIOrderStateType = 'D' // 已挂起
const TAPI_ORDER_STATE_TRIGGERING TAPIOrderStateType = '2' // 策略待触发
type TAPIOrderTypeType ¶
type TAPIOrderTypeType TAPICHAR
委托类型
const TAPI_ORDER_TYPE_ENHANCE TAPIOrderTypeType = 'F' // 增强限价单
const TAPI_ORDER_TYPE_GHOST TAPIOrderTypeType = 'A' // 影子单
const TAPI_ORDER_TYPE_HKEX_AUCTION TAPIOrderTypeType = 'B' // 港交所竞价单
const TAPI_ORDER_TYPE_ICEBERG TAPIOrderTypeType = '9' // 冰山单
const TAPI_ORDER_TYPE_LIMIT TAPIOrderTypeType = '2' // 限价
const TAPI_ORDER_TYPE_LIMITAUCTION TAPIOrderTypeType = 'H' // 竞价限价单
const TAPI_ORDER_TYPE_LOCK TAPIOrderTypeType = 'D' // 证券锁定
const TAPI_ORDER_TYPE_MARKET TAPIOrderTypeType = '1' // 市价
const TAPI_ORDER_TYPE_OPT_ABANDON TAPIOrderTypeType = '6' // 期权弃权
const TAPI_ORDER_TYPE_OPT_EXEC TAPIOrderTypeType = '5' // 期权行权
const TAPI_ORDER_TYPE_REQQUOT TAPIOrderTypeType = '7' // 询价
const TAPI_ORDER_TYPE_RSPQUOT TAPIOrderTypeType = '8' // 应价
const TAPI_ORDER_TYPE_SPECIAL TAPIOrderTypeType = 'G' // 特别限价单
const TAPI_ORDER_TYPE_STOP_LIMIT TAPIOrderTypeType = '4' // 限价止损
const TAPI_ORDER_TYPE_STOP_MARKET TAPIOrderTypeType = '3' // 市价止损
const TAPI_ORDER_TYPE_SWAP TAPIOrderTypeType = 'C' // 互换
const TAPI_ORDER_TYPE_UNLOCK TAPIOrderTypeType = 'E' // 证券解锁
type TAPIPasswordType ¶
type TAPIPasswordType TAPICHAR
密码类型
const APIPASSWORD_PHONE TAPIPasswordType = 'P' // 电话密码
const APIPASSWORD_TRADE TAPIPasswordType = 'T' // 交易密码
type TAPIPositionEffectType ¶
type TAPIPositionEffectType TAPICHAR
开平类型
const TAPI_PositionEffect_COVER TAPIPositionEffectType = 'C' // 平仓
const TAPI_PositionEffect_COVER_TODAY TAPIPositionEffectType = 'T' // 平当日
const TAPI_PositionEffect_NONE TAPIPositionEffectType = 'N' // 不分开平
const TAPI_PositionEffect_OPEN TAPIPositionEffectType = 'O' // 开仓
type TAPIREAL64 ¶
type TAPIREAL64 [8]byte //float64
real 64
func FromFloat64 ¶
func FromFloat64(value float64) TAPIREAL64
func (TAPIREAL64) Float64 ¶
func (f TAPIREAL64) Float64() float64
func (TAPIREAL64) String ¶
func (f TAPIREAL64) String() string
type TAPIRightIDType ¶
type TAPIRightIDType TAPIINT32
权限编码类型
func (TAPIRightIDType) Int32 ¶
func (u TAPIRightIDType) Int32() int32
func (TAPIRightIDType) String ¶
func (u TAPIRightIDType) String() string
type TAPISTR_10 ¶
type TAPISTR_10 [11]byte
长度为10的字符串
func (TAPISTR_10) String ¶
func (e TAPISTR_10) String() string
type TAPISTR_100 ¶
type TAPISTR_100 [101]byte
长度为100的字符串
func (TAPISTR_100) String ¶
func (e TAPISTR_100) String() string
type TAPISTR_20 ¶
type TAPISTR_20 [21]byte
长度为20的字符串
func (TAPISTR_20) String ¶
func (e TAPISTR_20) String() string
type TAPISTR_2000 ¶
type TAPISTR_2000 [2001]byte
长度为2000的字符串
func (TAPISTR_2000) String ¶
func (e TAPISTR_2000) String() string
type TAPISTR_30 ¶
type TAPISTR_30 [31]byte
长度为30的字符串
func (TAPISTR_30) String ¶
func (e TAPISTR_30) String() string
type TAPISTR_300 ¶
type TAPISTR_300 [301]byte
长度为300的字符串
func (TAPISTR_300) String ¶
func (e TAPISTR_300) String() string
type TAPISTR_40 ¶
type TAPISTR_40 [41]byte
长度为40的字符串
func (TAPISTR_40) String ¶
func (e TAPISTR_40) String() string
type TAPISTR_50 ¶
type TAPISTR_50 [51]byte
长度为50的字符串
func (TAPISTR_50) String ¶
func (e TAPISTR_50) String() string
type TAPISTR_500 ¶
type TAPISTR_500 [501]byte
长度为500的字符串
func (TAPISTR_500) String ¶
func (e TAPISTR_500) String() string
type TAPISTR_70 ¶
type TAPISTR_70 [71]byte
长度为70的字符串
func (TAPISTR_70) String ¶
func (e TAPISTR_70) String() string
type TAPISecondSerialIDType ¶
type TAPISecondSerialIDType [5]byte
二次认证序号
func (TAPISecondSerialIDType) String ¶
func (e TAPISecondSerialIDType) String() string
type TAPISettleFlagType ¶
type TAPISettleFlagType TAPICHAR
结算类型
const SettleFlag_AutoSettle TAPISettleFlagType = '0' // 自动结算
type TAPISideType ¶
type TAPISideType TAPICHAR
买卖类型
const TAPI_SIDE_BUY TAPISideType = 'B' // 买入
const TAPI_SIDE_NONE TAPISideType = 'N' // 无
const TAPI_SIDE_SELL TAPISideType = 'S' // 卖出
type TAPITacticsTypeType ¶
type TAPITacticsTypeType TAPICHAR
策略单类型
const TAPI_TACTICS_TYPE_ATUO TAPITacticsTypeType = 'A' // 自动单
const TAPI_TACTICS_TYPE_CONDITION TAPITacticsTypeType = 'C' // 条件单
const TAPI_TACTICS_TYPE_NONE TAPITacticsTypeType = 'N' // 无
const TAPI_TACTICS_TYPE_READY TAPITacticsTypeType = 'M' // 预备单(埋单)
type TAPITimeInForceType ¶
type TAPITimeInForceType TAPICHAR
委托有效类型
const TAPI_ORDER_TIMEINFORCE_FAK TAPITimeInForceType = '3' // FAK或IOC
const TAPI_ORDER_TIMEINFORCE_FOK TAPITimeInForceType = '4' // FOK
const TAPI_ORDER_TIMEINFORCE_GFD TAPITimeInForceType = '0' // 当日有效
const TAPI_ORDER_TIMEINFORCE_GTC TAPITimeInForceType = '1' // 取消前有效
const TAPI_ORDER_TIMEINFORCE_GTD TAPITimeInForceType = '2' // 指定日期前有效
type TAPITradingStateType ¶
type TAPITradingStateType TAPICHAR
交易状态
const TAPI_TRADE_STATE_BID TAPITradingStateType = '1' // 集合竞价
const TAPI_TRADE_STATE_CLOSE TAPITradingStateType = '5' // 闭市
const TAPI_TRADE_STATE_CONTINUOUS TAPITradingStateType = '3' // 连续交易
const TAPI_TRADE_STATE_DEALLAST TAPITradingStateType = '6' // 闭市处理时间
const TAPI_TRADE_STATE_GWDISCONNECT TAPITradingStateType = '0' // 网关未连
const TAPI_TRADE_STATE_INITIALIZE TAPITradingStateType = 'I' // 正初始化
const TAPI_TRADE_STATE_MATCH TAPITradingStateType = '2' // 集合竞价撮合
const TAPI_TRADE_STATE_PAUSED TAPITradingStateType = '4' // 交易暂停
const TAPI_TRADE_STATE_READY TAPITradingStateType = 'R' // 准备就绪
const TAPI_TRADE_STATE_UNKNOWN TAPITradingStateType = 'N' // 未知状态
type TAPITriggerConditionType ¶
type TAPITriggerConditionType TAPICHAR
触发条件类型
const TAPI_TRIGGER_CONDITION_GREAT TAPITriggerConditionType = 'G' // 大于等于
const TAPI_TRIGGER_CONDITION_LITTLE TAPITriggerConditionType = 'L' // 小于等于
const TAPI_TRIGGER_CONDITION_NONE TAPITriggerConditionType = 'N' // 无
type TAPITriggerPriceTypeType ¶
type TAPITriggerPriceTypeType TAPICHAR
触发价格类型
const TAPI_TRIGGER_PRICE_BUY TAPITriggerPriceTypeType = 'B' // 买价
const TAPI_TRIGGER_PRICE_LAST TAPITriggerPriceTypeType = 'L' // 最新价
const TAPI_TRIGGER_PRICE_NONE TAPITriggerPriceTypeType = 'N' // 无
const TAPI_TRIGGER_PRICE_SELL TAPITriggerPriceTypeType = 'S' // 卖价
type TAPIUINT32 ¶
type TAPIUINT32 [4]byte // uint32
unsigned 32
func FromCuint32 ¶
func FromCuint32(value C.uint) TAPIUINT32
会生成新的 u, 原来的 u 仍是 \x00
func (u TAPIUINT32) FromUint32(value uint32) { bs := make([]byte, 4) binary.LittleEndian.PutUint32(bs, value) copy(u[:], bs) }
func FromUint32 ¶
func FromUint32(value uint32) TAPIUINT32
func (TAPIUINT32) String ¶
func (u TAPIUINT32) String() string
func (TAPIUINT32) Uint32 ¶
func (u TAPIUINT32) Uint32() uint32
type TAPIUserTypeType ¶
type TAPIUserTypeType TAPIINT32
登录用户身份类型
func (TAPIUserTypeType) Int32 ¶
func (u TAPIUserTypeType) Int32() int32
func (TAPIUserTypeType) String ¶
func (u TAPIUserTypeType) String() string
type TAPIYNFLAG ¶
type TAPIYNFLAG TAPICHAR
是否标示
const APIYNFLAG_NO TAPIYNFLAG = 'N' // 否
const APIYNFLAG_YES TAPIYNFLAG = 'Y' // 是
func (TAPIYNFLAG) String ¶
func (e TAPIYNFLAG) String() string
type TapAPIAbnormalFalgType ¶
type TapAPIAbnormalFalgType TAPICHAR
=============================================================================
type TapAPIAccQryReq ¶
type TapAPIAccQryReq struct { }
type TapAPIAccountCashAdjustQryReq ¶
type TapAPIAccountCashAdjustQryReq struct { // TAPISTR_20 AccountNo; SerialID TAPIUINT32 // < 必填 BeginDate TAPIDATE // < 必填 EndDate TAPIDATE }
type TapAPIAccountCashAdjustQryRsp ¶
type TapAPIAccountCashAdjustQryRsp struct { // < 日期 Date TAPIDATE // < 客户资金账号 AccountNo TAPISTR_20 // < 资金调整类型 CashAdjustType TAPICashAdjustTypeType // < 币种组号 CurrencyGroupNo TAPISTR_10 // < 币种号 CurrencyNo TAPISTR_10 // < 资金调整金额 CashAdjustValue TAPIREAL64 // < 资金调整备注 CashAdjustRemark TAPISTR_100 // < 操作时间 OperateTime TAPIDATETIME // < 操作员 OperatorNo TAPISTR_20 // < 客户银行 AccountBank TAPISTR_10 // < 客户银行账号 BankAccount TAPISTR_20 // < 客户本外币标识 AccountLWFlag TAPIBankAccountLWFlagType // < 公司银行 CompanyBank TAPISTR_10 // < 公司银行账户 InternalBankAccount TAPISTR_20 // < 公司本外币标识 CompanyLWFlag TAPIBankAccountLWFlagType }
type TapAPIAccountFeeRentQryReq ¶
type TapAPIAccountFeeRentQryReq struct { // AccountNo TAPISTR_20 }
type TapAPIAccountFeeRentQryRsp ¶
type TapAPIAccountFeeRentQryRsp struct { // TAPISTR_10 ExchangeNo; AccountNo TAPISTR_20 // TAPISTR_10 CommodityNo; CommodityType TAPICommodityType // TAPICalculateModeType CalculateMode; MatchSource TAPIMatchSourceType // TAPISTR_10 CurrencyNo; CurrencyGroupNo TAPISTR_10 // TAPIREAL64 CloseTodayFee; OpenCloseFee TAPIREAL64 }
type TapAPIAccountIPOAddReq ¶
type TapAPIAccountIPOAddReq struct { // TAPISTR_10 ExchangeNo; ///< 市场或者交易所代码 AccountNo TAPISTR_20 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 // < 申购类型 ApplyType TapAPIApplyTypeType // < 申购数量 ApplyQty TAPIUINT32 // < 融资比例 LoanRatio TAPIREAL64 }
type TapAPIAccountIPOCancelNotice ¶
type TapAPIAccountIPOCancelNotice TapAPIAccountIPOQryRsp
客户IPO撤销通知
type TapAPIAccountIPOCancelReq ¶
type TapAPIAccountIPOCancelReq struct { // TAPISTR_10 ExchangeNo; ///< 市场或者交易所代码 AccountNo TAPISTR_20 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 }
type TapAPIAccountIPOQryReq ¶
type TapAPIAccountIPOQryReq struct { // AccountNo TAPISTR_20 }
type TapAPIAccountIPOQryRsp ¶
type TapAPIAccountIPOQryRsp struct { // < 申购结束日期 EndDate TAPIDATETIME // < 中签日 ResultDate TAPIDATETIME // TAPISTR_20 AccountNo; IPODate TAPIDATETIME // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 // < 申购类型 ApplyType TapAPIApplyTypeType // < 申购数量 ApplyQty TAPIUINT32 // < 申购金额 ApplyCash TAPIREAL64 // < 融资比例 LoanRatio TAPIREAL64 // < 融资利息 LoanInterest TAPIREAL64 // < 申购手续费 ApplyFee TAPIREAL64 // < 申购状态 ApplyStatus TapAPIApplyStatusType // < 中签量 ResultQty TAPIUINT32 // TAPIDATETIME OperateTime; OperatorNo TAPISTR_20 }
type TapAPIAccountInfo ¶
type TapAPIAccountInfo struct { // < 资金账号 AccountNo TAPISTR_20 // < 账号类型 AccountType TAPIAccountType // < 账号状态 AccountState TAPIAccountState // < 交易状态 AccountTradeRight TAPIAccountRightType // < 可交易品种组. CommodityGroupNo TAPISTR_10 // < 账号简称 AccountShortName TAPISTR_20 // < 账号英文简称 AccountEnShortName TAPISTR_20 }
type TapAPIAccountMarginRentQryReq ¶
type TapAPIAccountMarginRentQryReq struct { // TAPISTR_10 ExchangeNo; AccountNo TAPISTR_20 // TAPISTR_10 CommodityNo; CommodityType TAPICommodityType }
type TapAPIAccountMarginRentQryRsp ¶
type TapAPIAccountMarginRentQryRsp struct { // TAPISTR_10 ExchangeNo; AccountNo TAPISTR_20 // TAPISTR_10 CommodityNo; CommodityType TAPICommodityType // TAPISTR_10 StrikePrice; ContractNo TAPISTR_10 // TAPICalculateModeType CalculateMode; CallOrPutFlag TAPICallOrPutFlagType // TAPISTR_10 CurrencyNo; CurrencyGroupNo TAPISTR_10 // TAPIREAL64 MaintenanceMargin; InitialMargin TAPIREAL64 // TAPIREAL64 SellMaintenanceMargin; SellInitialMargin TAPIREAL64 // LockMargin TAPIREAL64 }
type TapAPIAmendOrder ¶
type TapAPIAmendOrder struct { // < 报单请求数据 ReqData TapAPINewOrder // < 服务器标识 ServerFlag TAPICHAR // < 委托编号 OrderNo TAPISTR_20 }
type TapAPIApplicationInfo ¶
type TapAPIApplicationInfo struct { // < 授权码 AuthCode TAPIAUTHCODE // < 关键操作日志路径 APIRun日志 KeyOperationLogPath TAPISTR_300 // < 日志级别 LogLevel TAPILOGLEVEL // < 看穿式监管使用,北斗星系统不使用该字段 APPID TAPISTR_30 // < 重连次数 ReConnectCount TAPIINT32 // < 重连时间间隔(秒) ReConnectSeconds TAPIINT32 }
type TapAPIAuthPasswordReq ¶
type TapAPIAuthPasswordReq struct { // < 客户账号 AccountNo TAPISTR_20 // < 密码类型 PasswordType TAPIPasswordType // < 账户密码 Password TAPISTR_20 }
type TapAPIAvailableApplyQryReq ¶
type TapAPIAvailableApplyQryReq struct { // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 }
type TapAPIAvailableApplyQryRsp ¶
type TapAPIAvailableApplyQryRsp struct { // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 // < 可申购股数 StockQty TAPIUINT32 }
type TapAPIBillQryReq ¶
type TapAPIBillQryReq struct { // TAPIBillTypeType BillType; UserNo TAPISTR_20 // TAPIBillFileTypeType BillFileType; BillDate TAPIDATE }
type TapAPIBillQryRsp ¶
type TapAPIBillQryRsp struct { // TAPIINT32 BillLen; Reqdata TapAPIBillQryReq // < 变长账单内容,长度由BillLen指定 BillText [1]TAPICHAR }
type TapAPIChangePasswordReq ¶
type TapAPIChangePasswordReq struct { // TAPIPasswordType PasswordType; ///< 密码类型 AccountNo TAPISTR_20 // < 旧密码 OldPassword TAPISTR_20 // < 新密码 NewPassword TAPISTR_20 }
type TapAPICloseInfo ¶
type TapAPICloseInfo struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 平仓一边的买入卖出 CloseSide TAPISideType // < 平仓成交量 CloseQty TAPIUINT32 // < 开仓成交价 OpenPrice TAPIREAL64 // < 平仓成交价 ClosePrice TAPIREAL64 // < 本地成交号 OpenMatchNo TAPISTR_20 // < 成交时间 OpenMatchDateTime TAPIDATETIME // < 本地成交号 CloseMatchNo TAPISTR_20 // < 成交时间 CloseMatchDateTime TAPIDATETIME // < 平仓流号 CloseStreamId TAPIUINT32 // < 品种币种组 CommodityCurrencyGroup TAPISTR_10 // < 品种币种 CommodityCurrency TAPISTR_10 // < 平仓盈亏 CloseProfit TAPIREAL64 }
type TapAPICloseQryReq ¶
type TapAPICloseQryReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 }
type TapAPICombinePositionInfo ¶
type TapAPICombinePositionInfo struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 组合持仓流号 PositionStreamID TAPIUINT32 // < 服务器标识 ServerFlag TAPICHAR // < 上手号 UpperNo TAPISTR_10 // < 组合策略代码 CombineStrategy TapAPICombineStrategyType // < 组合编码 CombineNo TAPISTR_50 // < 委托数量 PositionQty TAPIUINT32 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格1 StrikePrice TAPISTR_10 // < 看张看跌1 CallOrPutFlag TAPICallOrPutFlagType // < 买卖方向1 OrderSide1 TAPISideType // < 组合数量1 CombineQty1 TAPIUINT32 // < 投机备兑1 HedgeFlag1 TAPIHedgeFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType // < 买卖方向2 OrderSide2 TAPISideType // < 组合数量2 CombineQty2 TAPIUINT32 // < 投机备兑2 HedgeFlag2 TAPIHedgeFlagType // < 品种币种组 CommodityCurrencyGroup TAPISTR_10 // < 品种币种 CommodityCurrency TAPISTR_10 // < 初始组合保证金 AccountInitialMargin TAPIREAL64 // < 维持组合保证金 AccountMaintenanceMargin TAPIREAL64 // < 上手初始组合保证金 UpperInitialMargin TAPIREAL64 // < 上手维持组合保证金 UpperMaintenanceMargin TAPIREAL64 }
type TapAPICombinePositionQryReq ¶
type TapAPICombinePositionQryReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 }
type TapAPICombineStrategyType ¶
type TapAPICombineStrategyType [10]byte
=============================================================================
type TapAPICommodity ¶
type TapAPICommodity struct { // < 交易所编码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编号 CommodityNo TAPISTR_10 }
type TapAPICommodityInfo ¶
type TapAPICommodityInfo struct { // 交易所编码 ExchangeNo TAPISTR_10 // 品种类型 CommodityType TAPICommodityType // 品种编号 CommodityNo TAPISTR_10 // 品种名称 CommodityName TAPISTR_20 // 品种英文名称 CommodityEngName TAPISTR_30 // TAPICommodityType RelateCommodityType; RelateExchangeNo TAPISTR_10 // TAPISTR_10 RelateExchangeNo2; RelateCommodityNo TAPISTR_10 // TAPISTR_10 RelateCommodityNo2; RelateCommodityType2 TAPICommodityType // TAPISTR_10 TradeCurrency; // 交易币种 CurrencyGroupNo TAPISTR_10 // 每手乘数 ContractSize TAPIREAL64 // 开平方式 OpenCloseMode TAPIOpenCloseModeType // 执行价格倍数 StrikePriceTimes TAPIREAL64 // 最小变动价位 CommodityTickSize TAPIREAL64 // 报价分母 CommodityDenominator TAPIINT32 // 组合方向 CmbDirect TAPICmbDirectType // 交割行权方式 DeliveryMode TAPIDeliveryModeType // 交割日偏移 DeliveryDays TAPIINT32 // T+1分割时间 AddOneTime TAPITIME // 品种时区 CommodityTimeZone TAPIINT32 // 是否处于T+1时段。 IsAddOne TAPIYNFLAG // 期权类型 OptionType TAPIOptionType }
type TapAPIContactContentType ¶
type TapAPIContactContentType [201]byte
func (TapAPIContactContentType) String ¶
func (e TapAPIContactContentType) String() string
type TapAPIContract ¶
type TapAPIContract struct { // < 品种 Commodity TapAPICommodity // < 合约代码1 ContractNo1 TAPISTR_10 // < 执行价1 StrikePrice1 TAPISTR_10 // < 看涨看跌标示1 CallOrPutFlag1 TAPICallOrPutFlagType // < 合约代码2 ContractNo2 TAPISTR_10 // < 执行价2 StrikePrice2 TAPISTR_10 // < 看涨看跌标示2 CallOrPutFlag2 TAPICallOrPutFlagType }
type TapAPICurrencyInfo ¶
type TapAPICurrencyInfo struct { // < 币种编号 CurrencyNo TAPISTR_10 // < 币种组编号 CurrencyGroupNo TAPISTR_10 // < 交易汇率 TradeRate TAPIREAL64 // < 交易汇率2 TradeRate2 TAPIREAL64 // < 币种组独立标志 FutureAlg TAPIFutureAlgType // < 是否是基币 OptionAlg TAPIOptionAlgType }
type TapAPIExchangeInfo ¶
type TapAPIExchangeInfo struct { // < 交易所编码 ExchangeNo TAPISTR_10 // < 交易所名称 ExchangeName TAPISTR_20 }
type TapAPIFillInfo ¶
type TapAPIFillInfo struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 委托来源 MatchSource TAPIMatchSourceType // < 买入卖出 MatchSide TAPISideType // < 开平标志1 PositionEffect TAPIPositionEffectType // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 // < 系统号 OrderSystemNo TAPISTR_50 // < 本地成交号 MatchNo TAPISTR_20 // < 上手成交号 UpperMatchNo TAPISTR_70 // < 交易所成交号 ExchangeMatchNo TAPISTR_70 // < 成交时间 MatchDateTime TAPIDATETIME // < 上手成交时间 UpperMatchDateTime TAPIDATETIME // < 上手号 UpperNo TAPISTR_10 // < 成交价 MatchPrice TAPIREAL64 // < 成交量 MatchQty TAPIUINT32 // < 委托成交删除标 IsDeleted TAPIYNFLAG // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 客户手续费币种组 FeeCurrencyGroup TAPISTR_10 // < 客户手续费币种 FeeCurrency TAPISTR_10 // < 手续费 FeeValue TAPIREAL64 // < 人工客户手续费标记 IsManualFee TAPIYNFLAG // < 指定价格平仓 ClosePrositionPrice TAPIREAL64 // < 平仓盈亏 CloseProfit TAPIREAL64 }
type TapAPIFillLocalInputReq ¶
type TapAPIFillLocalInputReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 买入卖出 MatchSide TAPISideType // < 开平标志1 PositionEffect TAPIPositionEffectType // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 成交价 MatchPrice TAPIREAL64 // < 成交量 MatchQty TAPIUINT32 // < 系统号 OrderSystemNo TAPISTR_50 // < 上手成交号 UpperMatchNo TAPISTR_70 // < 成交时间 MatchDateTime TAPIDATETIME // < 上手成交时间 UpperMatchDateTime TAPIDATETIME // < 上手号 UpperNo TAPISTR_10 // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 客户手续费币种组 FeeCurrencyGroup TAPISTR_10 // < 客户手续费币种 FeeCurrency TAPISTR_10 // < 手续费 FeeValue TAPIREAL64 // < 人工客户手续费标记 IsManualFee TAPIYNFLAG // < 指定价格平仓 ClosePositionPrice TAPIREAL64 }
type TapAPIFillLocalRemoveReq ¶
type TapAPIFillLocalRemoveReq struct { // < 服务器标识 ServerFlag TAPICHAR // < 本地成交号 MatchNo TAPISTR_20 }
type TapAPIFillQryReq ¶
type TapAPIFillQryReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 委托来源 MatchSource TAPIMatchSourceType // < 买入卖出 MatchSide TAPISideType // < 开平标志1 PositionEffect TAPIPositionEffectType // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 // < 上手号 UpperNo TAPISTR_10 // < 委托成交删除标 IsDeleted TAPIYNFLAG // < 是否为T+1单 IsAddOne TAPIYNFLAG }
type TapAPIFundData ¶
type TapAPIFundData struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 币种组号 CurrencyGroupNo TAPISTR_10 // < 币种号(为空表示币种组基币资金) CurrencyNo TAPISTR_10 // < 交易汇率 TradeRate TAPIREAL64 // < 期货算法 FutureAlg TAPIFutureAlgType // < 期权算法 OptionAlg TAPIOptionAlgType // < 上日结存 PreBalance TAPIREAL64 // < 上日未到期平盈 PreUnExpProfit TAPIREAL64 // < 上日LME持仓平盈 PreLMEPositionProfit TAPIREAL64 // < 上日权益 PreEquity TAPIREAL64 // < 上日可用 PreAvailable1 TAPIREAL64 // < 上日市值权益 PreMarketEquity TAPIREAL64 // < 入金 CashInValue TAPIREAL64 // < 出金 CashOutValue TAPIREAL64 // < 资金调整 CashAdjustValue TAPIREAL64 // < 质押资金 CashPledged TAPIREAL64 // < 冻结手续费 FrozenFee TAPIREAL64 // < 冻结保证金 FrozenDeposit TAPIREAL64 // < 客户手续费包含交割手续费 AccountFee TAPIREAL64 // < 汇入资金 SwapInValue TAPIREAL64 // < 汇出资金 SwapOutValue TAPIREAL64 // < 权利金收取 PremiumIncome TAPIREAL64 // < 权利金支付 PremiumPay TAPIREAL64 // < 平仓盈亏 CloseProfit TAPIREAL64 // < 冻结资金 FrozenFund TAPIREAL64 // < 未到期平盈 UnExpProfit TAPIREAL64 // < 到期平仓盈亏 ExpProfit TAPIREAL64 // < 不含LME持仓盈亏 PositionProfit TAPIREAL64 // < LME持仓盈亏 LmePositionProfit TAPIREAL64 // < 期权市值 OptionMarketValue TAPIREAL64 // < 客户初始保证金 AccountIntialMargin TAPIREAL64 // < 客户维持保证金 AccountMaintenanceMargin TAPIREAL64 // < 上手初始保证金 UpperInitalMargin TAPIREAL64 // < 上手维持保证金 UpperMaintenanceMargin TAPIREAL64 // < LME贴现 Discount TAPIREAL64 // < 当日结存 Balance TAPIREAL64 // < 当日权益 Equity TAPIREAL64 // < 当日可用 Available TAPIREAL64 // < 可提取 CanDraw TAPIREAL64 // < 账户市值 MarketEquity TAPIREAL64 // < 授信资金 AuthMoney TAPIREAL64 }
type TapAPIFundReq ¶
type TapAPIFundReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 }
type TapAPIHisDeliveryQryReq ¶
type TapAPIHisDeliveryQryReq struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 开始日期(必填) BeginDate TAPIDATE // < 结束日期(必填) EndDate TAPIDATE // < 结算类型 SettleFlag TAPISettleFlagType }
type TapAPIHisDeliveryQryRsp ¶
type TapAPIHisDeliveryQryRsp struct { // < 交割日期 DeliveryDate TAPIDATE // < 开仓日期 OpenDate TAPIDATE // < 客户资金账号 AccountNo TAPISTR_20 // < 市场号或交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码 CommodityNo TAPISTR_10 // < 合约编码 ContractNo TAPISTR_10 // < 执行价 StrikePrice TAPISTR_10 // < 看涨看跌标志 CallOrPutFlag TAPICallOrPutFlagType // < 成交来源 MatchSource TAPIMatchSourceType // < 开仓方向 OpenSide TAPISideType // < 开仓价格 OpenPrice TAPIREAL64 // < 交割价格 DeliveryPrice TAPIREAL64 // < 交割量 DeliveryQty TAPIUINT32 // < 冻结量 FrozenQty TAPIUINT32 // < 开仓成交号 OpenNo TAPISTR_20 // < 上手编号 UpperNo TAPISTR_10 // < 品种币种 CommodityCurrencyGroupy TAPISTR_10 // < 品种币种 CommodityCurrency TAPISTR_10 // < 上日结算价 PreSettlePrice TAPIREAL64 // < 交割盈亏 DeliveryProfit TAPIREAL64 // < 客户初始冻结保证金 AccountFrozenInitialMargin TAPIREAL64 // < 客户维持冻结保证金 AccountFrozenMaintenanceMargin TAPIREAL64 // < 上手初始冻结保证金 UpperFrozenInitialMargin TAPIREAL64 // < 上手维持冻结保证金 UpperFrozenMaintenanceMargin TAPIREAL64 // TAPISTR_10 AccountFeeCurrency; ///< 客户手续费币种 AccountFeeCurrencyGroup TAPISTR_10 // < 客户交割手续费 AccountDeliveryFee TAPIREAL64 // TAPISTR_10 UpperFeeCurrency; ///< 上手手续费币种 UpperFeeCurrencyGroup TAPISTR_10 // < 上手交割手续费 UpperDeliveryFee TAPIREAL64 // < 交割行权方式 DeliveryMode TAPIDeliveryModeType // < 操作员 OperatorNo TAPISTR_20 // < 操作时间 OperateTime TAPIDATETIME // < 结算分组 SettleGourpNo TAPISTR_20 // < 特殊期权标的合约 FutureContractNo TAPISTR_10 // < 期权真实执行价 OptionStrikePrice TAPISTR_10 // < 上级账号 SuperiorAccount TAPISTR_20 }
type TapAPIHisMatchQryReq ¶
type TapAPIHisMatchQryReq struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 开始日期,必填 BeginDate TAPIDATE // < 结束日期,必填 EndDate TAPIDATE }
type TapAPIHisMatchQryRsp ¶
type TapAPIHisMatchQryRsp struct { // < 结算日期 SettleDate TAPIDATE // < 交易日期 TradeDate TAPIDATE // < 客户资金账号 AccountNo TAPISTR_20 // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 // < 合约号 ContractNo TAPISTR_10 // < 执行价 StrikePrice TAPISTR_10 // < 看涨看跌标志 CallOrPutFlag TAPICallOrPutFlagType // < 成交来源 MatchSource TAPIMatchSourceType // < 买卖方向 MatchSide TAPISideType // < 开平标志 PositionEffect TAPIPositionEffectType // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 成交价 MatchPrice TAPIREAL64 // < 成交量 MatchQty TAPIUINT32 // < 委托号 OrderNo TAPISTR_20 // < 成交序号 MatchNo TAPISTR_20 // < 成交流水号 MatchStreamID TAPIUINT32 // < 上手号 UpperNo TAPISTR_10 // < 组合号 MatchCmbNo TAPISTR_20 // < 成交编号(交易所成交号) ExchangeMatchNo TAPISTR_70 // < 上手流水号 MatchUpperStreamID TAPIUINT32 // TAPISTR_10 CommodityCurrency; // 品种币种 CommodityCurrencyGroup TAPISTR_10 // < 成交金额 Turnover TAPIREAL64 // < 权利金收入 PremiumIncome TAPIREAL64 // < 权利金支出 PremiumPay TAPIREAL64 // < 客户手续费 AccountFee TAPIREAL64 // TAPISTR_10 AccountFeeCurrency; ///< 客户手续费币种 AccountFeeCurrencyGroup TAPISTR_10 // < 人工客户手续费标记 IsManualFee TAPIYNFLAG // 客户其他费用 AccountOtherFee TAPIREAL64 // < 上手手续费 UpperFee TAPIREAL64 // TAPISTR_10 UpperFeeCurrency; ///< 上手手续费币种 UpperFeeCurrencyGroup TAPISTR_10 // < 人工上手手续费标记 IsUpperManualFee TAPIYNFLAG // 上手其他费用 UpperOtherFee TAPIREAL64 // < 成交时间 MatchDateTime TAPIDATETIME // < 上手成交时间 UpperMatchDateTime TAPIDATETIME // < 平仓盈亏 CloseProfit TAPIREAL64 // < 指定平仓价格; ClosePrice TAPIREAL64 // < 平仓量 CloseQty TAPIUINT32 // < 结算分组 SettleGroupNo TAPISTR_10 // < 操作员 OperatorNo TAPISTR_20 // < 操作时间 OperateTime TAPIDATETIME }
type TapAPIHisOrderProcessQryReq ¶
type TapAPIHisOrderProcessQryReq struct { // TAPISTR_20 OrderNo; Date TAPIDATE }
type TapAPIHisOrderProcessQryRsp ¶
type TapAPIHisOrderProcessQryRsp TapAPIHisOrderQryRsp
历史委托流程查询应答数据结构
type TapAPIHisOrderQryReq ¶
type TapAPIHisOrderQryReq struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 开始时间 (必填) BeginDate TAPIDATE // < 结束时间 (必填) EndDate TAPIDATE }
type TapAPIHisOrderQryRsp ¶
type TapAPIHisOrderQryRsp struct { // < 日期 Date TAPIDATE // < 客户资金账号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType // < 委托类型 OrderType TAPIOrderTypeType // < 委托来源 OrderSource TAPIOrderSourceType // < 委托有效类型 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 是否风险报单 IsRiskOrder TAPIYNFLAG // < 买入卖出 OrderSide TAPISideType // < 开平标志 PositionEffect TAPIPositionEffectType // < 开平标志2 PositionEffect2 TAPIPositionEffectType // < 询价号 InquiryNo TAPISTR_50 // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 委托价格 OrderPrice TAPIREAL64 // < 委托价格2,做市商应价使用 OrderPrice2 TAPIREAL64 // < 触发价格 StopPrice TAPIREAL64 // < 委托数量 OrderQty TAPIUINT32 // < 最小成交量 OrderMinQty TAPIUINT32 // < 撤单数量 OrderCanceledQty TAPIUINT32 // < 整型参考值 RefInt TAPIINT32 // < 浮点参考型。 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 // < 委托流水号 OrderStreamID TAPIUINT32 // < 上手号 UpperNo TAPISTR_10 // < 上手通道编号 UpperChannelNo TAPISTR_10 // < 本地号 OrderLocalNo TAPISTR_20 // < 上手流号 UpperStreamID TAPIUINT32 // < 系统号 OrderSystemNo TAPISTR_50 // < 交易所系统号 OrderExchangeSystemNo TAPISTR_50 // < 父单系统号 OrderParentSystemNo TAPISTR_50 // < 下单人 OrderInsertUserNo TAPISTR_20 // < 下单时间 OrderInsertTime TAPIDATETIME // < 指令下达人 OrderCommandUserNo TAPISTR_20 // < 委托更新人 OrderUpdateUserNo TAPISTR_20 // < 委托更新时间 OrderUpdateTime TAPIDATETIME // < 委托状态 OrderState TAPIOrderStateType // < 成交价 OrderMatchPrice TAPIREAL64 // < 成交价2 OrderMatchPrice2 TAPIREAL64 // < 成交量 OrderMatchQty TAPIUINT32 // < 成交量2 OrderMatchQty2 TAPIUINT32 // < 最后一次操作错误信息码 ErrorCode TAPIUINT32 // < 错误信息 ErrorText TAPISTR_50 // < 是否为录入委托单 IsBackInput TAPIYNFLAG // < 委托成交删除标记 IsDeleted TAPIYNFLAG // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 是否T+1有效 AddOneIsValid TAPIYNFLAG // < 冰山单最小随机量 MinClipSize TAPIUINT32 // < 冰山单最大随机量 MaxClipSize TAPIUINT32 // < 软件授权号 LicenseNo TAPISTR_50 // < 策略单类型 TacticsType TAPITacticsTypeType // < 触发条件 TriggerCondition TAPITriggerConditionType // < 触发价格类型 TriggerPriceType TAPITriggerPriceTypeType }
type TapAPIHisPositionQryReq ¶
type TapAPIHisPositionQryReq struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 日期 Date TAPIDATE // < 数据类型 SettleFlag TAPISettleFlagType }
type TapAPIHisPositionQryRsp ¶
type TapAPIHisPositionQryRsp struct { // < 结算日期 SettleDate TAPIDATE // < 开仓日期 OpenDate TAPIDATE // < 客户资金账号 AccountNo TAPISTR_20 // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码 CommodityNo TAPISTR_10 // < 合约号 ContractNo TAPISTR_10 // < 执行价 StrikePrice TAPISTR_10 // < 看涨看跌标志 CallOrPutFlag TAPICallOrPutFlagType // < 买卖方向 MatchSide TAPISideType // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 持仓价格 PositionPrice TAPIREAL64 // < 持仓量 PositionQty TAPIUINT32 // < OrderNo TAPISTR_20 // < 持仓编号 PositionNo TAPISTR_20 // < 上手号 UpperNo TAPISTR_10 // < 品种币种组 CurrencyGroup TAPISTR_10 // < 品种币种 Currency TAPISTR_10 // < 上日结算价格 PreSettlePrice TAPIREAL64 // < 结算价格 SettlePrice TAPIREAL64 // < 持仓盈亏(盯市) PositionDProfit TAPIREAL64 // < LME持仓盈亏 LMEPositionProfit TAPIREAL64 // < 期权市值 OptionMarketValue TAPIREAL64 // < 客户初始保证金 AccountInitialMargin TAPIREAL64 // < 客户维持保证金 AccountMaintenanceMargin TAPIREAL64 // < 上手初始保证金 UpperInitialMargin TAPIREAL64 // < 上手维持保证金 UpperMaintenanceMargin TAPIREAL64 // < 结算分组 SettleGroupNo TAPISTR_10 // < 服务器标识 ServerFlag TAPICHAR // < 上级账号 SuperiorAccount TAPISTR_20 }
type TapAPIIPOInfoQryReq ¶
type TapAPIIPOInfoQryReq struct { }
type TapAPIIPOInfoQryRsp ¶
type TapAPIIPOInfoQryRsp struct { // < 市场或者交易所代码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种号 CommodityNo TAPISTR_10 // < 币种组 CurrencyGroupNo TAPISTR_10 // < 币种 CurrencyNo TAPISTR_10 // < 申购开始日期 BeginDate TAPIDATETIME // < 申购结束日期 EndDate TAPIDATETIME // < IPODate IPODate TAPIDATETIME // < 中签日 ResultDate TAPIDATETIME // < IPO手续费 IPOFee TAPIREAL64 // < 融资手续费 FinancingFee TAPIREAL64 // < 融资利率 LoanRatio TAPIREAL64 // < 融资天数 FinancingDays TAPIUINT32 // < 最高融资比例 MaxLoanRatio TAPIREAL64 // < 最高融资金额 MaxLoanValue TAPIREAL64 // < 认购/配售价 Price TAPIREAL64 // TAPIDATETIME OperateTime; OperatorNo TAPISTR_20 }
type TapAPINewOrder ¶
type TapAPINewOrder struct { // < 客户资金帐号,必填 AccountNo TAPISTR_20 // < 交易所编号,必填 ExchangeNo TAPISTR_10 // < 品种类型,必填 CommodityType TAPICommodityType // < 品种编码类型,必填 CommodityNo TAPISTR_10 // < 合约1,必填 ContractNo TAPISTR_10 // < 执行价格1,期权填写 StrikePrice TAPISTR_10 // < 看张看跌1 默认N CallOrPutFlag TAPICallOrPutFlagType // < 合约2,默认空 ContractNo2 TAPISTR_10 // < 执行价格2,默认空 StrikePrice2 TAPISTR_10 // < 看张看跌2 默认N CallOrPutFlag2 TAPICallOrPutFlagType // < 委托类型 必填 OrderType TAPIOrderTypeType // < 委托来源,默认程序单。 OrderSource TAPIOrderSourceType // < 委托有效类型,默认当日有效 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 是否风险报单,默认非风险保单 IsRiskOrder TAPIYNFLAG // < 买入卖出 OrderSide TAPISideType // < 开平标志1,默认N PositionEffect TAPIPositionEffectType // < 开平标志2,默认N PositionEffect2 TAPIPositionEffectType // < 询价号 InquiryNo TAPISTR_50 // < 投机保值,默认N HedgeFlag TAPIHedgeFlagType // < 委托价格1 OrderPrice TAPIREAL64 // < 委托价格2,做市商应价使用 OrderPrice2 TAPIREAL64 // < 触发价格 StopPrice TAPIREAL64 // < 委托数量,必填 OrderQty TAPIUINT32 // < 最小成交量,默认1 OrderMinQty TAPIUINT32 // < 冰山单最小随机量 MinClipSize TAPIUINT32 // < 冰山单最大随机量 MaxClipSize TAPIUINT32 // < 整型参考值 RefInt TAPIINT32 // < 浮点参考值 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 客户子账号,如果存在子账号,则自行上报子账号 ClientID TAPIClientIDType // < 策略单类型,默认N TacticsType TAPITacticsTypeType // < 触发条件,默认N TriggerCondition TAPITriggerConditionType // < 触发价格类型,默认N TriggerPriceType TAPITriggerPriceTypeType // < 是否T+1有效,默认T+1有效。 AddOneIsValid TAPIYNFLAG // < 下单人区域 ClientLocationID TAPIClientLocationIDType }
type TapAPIOrderActionRsp ¶
type TapAPIOrderActionRsp struct { // < 操作类型 ActionType TAPIORDERACT }
type TapAPIOrderCancelReq ¶
type TapAPIOrderCancelReq struct { // < 整型参考值 RefInt TAPIINT32 // < 浮点参考值 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 }
type TapAPIOrderInfo ¶
type TapAPIOrderInfo struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格1 StrikePrice TAPISTR_10 // < 看张看跌1 CallOrPutFlag TAPICallOrPutFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType // < 委托类型 OrderType TAPIOrderTypeType // < 委托来源 OrderSource TAPIOrderSourceType // < 委托有效类型 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 是否风险报单 IsRiskOrder TAPIYNFLAG // < 买入卖出 OrderSide TAPISideType // < 开平标志1 PositionEffect TAPIPositionEffectType // < 开平标志2 PositionEffect2 TAPIPositionEffectType // < 询价号 InquiryNo TAPISTR_50 // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 委托价格1 OrderPrice TAPIREAL64 // < 委托价格2,做市商应价使用 OrderPrice2 TAPIREAL64 // < 触发价格 StopPrice TAPIREAL64 // < 委托数量 OrderQty TAPIUINT32 // < 最小成交量 OrderMinQty TAPIUINT32 // < 整型参考值 RefInt TAPIINT32 // < 浮点参考值 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 冰山单最小随机量 MinClipSize TAPIUINT32 // < 冰山单最大随机量 MaxClipSize TAPIUINT32 // < 软件授权号 LicenseNo TAPISTR_50 // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 // < 客户端本地委托编号 ClientOrderNo TAPISTR_50 // < 客户子账号 ClientID TAPIClientIDType // < 策略单类型 TacticsType TAPITacticsTypeType // < 触发条件 TriggerCondition TAPITriggerConditionType // < 触发价格类型 TriggerPriceType TAPITriggerPriceTypeType // < 是否T+1有效 AddOneIsValid TAPIYNFLAG // < 终端本地IP ClientLocalIP TAPISTR_40 // < 终端本地Mac地址 ClientMac TAPIMACTYPE // < 终端网络地址. ClientIP TAPISTR_40 // < 委托流水号 OrderStreamID TAPIUINT32 // < 上手号 UpperNo TAPISTR_10 // < 上手通道号 UpperChannelNo TAPISTR_10 // < 本地号 OrderLocalNo TAPISTR_20 // < 上手流号 UpperStreamID TAPIUINT32 // < 系统号 OrderSystemNo TAPISTR_50 // < 交易所系统号 OrderExchangeSystemNo TAPISTR_50 // < 父单系统号 OrderParentSystemNo TAPISTR_50 // < 下单人 OrderInsertUserNo TAPISTR_20 // < 下单时间 OrderInsertTime TAPIDATETIME // < 录单操作人 OrderCommandUserNo TAPISTR_20 // < 委托更新人 OrderUpdateUserNo TAPISTR_20 // < 委托更新时间 OrderUpdateTime TAPIDATETIME // < 委托状态 OrderState TAPIOrderStateType // < 成交价1 OrderMatchPrice TAPIREAL64 // < 成交价2 OrderMatchPrice2 TAPIREAL64 // < 成交量1 OrderMatchQty TAPIUINT32 // < 成交量2 OrderMatchQty2 TAPIUINT32 // < 最后一次操作错误信息码 ErrorCode TAPIUINT32 // < 错误信息 ErrorText TAPISTR_50 // < 是否为录入委托单 IsBackInput TAPIYNFLAG // < 委托成交删除标 IsDeleted TAPIYNFLAG // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 下单人区域 ClientLocationID TAPIClientLocationIDType }
type TapAPIOrderInfoNotice ¶
type TapAPIOrderInfoNotice struct { // < 会话ID SessionID TAPIUINT32 // < 错误码 ErrorCode TAPIUINT32 }
type TapAPIOrderLocalInputReq ¶
type TapAPIOrderLocalInputReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格1 StrikePrice TAPISTR_10 // < 看张看跌1 CallOrPutFlag TAPICallOrPutFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType // < 委托类型 OrderType TAPIOrderTypeType // < 委托来源 OrderSource TAPIOrderSourceType // < 委托有效类型 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 是否风险报单 IsRiskOrder TAPIYNFLAG // < 买入卖出 OrderSide TAPISideType // < 开平标志1 PositionEffect TAPIPositionEffectType // < 开平标志2 PositionEffect2 TAPIPositionEffectType // < 询价号 InquiryNo TAPISTR_50 // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 委托价格1 OrderPrice TAPIREAL64 // < 委托价格2,做市商应价使用 OrderPrice2 TAPIREAL64 // < 触发价格 StopPrice TAPIREAL64 // < 委托数量 OrderQty TAPIUINT32 // < 最小成交量 OrderMinQty TAPIUINT32 // < 系统号 OrderSystemNo TAPISTR_50 // < 交易所系统号 OrderExchangeSystemNo TAPISTR_50 // < 上手号 UpperNo TAPISTR_10 // < 成交价1 OrderMatchPrice TAPIREAL64 // < 成交价2 OrderMatchPrice2 TAPIREAL64 // < 成交量1 OrderMatchQty TAPIUINT32 // < 成交量2 OrderMatchQty2 TAPIUINT32 // < 委托状态 OrderState TAPIOrderStateType // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 下级资金帐号 LowerAccount TAPISTR_20 }
type TapAPIOrderLocalModifyReq ¶
type TapAPIOrderLocalModifyReq struct { // < 委托编码 OrderNo TAPISTR_20 // contains filtered or unexported fields }
type TapAPIOrderLocalRemoveReq ¶
type TapAPIOrderLocalRemoveReq struct { // TAPISTR_20 OrderNo; ServerFlag TAPICHAR }
type TapAPIOrderLocalRemoveRsp ¶
type TapAPIOrderLocalRemoveRsp struct { // 终端本地Mac地址(客户端填写) ClientMac TAPIMACTYPE // 前置记录的终端IP地址(前置填写) ClientIP TAPISTR_40 // contains filtered or unexported fields }
type TapAPIOrderLocalTransferReq ¶
type TapAPIOrderLocalTransferReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 }
type TapAPIOrderMarketDeleteReq ¶
type TapAPIOrderMarketDeleteReq struct { // TAPISTR_20 OrderBuyNo; ///< 买委托号 ServerFlag TAPICHAR // < 卖委托号 OrderSellNo TAPISTR_20 }
type TapAPIOrderMarketInsertReq ¶
type TapAPIOrderMarketInsertReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 委托类型 OrderType TAPIOrderTypeType // < 有效类型 TimeInForce TAPITimeInForceType // < 有效期 ExpireTime TAPIDATETIME // < 委托来源 OrderSource TAPIOrderSourceType // < 买开平标志 BuyPositionEffect TAPIPositionEffectType // < 卖开平标志 SellPositionEffect TAPIPositionEffectType // < 是否T+1有效 AddOneIsValid TAPIYNFLAG // < 买委托价 OrderBuyPrice TAPIREAL64 // < 卖委托价 OrderSellPrice TAPIREAL64 // < 买委托量 OrderBuyQty TAPIUINT32 // < 卖委托量 OrderSellQty TAPIUINT32 // < 本地委托编号 ClientBuyOrderNo TAPISTR_50 // < 本地委托编号 ClientSellOrderNo TAPISTR_50 // < 整型参考值 RefInt TAPIINT32 // < 浮点参考值 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 备注 Remark TAPISTR_100 }
type TapAPIOrderMarketInsertRsp ¶
type TapAPIOrderMarketInsertRsp struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 委托类型 OrderType TAPIOrderTypeType // < 委托有效类型 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 委托来源 OrderSource TAPIOrderSourceType // < 买开平标志 BuyPositionEffect TAPIPositionEffectType // < 卖开平标志 SellPositionEffect TAPIPositionEffectType // < 买委托价 OrderBuyPrice TAPIREAL64 // < 卖委托价 OrderSellPrice TAPIREAL64 // < 买委托量 OrderBuyQty TAPIUINT32 // < 卖委托量 OrderSellQty TAPIUINT32 // < 交易服务标识 ServerFlag TAPICHAR // < 买委托号 OrderBuyNo TAPISTR_20 // < 卖委托号 OrderSellNo TAPISTR_20 // < 是否T+1有效 AddOneIsValid TAPIYNFLAG // < 下单人 OrderMarketUserNo TAPISTR_20 // < 下单时间 OrderMarketTime TAPIDATETIME // < 整型参考值 RefInt TAPIINT32 // < 浮点参考值 RefDouble TAPIREAL64 // < 字符串参考值 RefString TAPISTR_50 // < 买本地委托编号 ClientBuyOrderNo TAPISTR_50 // < 卖本地委托编号 ClientSellOrderNo TAPISTR_50 // < 错误信息码 ErrorCode TAPIUINT32 // < 错误信息 ErrorText TAPISTR_50 // < 终端本地IP地址(客户端填写) ClientLocalIP TAPISTR_40 // < 终端本地Mac地址(客户端填写) ClientMac TAPIMACTYPE // < 前置记录的终端IP地址(前置填写) ClientIP TAPISTR_40 // < 备注 Remark TAPISTR_100 }
type TapAPIOrderProcessQryReq ¶
type TapAPIOrderProcessQryReq struct { // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 }
type TapAPIOrderQryReq ¶
type TapAPIOrderQryReq struct { // < 资金账号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 委托类型 OrderType TAPIOrderTypeType // < 委托来源 OrderSource TAPIOrderSourceType // < 委托有效类型 TimeInForce TAPITimeInForceType // < 有效日期(GTD情况下使用) ExpireTime TAPIDATETIME // < 是否风险报单 IsRiskOrder TAPIYNFLAG // < 服务器标识 ServerFlag TAPICHAR // < 委托编号 OrderNo TAPISTR_20 // < 是否为录入委托单 IsBackInput TAPIYNFLAG // < 委托成交删除标 IsDeleted TAPIYNFLAG // < 是否为T+1单 IsAddOne TAPIYNFLAG // < 是否只查询未完成委托 OrderQryType TAPIOrderQryTypeType }
type TapAPIOrderQuoteMarketNotice ¶
type TapAPIOrderQuoteMarketNotice struct { // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编号 CommodityNo TAPISTR_10 // < 合约 ContractNo TAPISTR_10 // < 执行价 StrikePrice TAPISTR_10 // < 看涨看跌 CallOrPutFlag TAPICallOrPutFlagType // < 买卖方向 OrderSide TAPISideType // < 委托量 OrderQty TAPIUINT32 }
type TapAPIPositionInfo ¶
type TapAPIPositionInfo struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 买入卖出 MatchSide TAPISideType // < 投机保值 HedgeFlag TAPIHedgeFlagType // < 本地持仓号,服务器编写 PositionNo TAPISTR_70 // < 服务器标识 ServerFlag TAPICHAR // < 委托编码 OrderNo TAPISTR_20 // < 本地成交号 MatchNo TAPISTR_20 // < 上手号 UpperNo TAPISTR_10 // < 持仓价 PositionPrice TAPIREAL64 // < 持仓量 PositionQty TAPIUINT32 // < 持仓流号 PositionStreamId TAPIUINT32 // < 品种币种组 CommodityCurrencyGroup TAPISTR_10 // < 品种币种 CommodityCurrency TAPISTR_10 // < 当前计算价格 CalculatePrice TAPIREAL64 // < 客户初始保证金 AccountInitialMargin TAPIREAL64 // < 客户维持保证金 AccountMaintenanceMargin TAPIREAL64 // < 上手初始保证金 UpperInitialMargin TAPIREAL64 // < 上手维持保证金 UpperMaintenanceMargin TAPIREAL64 // < 持仓盈亏 PositionProfit TAPIREAL64 // < LME持仓盈亏 LMEPositionProfit TAPIREAL64 // < 期权市值 OptionMarketValue TAPIREAL64 // < 是否为昨仓。 IsHistory TAPIYNFLAG }
type TapAPIPositionProfit ¶
type TapAPIPositionProfit struct { // < 本地持仓号,服务器编写 PositionNo TAPISTR_70 // < 持仓流号 PositionStreamId TAPIUINT32 // < 持仓盈亏 PositionProfit TAPIREAL64 // < LME持仓盈亏 LMEPositionProfit TAPIREAL64 // < 期权市值 OptionMarketValue TAPIREAL64 // < 计算价格 CalculatePrice TAPIREAL64 }
type TapAPIPositionProfitNotice ¶
type TapAPIPositionProfitNotice struct { // < 是否最后一包 IsLast TAPIYNFLAG }
type TapAPIPositionQryReq ¶
type TapAPIPositionQryReq struct { // AccountNo TAPISTR_20 }
type TapAPIPositionSummary ¶
type TapAPIPositionSummary struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格 StrikePrice TAPISTR_10 // < 看张看跌 CallOrPutFlag TAPICallOrPutFlagType // < 买入卖出 MatchSide TAPISideType // < 持仓均价。 PositionPrice TAPIREAL64 // < 持仓量 PositionQty TAPIUINT32 // < 历史持仓量 HisPositionQty TAPIUINT32 }
func (*TapAPIPositionSummary) FromJSON ¶ added in v0.0.3
func (p *TapAPIPositionSummary) FromJSON(str string)
func (*TapAPIPositionSummary) Json ¶ added in v0.0.3
func (p *TapAPIPositionSummary) Json() string
func (*TapAPIPositionSummary) Key ¶ added in v0.0.3
func (p *TapAPIPositionSummary) Key() string
fmt.Sprintf("%s@%s@%c@%s", p.CommodityNo.String(), p.ContractNo.String(), p.CommodityType, p.ExchangeNo.String())
func (*TapAPIPositionSummary) Map ¶ added in v0.0.3
func (p *TapAPIPositionSummary) Map() map[string]any
type TapAPIRequestVertificateCodeRsp ¶
type TapAPIRequestVertificateCodeRsp struct { // < 二次认证授权码序号 SecondSerialID TAPISecondSerialIDType // < 二次认证授权码有效期(分)。 Effective TAPIINT32 }
type TapAPISecondCertificationReq ¶
type TapAPISecondCertificationReq struct { // < 二次认证码 VertificateCode TAPISTR_10 // < 二次认证登录类型 LoginType TAPILoginTypeType }
type TapAPISpecialOrderInfo ¶
type TapAPISpecialOrderInfo struct { // < 会话ID SessionID TAPIUINT32 // < 错误码 ErrorCode TAPIUINT32 // < 错误信息 ErrorText TAPISTR_50 // < 客户资金帐号 AccountNo TAPISTR_20 // < 服务器标识 ServerFlag TAPICHAR // < 特殊业务委托编号 OrderNo TAPISTR_20 // < 客户端本地委托编号 ClientOrderNo TAPISTR_50 // < 特殊业务类型 SpecialOrderType TapAPISpecialOrderTypeType // < 委托来源,默认程序单。 OrderSource TAPIOrderSourceType // < 组合策略代码 CombineStrategy TapAPICombineStrategyType // < 组合编码 CombineNo TAPISTR_50 // < 委托数量 OrderQty TAPIUINT32 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格1 StrikePrice TAPISTR_10 // < 看张看跌1 CallOrPutFlag TAPICallOrPutFlagType // < 买卖方向1 OrderSide1 TAPISideType // < 组合数量1 CombineQty1 TAPIUINT32 // < 投机备兑1 HedgeFlag1 TAPIHedgeFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType // < 买卖方向2 OrderSide2 TAPISideType // < 组合数量2 CombineQty2 TAPIUINT32 // < 投机备兑2 HedgeFlag2 TAPIHedgeFlagType // < 软件授权号 LicenseNo TAPISTR_50 // < 终端本地IP ClientLocalIP TAPISTR_40 // < 终端本地Mac地址 ClientMac TAPIMACTYPE // < 终端网络地址. ClientIP TAPISTR_40 // < 委托流水号 OrderStreamID TAPIUINT32 // < 上手号 UpperNo TAPISTR_10 // < 上手通道号 UpperChannelNo TAPISTR_10 // < 网关本地号 OrderLocalNo TAPISTR_20 // < 系统号 OrderSystemNo TAPISTR_50 // < 交易所系统号 OrderExchangeSystemNo TAPISTR_50 // < 下单人 OrderInsertUserNo TAPISTR_20 // < 下单时间 OrderInsertTime TAPIDATETIME // < 委托状态 OrderState TAPIOrderStateType }
type TapAPISpecialOrderInsertReq ¶
type TapAPISpecialOrderInsertReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 特殊业务类型 SpecialOrderType TapAPISpecialOrderTypeType // < 委托来源 OrderSource TAPIOrderSourceType // < 组合编码 CombineNo TAPISTR_50 // < 委托数量 OrderQty TAPIUINT32 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码 CommodityNo TAPISTR_10 // < 合约1 ContractNo TAPISTR_10 // < 执行价格1 StrikePrice TAPISTR_10 // < 看张看跌1 CallOrPutFlag TAPICallOrPutFlagType // < 买卖方向1 OrderSide1 TAPISideType // < 投机备兑1 HedgeFlag1 TAPIHedgeFlagType // < 合约2 ContractNo2 TAPISTR_10 // < 执行价格2 StrikePrice2 TAPISTR_10 // < 看张看跌2 CallOrPutFlag2 TAPICallOrPutFlagType }
type TapAPISpecialOrderQryReq ¶
type TapAPISpecialOrderQryReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 // < 特殊业务委托编号 OrderNo TAPISTR_20 }
type TapAPISpecialOrderTypeType ¶
type TapAPISpecialOrderTypeType TAPICHAR
=============================================================================
type TapAPISpotLockDataRsp ¶
type TapAPISpotLockDataRsp struct { // < 客户资金账号 AccountNo TAPISTR_20 // < 交易所编号 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编码类型 CommodityNo TAPISTR_10 // < 锁定量 LockQty TAPIUINT32 // < 冻结量 FrozenQty TAPIUINT32 // < 可解锁量 CanUnLockQty TAPIUINT32 }
type TapAPISpotLockQryReq ¶
type TapAPISpotLockQryReq struct { // < 客户资金帐号 AccountNo TAPISTR_20 }
type TapAPISubmitUserLoginInfo ¶
type TapAPISubmitUserLoginInfo struct { // < 用户名 UserNo TAPISTR_20 // < 用户终端采集信息 GatherInfo TAPISTR_500 // < 用户公网IP ClientLoginIP TAPISTR_40 // < 用户公网Port ClientLoginPort TAPIUINT32 // < 用户登录时间 ClientLoginDateTime TAPIDATETIME // < 用户AppID ClientAppID TAPISTR_30 // < 用户终端信息加密密钥版本号 AuthKeyVersion TAPIUINT32 // < 用户采集信息异常标识 AbnormalNo TapAPIAbnormalFalgType }
type TapAPISubmitUserLoginRspInfo ¶
type TapAPISubmitUserLoginRspInfo struct { // < 用户名 UserNo TAPISTR_20 }
type TapAPITradeContractInfo ¶
type TapAPITradeContractInfo struct { // < 交易所编码 ExchangeNo TAPISTR_10 // < 品种类型 CommodityType TAPICommodityType // < 品种编号 CommodityNo TAPISTR_10 // < 合约代码1 ContractNo1 TAPISTR_10 // < 执行价1 StrikePrice1 TAPISTR_10 // < 看涨看跌标示1 CallOrPutFlag1 TAPICallOrPutFlagType // < 合约代码2 ContractNo2 TAPISTR_10 // < 执行价2 StrikePrice2 TAPISTR_10 // < 看涨看跌标示2 CallOrPutFlag2 TAPICallOrPutFlagType // < 合约类型 ContractType TAPIContractTypeType // < 行情真实合约 QuoteUnderlyingContract TAPISTR_10 // < 合约名称 ContractName TAPISTR_70 // < 合约到期日 ContractExpDate TAPIDATE // < 最后交易日 LastTradeDate TAPIDATE // < 首次通知日 FirstNoticeDate TAPIDATE // < 特殊合约层每手乘数 ContractSize TAPIREAL64 }
type TapAPITradeLoginAuth ¶
type TapAPITradeLoginAuth struct { // < 用户名 UserNo TAPISTR_20 // < 是否修改密码 ISModifyPassword TAPIYNFLAG // < 密码 Password TAPISTR_20 // < 新密码 NewPassword TAPISTR_20 // < 登录IP(使用此字段需易盛授权) LoginIP TAPISTR_40 // < 登录MAC,格式12-34-56-78-90-11(使用此字段需易盛授权) LoginMac TAPISTR_50 // < 登录设备名称(使用此字段需易盛授权) DeviceName TAPISTR_50 }
type TapAPITradeLoginRspInfo ¶
type TapAPITradeLoginRspInfo struct { // < 用户编号 UserNo TAPISTR_20 // < 用户类型 UserType TAPIUserTypeType // < 用户名 UserName TAPISTR_20 // < 交易中心和后台版本号 ReservedInfo TAPISTR_50 // < 上次登录IP LastLoginIP TAPISTR_40 // < 上次登录端口 LastLoginProt TAPIUINT32 // < 上次登录时间 LastLoginTime TAPIDATETIME // < 上次退出时间 LastLogoutTime TAPIDATETIME // < 当前交易日期 TradeDate TAPIDATE // < 上次结算时间 LastSettleTime TAPIDATETIME // < 系统启动时间 StartTime TAPIDATETIME // < 下次二次认证日期 NextSecondDate TAPIDATETIME // < 登录附加信息 LastLoginInfo TAPISTR_300 }
type TapAPITradeMessage ¶
type TapAPITradeMessage struct { // < 流号 SerialID TAPIUINT32 // < 客户资金账号 AccountNo TAPISTR_20 // < 消息有效时间 TMsgValidDateTime TAPIDATETIME // < 消息标题 TMsgTitle TAPISTR_50 // < 消息内容 TMsgContent TAPISTR_500 // < 消息类型 TMsgType TAPIMsgTypeType // < 消息级别 TMsgLevel TAPIMsgLevelType // < 是否发送短信 IsSendBySMS TAPIYNFLAG // < 是否发送邮件 IsSendByEMail TAPIYNFLAG // < 发送者 Sender TAPISTR_20 // < 发送时间 SendDateTime TAPIDATETIME }
type TapAPITradeMessageReq ¶
type TapAPITradeMessageReq struct { // TAPIDATETIME BenginSendDateTime; AccountNo TAPISTR_20 // EndSendDateTime TAPIDATETIME }
type TapAPIUserTrustDeviceAddReq ¶
type TapAPIUserTrustDeviceAddReq struct { }
type TapAPIUserTrustDeviceDelReq ¶
type TapAPIUserTrustDeviceDelReq struct { // < 软件授权码 LicenseNo TAPISTR_50 // < MAC Mac TAPISTR_50 }
type TapAPIUserTrustDeviceQryReq ¶
type TapAPIUserTrustDeviceQryReq struct { }
type TapAPIUserTrustDeviceQryRsp ¶
type TapAPIUserTrustDeviceQryRsp struct { // < 登录账号 UserNo TAPISTR_20 // < 软件授权码 LicenseNo TAPISTR_50 // < MAC Mac TAPISTR_50 // < 设备名称 DeviceName TAPISTR_50 // < 操作员 OperatorNo TAPISTR_20 // < 操作时间 OperateTime TAPIDATETIME }
type TapAPIVerifyIdentityReq ¶
type TapAPIVerifyIdentityReq struct { // TapAPICertificateTypeType CertificateType; // 证件类型 UserNo TAPISTR_20 // 证件号码 CertificateNo TAPISTR_50 // 电子邮箱账号 EMail TapAPIContactContentType // 手机号 PhoneNo TapAPIContactContentType }
type Trade ¶
type Trade struct { // 定义响应函数变量 OnConnect func(HostAddress string) OnRspLogin func(errorCode TAPIINT32, loginRspInfo *TapAPITradeLoginRspInfo) OnRtnContactInfo func(errorCode TAPIINT32, isLast TAPIYNFLAG, ContactInfo string) OnRspRequestVertificateCode func(sessionID TAPIUINT32, errorCode TAPIINT32, rsp *TapAPIRequestVertificateCodeRsp) OnExpriationDate func(date string, days int) OnAPIReady func(errorCode TAPIINT32) OnDisconnect func(reasonCode TAPIINT32) OnRspChangePassword func(sessionID TAPIUINT32, errorCode TAPIINT32) OnRspAuthPassword func(sessionID TAPIUINT32, errorCode TAPIINT32) OnRspQryTradingDate func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPITradingCalendarQryRsp) OnRspSetReservedInfo func(sessionID TAPIUINT32, errorCode TAPIINT32, info string) OnRspQryAccount func(sessionID TAPIUINT32, errorCode TAPIUINT32, isLast TAPIYNFLAG, info *TapAPIAccountInfo) OnRspQryFund func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIFundData) OnRtnFund func(info *TapAPIFundData) OnRspQryExchange func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIExchangeInfo) OnRspQryCommodity func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPICommodityInfo) OnRspQryContract func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPITradeContractInfo) OnRtnContract func(info *TapAPITradeContractInfo) OnRspOrderAction func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderActionRsp) OnRtnOrder func(info *TapAPIOrderInfoNotice) OnRspQryOrder func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIOrderInfo) OnRspQryOrderProcess func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIOrderInfo) OnRspQryFill func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIFillInfo) OnRtnFill func(info *TapAPIFillInfo) OnRspQryPosition func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIPositionInfo) OnRtnPosition func(info *TapAPIPositionInfo) OnRspQryPositionSummary func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIPositionSummary) OnRtnPositionSummary func(info *TapAPIPositionSummary) OnRtnPositionProfit func(info *TapAPIPositionProfitNotice) OnRspQryCurrency func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPICurrencyInfo) OnRspQryTradeMessage func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPITradeMessage) OnRtnTradeMessage func(info *TapAPITradeMessage) OnRspQryHisOrder func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIHisOrderQryRsp) OnRspQryHisOrderProcess func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIHisOrderProcessQryReq) OnRspQryHisMatch func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIHisMatchQryRsp) OnRspQryHisPosition func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIHisPositionQryRsp) OnRspQryHisDelivery func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIHisDeliveryQryRsp) OnRspQryAccountCashAdjust func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIAccountCashAdjustQryRsp) OnRspQryBill func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIBillQryRsp) OnRspQryAccountFeeRent func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIAccountFeeRentQryRsp) OnRspQryAccountMarginRent func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPIAccountMarginRentQryRsp) OnRspHKMarketOrderInsert func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderMarketInsertReq) OnRspHKMarketOrderDelete func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderMarketDeleteReq) OnHKMarketQuoteNotice func(info *TapAPIOrderQuoteMarketNotice) OnRspOrderLocalRemove func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderLocalRemoveRsp) OnRspOrderLocalInput func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderLocalInputReq) OnRspOrderLocalModify func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderLocalModifyReq) OnRspOrderLocalTransfer func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIOrderLocalTransferReq) OnRspFillLocalInput func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIFillLocalInputReq) OnRspFillLocalRemove func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPIFillLocalRemoveReq) OnRspQrySpotLock func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPISpotLockDataRsp) OnRtnSpotLock func(info *TapAPISpotLockDataRsp) OnRspSubmitUserLoginInfo func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG) OnRspSpecialOrderAction func(sessionID TAPIUINT32, errorCode TAPIINT32, info *TapAPISpecialOrderInfo) OnRtnSpecialOrder func(info *TapAPISpecialOrderInfo) OnRspQrySpecialOrder func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPISpecialOrderInfo) OnRspQryCombinePosition func(sessionID TAPIUINT32, errorCode TAPIINT32, isLast TAPIYNFLAG, info *TapAPICombinePositionInfo) OnRtnCombinePosition func(info *TapAPICombinePositionInfo) // contains filtered or unexported fields }
Trade 交易接口
func (*Trade) ActivateOrder ¶
func (t *Trade) ActivateOrder(sessionID *TAPIUINT32, order *TapAPIOrderCancelReq) C.int
func (*Trade) AddAccountIPO ¶
func (t *Trade) AddAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOAddReq) C.int
func (*Trade) AddUserTrustDevice ¶
func (t *Trade) AddUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceAddReq) C.int
func (*Trade) AmendOrder ¶
func (t *Trade) AmendOrder(sessionID *TAPIUINT32, order *TapAPIAmendOrder) C.int
func (*Trade) AuthPassword ¶
func (t *Trade) AuthPassword(sessionID *TAPIUINT32, req *TapAPIAuthPasswordReq) C.int
func (*Trade) CancelAccountIPO ¶
func (t *Trade) CancelAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOCancelReq) C.int
func (*Trade) CancelHKMarketOrder ¶
func (t *Trade) CancelHKMarketOrder(sessionID *TAPIUINT32, order *TapAPIOrderMarketDeleteReq) C.int
func (*Trade) CancelOrder ¶
func (t *Trade) CancelOrder(sessionID *TAPIUINT32, order *TapAPIOrderCancelReq) C.int
func (*Trade) ChangePassword ¶
func (t *Trade) ChangePassword(sessionID *TAPIUINT32, req *TapAPIChangePasswordReq) C.int
func (*Trade) CreateITapTradeAPI ¶
func (t *Trade) CreateITapTradeAPI(appInfo *TapAPIApplicationInfo, res *TAPIINT32)
func (*Trade) CreateITapTradeAPINotify ¶
func (t *Trade) CreateITapTradeAPINotify()
func (*Trade) DelUserTrustDevice ¶
func (t *Trade) DelUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceDelReq) C.int
func (*Trade) Disconnect ¶
func (*Trade) FillLocalInput ¶
func (t *Trade) FillLocalInput(sessionID *TAPIUINT32, fill *TapAPIFillLocalInputReq) C.int
func (*Trade) FillLocalRemove ¶
func (t *Trade) FillLocalRemove(sessionID *TAPIUINT32, fill *TapAPIFillLocalRemoveReq) C.int
func (*Trade) FreeITapTradeAPI ¶
func (*Trade) GetITapErrorDescribe ¶
func (*Trade) GetITapTradeAPIVersion ¶
func (*Trade) HaveCertainRight ¶
func (t *Trade) HaveCertainRight(rightID TAPIRightIDType) C.int
func (*Trade) InsertHKMarketOrder ¶
func (t *Trade) InsertHKMarketOrder(sessionID *TAPIUINT32, ClientBuyOrderNo TAPISTR_50, ClientSellOrderNo TAPISTR_50, order *TapAPIOrderMarketInsertReq) C.int
func (*Trade) InsertOrder ¶
func (t *Trade) InsertOrder(sessionID *TAPIUINT32, ClientOrderNo *TAPISTR_50, order *TapAPINewOrder) C.int
func (*Trade) InsertSpecialOrder ¶
func (t *Trade) InsertSpecialOrder(sessionID *TAPIUINT32, clientorderno TAPISTR_50, order *TapAPISpecialOrderInsertReq) C.int
func (*Trade) OrderLocalInput ¶
func (t *Trade) OrderLocalInput(sessionID *TAPIUINT32, order *TapAPIOrderLocalInputReq) C.int
func (*Trade) OrderLocalModify ¶
func (t *Trade) OrderLocalModify(sessionID *TAPIUINT32, order *TapAPIOrderLocalModifyReq) C.int
func (*Trade) OrderLocalRemove ¶
func (t *Trade) OrderLocalRemove(sessionID *TAPIUINT32, order *TapAPIOrderLocalRemoveReq) C.int
func (*Trade) OrderLocalTransfer ¶
func (t *Trade) OrderLocalTransfer(sessionID *TAPIUINT32, order *TapAPIOrderLocalTransferReq) C.int
func (*Trade) QryAccount ¶
func (t *Trade) QryAccount(sessionID *TAPIUINT32, qryReq *TapAPIAccQryReq) C.int
func (*Trade) QryAccountCashAdjust ¶
func (t *Trade) QryAccountCashAdjust(sessionID *TAPIUINT32, qryReq *TapAPIAccountCashAdjustQryReq) C.int
func (*Trade) QryAccountFeeRent ¶
func (t *Trade) QryAccountFeeRent(sessionID *TAPIUINT32, qryReq *TapAPIAccountFeeRentQryReq) C.int
func (*Trade) QryAccountIPO ¶
func (t *Trade) QryAccountIPO(sessionID *TAPIUINT32, qryReq *TapAPIAccountIPOQryReq) C.int
func (*Trade) QryAccountMarginRent ¶
func (t *Trade) QryAccountMarginRent(sessionID *TAPIUINT32, qryReq *TapAPIAccountMarginRentQryReq) C.int
func (*Trade) QryBill ¶
func (t *Trade) QryBill(sessionID *TAPIUINT32, qryReq *TapAPIBillQryReq) C.int
func (*Trade) QryCombinePosition ¶
func (t *Trade) QryCombinePosition(sessionID *TAPIUINT32, qryReq *TapAPICombinePositionQryReq) C.int
func (*Trade) QryCommodity ¶
func (t *Trade) QryCommodity(sessionID *TAPIUINT32) C.int
func (*Trade) QryContract ¶
func (t *Trade) QryContract(sessionID *TAPIUINT32, qryReq *TapAPICommodity) C.int
func (*Trade) QryCurrency ¶
func (t *Trade) QryCurrency(sessionID *TAPIUINT32) C.int
func (*Trade) QryExchange ¶
func (t *Trade) QryExchange(sessionID *TAPIUINT32) C.int
func (*Trade) QryFill ¶
func (t *Trade) QryFill(sessionID *TAPIUINT32, qryReq *TapAPIFillQryReq) C.int
func (*Trade) QryFund ¶
func (t *Trade) QryFund(sessionID *TAPIUINT32, qryReq *TapAPIFundReq) C.int
func (*Trade) QryHisDelivery ¶
func (t *Trade) QryHisDelivery(sessionID *TAPIUINT32, qryReq *TapAPIHisDeliveryQryReq) C.int
func (*Trade) QryHisMatch ¶
func (t *Trade) QryHisMatch(sessionID *TAPIUINT32, qryReq *TapAPIHisMatchQryReq) C.int
func (*Trade) QryHisOrder ¶
func (t *Trade) QryHisOrder(sessionID *TAPIUINT32, qryReq *TapAPIHisOrderQryReq) C.int
func (*Trade) QryHisOrderProcess ¶
func (t *Trade) QryHisOrderProcess(sessionID *TAPIUINT32, qryReq *TapAPIHisOrderProcessQryReq) C.int
func (*Trade) QryHisPosition ¶
func (t *Trade) QryHisPosition(sessionID *TAPIUINT32, qryReq *TapAPIHisPositionQryReq) C.int
func (*Trade) QryIPOInfo ¶
func (t *Trade) QryIPOInfo(sessionID *TAPIUINT32, qryReq *TapAPIIPOInfoQryReq) C.int
func (*Trade) QryIPOStockQty ¶
func (t *Trade) QryIPOStockQty(sessionID *TAPIUINT32, qryReq *TapAPIAvailableApplyQryReq) C.int
func (*Trade) QryOrder ¶
func (t *Trade) QryOrder(sessionID *TAPIUINT32, qryReq *TapAPIOrderQryReq) C.int
func (*Trade) QryOrderProcess ¶
func (t *Trade) QryOrderProcess(sessionID *TAPIUINT32, qryReq *TapAPIOrderProcessQryReq) C.int
func (*Trade) QryPosition ¶
func (t *Trade) QryPosition(sessionID *TAPIUINT32, qryReq *TapAPIPositionQryReq) C.int
func (*Trade) QryPositionSummary ¶
func (t *Trade) QryPositionSummary(sessionID *TAPIUINT32, qryReq *TapAPIPositionQryReq) C.int
func (*Trade) QrySpecialOrder ¶
func (t *Trade) QrySpecialOrder(sessionID *TAPIUINT32, qryReq *TapAPISpecialOrderQryReq) C.int
func (*Trade) QrySpotLock ¶
func (t *Trade) QrySpotLock(sessionID *TAPIUINT32, qryReq *TapAPISpotLockQryReq) C.int
func (*Trade) QryTradeMessage ¶
func (t *Trade) QryTradeMessage(sessionID *TAPIUINT32, qryReq *TapAPITradeMessageReq) C.int
func (*Trade) QryTradingDate ¶
func (t *Trade) QryTradingDate(sessionID *TAPIUINT32) C.int
func (*Trade) QryUserTrustDevice ¶
func (t *Trade) QryUserTrustDevice(sessionID *TAPIUINT32, qryReq *TapAPIUserTrustDeviceQryReq) C.int
func (*Trade) RegCallBack ¶
func (t *Trade) RegCallBack()
********************** 响应函数 ******************
func (*Trade) RequestVertificateCode ¶
func (t *Trade) RequestVertificateCode(sessionID *TAPIUINT32, ContactInfo TAPISTR_40) C.int
func (*Trade) SetHostAddress ¶
func (t *Trade) SetHostAddress(IP string, port TAPIUINT16) C.int
func (*Trade) SetReservedInfo ¶
func (t *Trade) SetReservedInfo(sessionID *TAPIUINT32, info TAPISTR_50) C.int
func (*Trade) SetVertificateCode ¶
func (t *Trade) SetVertificateCode(sessionID *TAPIUINT32, req *TapAPISecondCertificationReq) C.int
func (*Trade) SubmitUserLoginInfo ¶
func (t *Trade) SubmitUserLoginInfo(sessionID *TAPIUINT32, qryReq *TapAPISubmitUserLoginInfo) C.int
func (*Trade) VerificateUnFreezeInfo ¶
func (t *Trade) VerificateUnFreezeInfo(sessionID *TAPIUINT32, qryReq *TapAPIVerifyIdentityReq) C.int
type TradeExt ¶
type TradeExt struct { *Trade AccountID string // 品种@类型@交易所 // // ("%s@%c@%s", info.CommodityNo.String(), info.CommodityType, info.ExchangeNo.String()) Product map[string]TapAPICommodityInfo // 品种@合约1@合约2@类型@交易所@CP@行权价 // // ("%s@%s@%s@%c@%s@%c@%s", info.CommodityNo.String(), info.ContractNo1.String(), info.ContractNo2.String(), info.CommodityType, info.ExchangeNo.String(), info.CallOrPutFlag1, info.StrikePrice1.String()) Instrument map[string]TapAPITradeContractInfo // ("%s@%s@%c@%s", info.CommodityNo.String(), info.ContractNo.String(), info.CommodityType, info.ExchangeNo.String()) // // TapAPIPositionSummary MapPositionSummary sync.Map // MatchNo:TapAPIFillInfo MapTrade sync.Map // 委托响应 // OnOrder func(info *TapAPIOrderInfo) // 成交响应 OnTrade func(info *TapAPIFillInfo) // 持仓响应 OnPosition func(info *TapAPIPositionSummary) // contains filtered or unexported fields }
func NewTradeExt ¶
func (*TradeExt) ReqOrderInsert ¶
func (t *TradeExt) ReqOrderInsert(exchangeID, commodityNo, contractNo string, orderType TAPIOrderTypeType, price float64, qty int, side TAPISideType, commodityType TAPICommodityType) (session uint, clientNo string, err error)
func (*TradeExt) ReqOrderInsertLMT ¶
func (t *TradeExt) ReqOrderInsertLMT(exchangeID, commodityNo, contractNo string, price float64, qty int, side TAPISideType, commodityType TAPICommodityType) (session uint, clientNo string, err error)
func (*TradeExt) ReqOrderInsertMKT ¶
func (t *TradeExt) ReqOrderInsertMKT(exchangeID, commodityNo, contractNo string, qty int, side TAPISideType, commodityType TAPICommodityType) (session uint, clientNo string, err error)