新增首页
This commit is contained in:
@@ -15,6 +15,12 @@ type LimitBreakNextPerformanceRequest struct {
|
||||
BreakTimeBefore1100 *bool `json:"break_time_before_1100,omitempty"` // 可选过滤:炸板时间是否早于 11:00。
|
||||
}
|
||||
|
||||
// SecondCalRequest 是二板日历接口的日期范围请求。
|
||||
type SecondCalRequest struct {
|
||||
TradeStartDate string `form:"tradeStartDate" json:"trade_start_date"` // 查询起始 T 日。
|
||||
TradeEndDate string `form:"tradeEndDate" json:"trade_end_date"` // 查询结束 T 日。
|
||||
}
|
||||
|
||||
// LimitBoardStock 表示单只涨停股在涨停概览中的展示数据。
|
||||
type LimitBoardStock struct {
|
||||
Symbol string `json:"symbol"` // 市场展示用股票代码。
|
||||
@@ -134,6 +140,29 @@ type LimitBreakNextPerformanceStock struct {
|
||||
NextClosePctChg *float64 `json:"next_close_pct_chg"` // T+1 收盘相对 T 日收盘的收益率。
|
||||
}
|
||||
|
||||
// SecondCalStock 表示二板日历中单只二板股票的 T 日和 T+1 表现。
|
||||
type SecondCalStock struct {
|
||||
TradeDate string `json:"trade_date"` // T 日交易日。
|
||||
PreviousTradeDate string `json:"previous_trade_date"` // T-1 交易日。
|
||||
PreviousTwoTradeDate string `json:"previous_two_trade_date"` // T-2 交易日。
|
||||
NextTradeDate string `json:"next_trade_date"` // T+1 交易日。
|
||||
Symbol string `json:"symbol"` // 股票代码。
|
||||
TsCode string `json:"ts_code"` // TuShare 股票代码。
|
||||
Name string `json:"name"` // 股票简称。
|
||||
Market string `json:"market"` // 所属板块,来自 stock_basic.market。
|
||||
Industry string `json:"industry"` // 所属行业,来自 stock_basic.industry。
|
||||
PreviousClose *float64 `json:"previous_close"` // T-1 收盘价。
|
||||
LimitPrice *float64 `json:"limit_price"` // 按 T-1 收盘价和板块涨跌幅规则计算的 T 日涨停价。
|
||||
THigh *float64 `json:"t_high"` // T 日最高价。
|
||||
TClose *float64 `json:"t_close"` // T 日收盘价。
|
||||
TPctChg *float64 `json:"t_pct_chg"` // T 日收盘涨跌幅。
|
||||
Status string `json:"status"` // T 日二板状态:limit 表示封板,break 表示炸板。
|
||||
NextHigh *float64 `json:"next_high"` // T+1 日最高价。
|
||||
NextClose *float64 `json:"next_close"` // T+1 日收盘价。
|
||||
NextIntradayProfitable *bool `json:"next_intraday_profitable"` // T+1 盘中最高价是否高于 T 日最高价。
|
||||
NextHighProfitPct *float64 `json:"next_high_profit_pct"` // T+1 最高价相对 T 日最高价的收益率。
|
||||
}
|
||||
|
||||
// LimitOpenCompareGroup 是开盘价低于前收接口的分组结果。
|
||||
type LimitOpenCompareGroup struct {
|
||||
Key string `json:"key"` // 分组唯一标识。
|
||||
@@ -173,6 +202,23 @@ type LimitBreakNextPerformanceSummary struct {
|
||||
NextTradeDataCount int `json:"next_trade_data_count"` // 具备 T+1 行情数据的股票数量。
|
||||
}
|
||||
|
||||
// SecondCalSummary 汇总日期范围内所有二板日历指标。
|
||||
type SecondCalSummary struct {
|
||||
TradeDayCount int `json:"trade_day_count"` // 返回的交易日数量。
|
||||
SecondBoardCount int `json:"second_board_count"` // 触及二板涨停价的股票总数。
|
||||
LimitCount int `json:"limit_count"` // 二板中封住涨停的股票数量。
|
||||
BreakCount int `json:"break_count"` // 二板中炸板的股票数量。
|
||||
NextTradeDataCount int `json:"next_trade_data_count"` // 具备 T+1 最高价和 T 日最高价的股票数量。
|
||||
NextIntradayProfitCount int `json:"next_intraday_profit_count"` // T+1 最高价高于 T 日最高价的股票数量。
|
||||
NextIntradayProfitRate float64 `json:"next_intraday_profit_rate"` // T+1 盘中盈利概率,百分比。
|
||||
LimitNextDataCount int `json:"limit_next_data_count"` // T 日封板股票中具备 T+1 盈利判断数据的数量。
|
||||
LimitNextProfitCount int `json:"limit_next_profit_count"` // T 日封板股票中 T+1 盘中盈利数量。
|
||||
LimitNextProfitRate float64 `json:"limit_next_profit_rate"` // T 日封板股票的 T+1 盘中盈利概率,百分比。
|
||||
BreakNextDataCount int `json:"break_next_data_count"` // T 日炸板股票中具备 T+1 盈利判断数据的数量。
|
||||
BreakNextProfitCount int `json:"break_next_profit_count"` // T 日炸板股票中 T+1 盘中盈利数量。
|
||||
BreakNextProfitRate float64 `json:"break_next_profit_rate"` // T 日炸板股票的 T+1 盘中盈利概率,百分比。
|
||||
}
|
||||
|
||||
// LimitOpenCompareResponse 是开盘价低于前收接口响应。
|
||||
type LimitOpenCompareResponse struct {
|
||||
TradeDate string `json:"trade_date"` // 查询交易日。
|
||||
@@ -194,6 +240,35 @@ type LimitBreakNextPerformanceResponse struct {
|
||||
List []LimitBreakNextPerformanceStock `json:"list"` // 当前页记录。
|
||||
}
|
||||
|
||||
// SecondCalDay 表示二板日历中单个交易日的聚合统计。
|
||||
type SecondCalDay struct {
|
||||
TradeDate string `json:"trade_date"` // T 日交易日。
|
||||
PreviousTradeDate string `json:"previous_trade_date"` // T-1 交易日。
|
||||
PreviousTwoTradeDate string `json:"previous_two_trade_date"` // T-2 交易日。
|
||||
NextTradeDate string `json:"next_trade_date"` // T+1 交易日。
|
||||
SecondBoardCount int `json:"second_board_count"` // 当日触及二板涨停价的股票数量。
|
||||
LimitCount int `json:"limit_count"` // 当日二板封板数量。
|
||||
BreakCount int `json:"break_count"` // 当日二板炸板数量。
|
||||
NextTradeDataCount int `json:"next_trade_data_count"` // 当日具备 T+1 盈利判断数据的股票数量。
|
||||
NextIntradayProfitCount int `json:"next_intraday_profit_count"` // 当日 T+1 最高价高于 T 日最高价数量。
|
||||
NextIntradayProfitRate float64 `json:"next_intraday_profit_rate"` // 当日 T+1 盘中盈利概率,百分比。
|
||||
LimitNextDataCount int `json:"limit_next_data_count"` // 当日封板股中具备 T+1 盈利判断数据的数量。
|
||||
LimitNextProfitCount int `json:"limit_next_profit_count"` // 当日封板股 T+1 盘中盈利数量。
|
||||
LimitNextProfitRate float64 `json:"limit_next_profit_rate"` // 当日封板股 T+1 盘中盈利概率,百分比。
|
||||
BreakNextDataCount int `json:"break_next_data_count"` // 当日炸板股中具备 T+1 盈利判断数据的数量。
|
||||
BreakNextProfitCount int `json:"break_next_profit_count"` // 当日炸板股 T+1 盘中盈利数量。
|
||||
BreakNextProfitRate float64 `json:"break_next_profit_rate"` // 当日炸板股 T+1 盘中盈利概率,百分比。
|
||||
Stocks []SecondCalStock `json:"stocks"` // 当日二板股票明细。
|
||||
}
|
||||
|
||||
// SecondCalResponse 是二板日历接口响应。
|
||||
type SecondCalResponse struct {
|
||||
TradeStartDate string `json:"trade_start_date"` // 查询起始 T 日。
|
||||
TradeEndDate string `json:"trade_end_date"` // 查询结束 T 日。
|
||||
Summary SecondCalSummary `json:"summary"` // 日期范围汇总统计。
|
||||
List []SecondCalDay `json:"list"` // 按交易日升序排列的日历统计。
|
||||
}
|
||||
|
||||
// LimitOpenThresholdResponse 是开盘价阈值分组接口响应。
|
||||
type LimitOpenThresholdResponse struct {
|
||||
TradeDate string `json:"trade_date"` // 查询交易日。
|
||||
|
||||
Reference in New Issue
Block a user