Skip to content
本页导航

行情

依赖

open-api-tool >= 1.7.0-SNAPSHOT

aix-tool >= 2.2.0-SNAPSHOT

配置

application.properties文件中配置

properties
# common-services内网地址,如 https://app-test.jrtzcloud.cn/common
app.open-api.common-services.domain=xxxxxx
# common-services内网地址,如 https://app-test.jrtzcloud.cn/common
app.open-api.common-services.domain=xxxxxx

SDKs

股票行情快照

RealQuoteAPI.getStockQuoteSnapshot()

java
// 建议单次股票数不超过500
List<String> stockCodes = Arrays.asList("000001", "600519");
String region = "common-services内网地址";
List<StockRealQuote> stockRealQuotes = RealQuoteAPI.getStockQuoteSnapshot(region, stockCodes);
// 建议单次股票数不超过500
List<String> stockCodes = Arrays.asList("000001", "600519");
String region = "common-services内网地址";
List<StockRealQuote> stockRealQuotes = RealQuoteAPI.getStockQuoteSnapshot(region, stockCodes);

行业行情快照

RealQuoteAPI.getIndustryQuoteSnapshot()

java
List<String> industryCodes = Arrays.asList("740000", "720000");
String region = "common-services内网地址";
List<StockRealQuote> industryRealQuotes = RealQuoteAPI.getIndustryQuoteSnapshot(region, "SW", 1, industryCodes, 1, 100);
List<String> industryCodes = Arrays.asList("740000", "720000");
String region = "common-services内网地址";
List<StockRealQuote> industryRealQuotes = RealQuoteAPI.getIndustryQuoteSnapshot(region, "SW", 1, industryCodes, 1, 100);

基金行情快照

RealQuoteAPI.getFundQuoteSnapshot()

java
List<String> fundCodes = Arrays.asList("159687", "515250");
String region = "common-services内网地址";
List<StockRealQuote> fundRealQuotes = RealQuoteAPI.getStockQuoteSnapshot(region, fundCodes);
List<String> fundCodes = Arrays.asList("159687", "515250");
String region = "common-services内网地址";
List<StockRealQuote> fundRealQuotes = RealQuoteAPI.getStockQuoteSnapshot(region, fundCodes);

指数行情快照

RealQuoteAPI.getIndexQuoteSnapshot()

java
List<String> indexCodes = Arrays.asList("000001", "399300");
String region = "common-services内网地址";
List<StockRealQuote> indexRealQuotes = RealQuoteAPI.getIndexQuoteSnapshot(region, indexCodes);
List<String> indexCodes = Arrays.asList("000001", "399300");
String region = "common-services内网地址";
List<StockRealQuote> indexRealQuotes = RealQuoteAPI.getIndexQuoteSnapshot(region, indexCodes);

lhiro