gitee.com/haifengat/gotap_dipper@v0.0.4-0.20231212021028-041a6fa876e5/quote/struct_cgo.h (about) 1 2 3 struct TapAPIApplicationInfo 4 { 5 6 char AuthCode[513]; // < 授权码 7 8 char KeyOperationLogPath[300]; // < 关键操作日志路径 9 10 }; 11 12 struct TapAPICommodity 13 { 14 15 char ExchangeNo[10]; // < 交易所编码 16 17 char CommodityType; // < 品种类型 18 19 char CommodityNo[10]; // < 品种编号 20 21 }; 22 23 struct TapAPIContract 24 { 25 26 struct TapAPICommodity Commodity; // < 品种 27 28 char ContractNo1[10]; // < 合约代码1 29 30 char StrikePrice1[10]; // < 执行价1 31 32 char CallOrPutFlag1; // < 看涨看跌标示1 33 34 char ContractNo2[10]; // < 合约代码2 35 36 char StrikePrice2[10]; // < 执行价2 37 38 char CallOrPutFlag2; // < 看涨看跌标示2 39 40 }; 41 42 struct TapAPIExchangeInfo 43 { 44 45 char ExchangeNo[10]; // < 交易所编码 46 47 char ExchangeName[20]; // < 交易所名称 48 49 }; 50 51 struct TapAPIChangePasswordReq 52 { 53 54 char OldPassword[20]; // < 旧密码 55 56 char NewPassword[20]; // < 新密码 57 58 }; 59 60 struct TapAPIQuoteLoginAuth 61 { 62 63 char UserNo[20]; // < 用户名 64 65 char ISModifyPassword; // < 是否修改密码,'Y'表示是,'N'表示否 66 67 char Password[20]; // < 用户密码 68 69 char NewPassword[20]; // < 新密码,如果设置了修改密码则需要填写此字段 70 71 char QuoteTempPassword[20]; // < 行情临时密码 72 73 char ISDDA; // < 是否需呀动态认证,'Y'表示是,'N'表示否 74 75 char DDASerialNo[30]; // < 动态认证码 76 77 }; 78 79 struct TapAPIQuotLoginRspInfo 80 { 81 82 char UserNo[20]; // < 用户名 83 84 int UserType; // < 用户类型 85 86 char UserName[20]; // < 昵称,GBK编码格式 87 88 char QuoteTempPassword[20]; // < 行情临时密码 89 90 char ReservedInfo[50]; // < 用户自己设置的预留信息 91 92 char LastLoginIP[40]; // < 上次登录的地址 93 94 unsigned int LastLoginProt; // < 上次登录使用的端口 95 96 char LastLoginTime[20]; // < 上次登录的时间 97 98 char LastLogoutTime[20]; // < 上次退出的时间 99 100 char TradeDate[11]; // < 当前交易日期 101 102 char LastSettleTime[20]; // < 上次结算时间 103 104 char StartTime[20]; // < 系统启动时间 105 106 char InitTime[20]; // < 系统初始化时间 107 108 }; 109 110 struct TapAPIQuoteCommodityInfo 111 { 112 113 struct TapAPICommodity Commodity; // < 品种 114 115 char CommodityName[20]; // < 品种名称,GBK编码格式 116 117 char CommodityEngName[30]; // < 品种英文名称 118 119 double ContractSize; // < 每手乘数 120 121 double CommodityTickSize; // < 最小变动价位 122 123 int CommodityDenominator; // < 报价分母 124 125 char CmbDirect; // < 组合方向 126 127 int CommodityContractLen; // < 品种合约年限 128 129 char IsDST; // < 是否夏令时,'Y'为是,'N'为否 130 131 struct TapAPICommodity RelateCommodity1; // < 关联品种1 132 133 struct TapAPICommodity RelateCommodity2; // < 关联品种2 134 135 }; 136 137 struct TapAPIQuoteContractInfo 138 { 139 140 struct TapAPIContract Contract; // < 合约 141 142 char ContractType; // < 合约类型,'1'表示交易行情合约,'2'表示行情合约 143 144 char QuoteUnderlyingContract[10]; // < 行情真实合约 145 146 char ContractName[70]; // < 合约名称 147 148 char ContractExpDate[11]; // < 合约到期日 149 150 char LastTradeDate[11]; // < 最后交易日 151 152 char FirstNoticeDate[11]; // < 首次通知日 153 154 }; 155 156 struct TapAPIQuoteWhole 157 { 158 159 struct TapAPIContract Contract; // < 合约 160 161 char CurrencyNo[10]; // < 币种编号 162 163 char TradingState; // < 交易状态。1,集合竞价;2,集合竞价撮合;3,连续交易;4,交易暂停;5,闭市 164 165 char DateTimeStamp[24]; // < 时间戳 166 167 double QPreClosingPrice; // < 昨收盘价 168 169 double QPreSettlePrice; // < 昨结算价 170 171 unsigned long long QPrePositionQty; // < 昨持仓量 172 173 double QOpeningPrice; // < 开盘价 174 175 double QLastPrice; // < 最新价 176 177 double QHighPrice; // < 最高价 178 179 double QLowPrice; // < 最低价 180 181 double QHisHighPrice; // < 历史最高价 182 183 double QHisLowPrice; // < 历史最低价 184 185 double QLimitUpPrice; // < 涨停价 186 187 double QLimitDownPrice; // < 跌停价 188 189 unsigned long long QTotalQty; // < 当日总成交量 190 191 double QTotalTurnover; // < 当日成交金额 192 193 unsigned long long QPositionQty; // < 持仓量 194 195 double QAveragePrice; // < 均价 196 197 double QClosingPrice; // < 收盘价 198 199 double QSettlePrice; // < 结算价 200 201 unsigned long long QLastQty; // < 最新成交量 202 203 double QBidPrice[20]; // < 买价1-20档 204 205 unsigned long long QBidQty[20]; // < 买量1-20档 206 207 double QAskPrice[20]; // < 卖价1-20档 208 209 unsigned long long QAskQty[20]; // < 卖量1-20档 210 211 double QImpliedBidPrice; // < 隐含买价 212 213 unsigned long long QImpliedBidQty; // < 隐含买量 214 215 double QImpliedAskPrice; // < 隐含卖价 216 217 unsigned long long QImpliedAskQty; // < 隐含卖量 218 219 double QPreDelta; // < 昨虚实度 220 221 double QCurrDelta; // < 今虚实度 222 223 unsigned long long QInsideQty; // < 内盘量 224 225 unsigned long long QOutsideQty; // < 外盘量 226 227 double QTurnoverRate; // < 换手率 228 229 unsigned long long Q5DAvgQty; // < 五日均量 230 231 double QPERatio; // < 市盈率 232 233 double QTotalValue; // < 总市值 234 235 double QNegotiableValue; // < 流通市值 236 237 long long QPositionTrend; // < 持仓走势 238 239 double QChangeSpeed; // < 涨速 240 241 double QChangeRate; // < 涨幅 242 243 double QChangeValue; // < 涨跌值 244 245 double QSwing; // < 振幅 246 247 unsigned long long QTotalBidQty; // < 委买总量 248 249 unsigned long long QTotalAskQty; // < 委卖总量 250 251 struct TapAPIContract UnderlyContract; // < 虚拟合约对应的真实合约 252 253 };