263 lines
4.8 KiB
Java
263 lines
4.8 KiB
Java
package com.agricultural.stock.vo;
|
|
|
|
import lombok.Data;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 股票市场分析结果VO
|
|
*
|
|
* @author Agricultural Stock Platform Team
|
|
*/
|
|
@Data
|
|
public class StockAnalysisVO {
|
|
|
|
/**
|
|
* 市场总览
|
|
*/
|
|
private MarketOverview marketOverview;
|
|
|
|
/**
|
|
* 涨幅榜前10
|
|
*/
|
|
private List<StockRankingItem> topGainers;
|
|
|
|
/**
|
|
* 跌幅榜前10
|
|
*/
|
|
private List<StockRankingItem> topLosers;
|
|
|
|
/**
|
|
* 成交量榜前10
|
|
*/
|
|
private List<StockRankingItem> topVolume;
|
|
|
|
/**
|
|
* 行业分析
|
|
*/
|
|
private List<IndustryAnalysisItem> industryAnalysis;
|
|
|
|
/**
|
|
* 行业分析
|
|
*/
|
|
private List<IndustryAnalysis> industryAnalysisList;
|
|
|
|
/**
|
|
* 热门股票
|
|
*/
|
|
private List<HotStock> hotStocks;
|
|
|
|
/**
|
|
* 市场情绪指标
|
|
*/
|
|
private MarketSentiment marketSentiment;
|
|
|
|
@Data
|
|
public static class MarketOverview {
|
|
/**
|
|
* 总股票数
|
|
*/
|
|
private Integer totalStocks;
|
|
|
|
/**
|
|
* 上涨股票数
|
|
*/
|
|
private Integer upCount;
|
|
|
|
/**
|
|
* 下跌股票数
|
|
*/
|
|
private Integer downCount;
|
|
|
|
/**
|
|
* 平盘股票数
|
|
*/
|
|
private Integer flatCount;
|
|
|
|
/**
|
|
* 平均涨跌幅
|
|
*/
|
|
private BigDecimal avgChangePercent;
|
|
|
|
/**
|
|
* 总成交量
|
|
*/
|
|
private Long totalVolume;
|
|
|
|
/**
|
|
* 总成交额
|
|
*/
|
|
private BigDecimal totalTurnover;
|
|
|
|
/**
|
|
* 总市值
|
|
*/
|
|
private BigDecimal totalMarketCap;
|
|
}
|
|
|
|
@Data
|
|
public static class StockRankingItem {
|
|
/**
|
|
* 股票代码
|
|
*/
|
|
private String stockCode;
|
|
|
|
/**
|
|
* 股票名称
|
|
*/
|
|
private String stockName;
|
|
|
|
/**
|
|
* 当前价格
|
|
*/
|
|
private BigDecimal currentPrice;
|
|
|
|
/**
|
|
* 涨跌幅
|
|
*/
|
|
private BigDecimal changePercent;
|
|
|
|
/**
|
|
* 涨跌额
|
|
*/
|
|
private BigDecimal changeAmount;
|
|
|
|
/**
|
|
* 成交量
|
|
*/
|
|
private Long volume;
|
|
|
|
/**
|
|
* 成交额
|
|
*/
|
|
private BigDecimal turnover;
|
|
|
|
/**
|
|
* 市值
|
|
*/
|
|
private BigDecimal marketCap;
|
|
}
|
|
|
|
@Data
|
|
public static class IndustryAnalysisItem {
|
|
/**
|
|
* 行业名称
|
|
*/
|
|
private String industry;
|
|
|
|
/**
|
|
* 股票数量
|
|
*/
|
|
private Integer stockCount;
|
|
|
|
/**
|
|
* 平均涨跌幅
|
|
*/
|
|
private BigDecimal avgChangePercent;
|
|
|
|
/**
|
|
* 总市值
|
|
*/
|
|
private BigDecimal totalMarketCap;
|
|
|
|
/**
|
|
* 总成交量
|
|
*/
|
|
private Long totalVolume;
|
|
}
|
|
|
|
@Data
|
|
public static class IndustryAnalysis {
|
|
/**
|
|
* 行业名称
|
|
*/
|
|
private String industryName;
|
|
|
|
/**
|
|
* 股票数量
|
|
*/
|
|
private Integer stockCount;
|
|
|
|
/**
|
|
* 平均涨跌幅
|
|
*/
|
|
private BigDecimal avgChangePercent;
|
|
|
|
/**
|
|
* 总市值
|
|
*/
|
|
private BigDecimal totalMarketCap;
|
|
|
|
/**
|
|
* 领涨股票
|
|
*/
|
|
private String leadingStock;
|
|
|
|
/**
|
|
* 行业排名
|
|
*/
|
|
private Integer ranking;
|
|
}
|
|
|
|
@Data
|
|
public static class HotStock {
|
|
/**
|
|
* 股票代码
|
|
*/
|
|
private String stockCode;
|
|
|
|
/**
|
|
* 股票名称
|
|
*/
|
|
private String stockName;
|
|
|
|
/**
|
|
* 涨跌幅
|
|
*/
|
|
private BigDecimal changePercent;
|
|
|
|
/**
|
|
* 成交量
|
|
*/
|
|
private Long volume;
|
|
|
|
/**
|
|
* 热度评分
|
|
*/
|
|
private Integer hotScore;
|
|
|
|
/**
|
|
* 热度原因
|
|
*/
|
|
private String hotReason;
|
|
}
|
|
|
|
@Data
|
|
public static class MarketSentiment {
|
|
/**
|
|
* 市场情绪指数 (0-100)
|
|
*/
|
|
private Integer sentimentIndex;
|
|
|
|
/**
|
|
* 恐慌贪婪指数 (0-100)
|
|
*/
|
|
private Integer fearGreedIndex;
|
|
|
|
/**
|
|
* 波动率指数
|
|
*/
|
|
private BigDecimal volatilityIndex;
|
|
|
|
/**
|
|
* 资金流向
|
|
*/
|
|
private String moneyFlow;
|
|
|
|
/**
|
|
* 市场预期
|
|
*/
|
|
private String marketExpectation;
|
|
}
|
|
} |