新增二板历史角度
This commit is contained in:
@@ -21,6 +21,14 @@ type SecondCalRequest struct {
|
||||
TradeEndDate string `form:"tradeEndDate" json:"trade_end_date"` // 查询结束 T 日。
|
||||
}
|
||||
|
||||
// SecondBoardProfitRequest 是二板获利综合和详情接口的日期范围请求。
|
||||
type SecondBoardProfitRequest struct {
|
||||
TradeStartDate string `form:"tradeStartDate" json:"trade_start_date"` // 查询起始 T 日,默认 2020-01-01。
|
||||
TradeEndDate string `form:"tradeEndDate" json:"trade_end_date"` // 查询结束 T 日,默认当天。
|
||||
TsCode string `form:"tsCode" json:"ts_code"` // 可选 TuShare 股票代码,详情接口必填。
|
||||
Symbol string `form:"symbol" json:"symbol"` // 可选市场股票代码,详情接口可替代 tsCode。
|
||||
}
|
||||
|
||||
// LimitBoardStock 表示单只涨停股在涨停概览中的展示数据。
|
||||
type LimitBoardStock struct {
|
||||
Symbol string `json:"symbol"` // 市场展示用股票代码。
|
||||
@@ -165,6 +173,51 @@ type SecondCalStock struct {
|
||||
NextHighProfitPct *float64 `json:"next_high_profit_pct"` // T+1 最高价相对 T 日最高价的收益率。
|
||||
}
|
||||
|
||||
// SecondBoardProfitSummaryItem 表示单只股票二板后的次日最大获利汇总。
|
||||
type SecondBoardProfitSummaryItem struct {
|
||||
Symbol string `json:"symbol"` // 股票代码。
|
||||
TsCode string `json:"ts_code"` // TuShare 股票代码。
|
||||
Name string `json:"name"` // 股票简称。
|
||||
Market string `json:"market"` // 所属板块。
|
||||
Industry string `json:"industry"` // 所属行业。
|
||||
SecondBoardCount int `json:"second_board_count"` // 09:31:00-09:59:59 期间命中的二板次数。
|
||||
LimitCount int `json:"limit_count"` // 二板封板次数。
|
||||
BreakCount int `json:"break_count"` // 二板炸板次数。
|
||||
ProfitDataCount int `json:"profit_data_count"` // 具备 T+1 最大获利百分比的次数。
|
||||
TotalNextHighProfitPct float64 `json:"total_next_high_profit_pct"` // T+1 最大获利百分比累计值。
|
||||
AverageNextHighProfitPct float64 `json:"average_next_high_profit_pct"` // T+1 最大获利百分比平均值。
|
||||
FirstTradeDate string `json:"first_trade_date"` // 首次命中交易日。
|
||||
LastTradeDate string `json:"last_trade_date"` // 最近命中交易日。
|
||||
}
|
||||
|
||||
// SecondBoardProfitSummaryResponse 是二板获利综合接口响应。
|
||||
type SecondBoardProfitSummaryResponse struct {
|
||||
TradeStartDate string `json:"trade_start_date"` // 查询起始 T 日。
|
||||
TradeEndDate string `json:"trade_end_date"` // 查询结束 T 日。
|
||||
StartTime string `json:"start_time"` // 二板首次涨停时间筛选起点。
|
||||
EndTime string `json:"end_time"` // 二板首次涨停时间筛选终点。
|
||||
Total int `json:"total"` // 返回的股票数量。
|
||||
List []SecondBoardProfitSummaryItem `json:"list"` // 按累计获利从高到低排序。
|
||||
}
|
||||
|
||||
// SecondBoardProfitDetailResponse 是单只股票二板获利详情接口响应。
|
||||
type SecondBoardProfitDetailResponse struct {
|
||||
TradeStartDate string `json:"trade_start_date"` // 查询起始 T 日。
|
||||
TradeEndDate string `json:"trade_end_date"` // 查询结束 T 日。
|
||||
StartTime string `json:"start_time"` // 二板首次涨停时间筛选起点。
|
||||
EndTime string `json:"end_time"` // 二板首次涨停时间筛选终点。
|
||||
Symbol string `json:"symbol"` // 股票代码。
|
||||
TsCode string `json:"ts_code"` // TuShare 股票代码。
|
||||
Name string `json:"name"` // 股票简称。
|
||||
Market string `json:"market"` // 所属板块。
|
||||
Industry string `json:"industry"` // 所属行业。
|
||||
SecondBoardCount int `json:"second_board_count"` // 命中二板次数。
|
||||
ProfitDataCount int `json:"profit_data_count"` // 具备 T+1 最大获利百分比的次数。
|
||||
TotalNextHighProfitPct float64 `json:"total_next_high_profit_pct"` // T+1 最大获利百分比累计值。
|
||||
AverageNextHighProfitPct float64 `json:"average_next_high_profit_pct"` // T+1 最大获利百分比平均值。
|
||||
List []SecondCalStock `json:"list"` // 每次二板获利详情。
|
||||
}
|
||||
|
||||
// LimitOpenCompareGroup 是开盘价低于前收接口的分组结果。
|
||||
type LimitOpenCompareGroup struct {
|
||||
Key string `json:"key"` // 分组唯一标识。
|
||||
|
||||
Reference in New Issue
Block a user