股票指标源码java-stocks-api:简单股票SpringBoot应用程序

上传者: 38621553 | 上传时间: 2021-09-19 15:25:34 | 文件大小: 46KB | 文件类型: ZIP
股票指标源码java 简单的股票 API 这是一个示例应用程序,它提供了管理简单股票和交易的方法。 这是作为提供以下操作的简单 Web 服务提供的: 记录交易 记录一只股票 获取库存详情 计算股票股息 计算股票市盈率 根据过去 X 分钟内记录的交易计算股价(可配置) 使用所有股票价格的几何平均值计算 GBCE 全股票指数 要求 Java 8 Maven 3 设计 该应用程序是分层结构的,即: 控制器负责处理请求并与层服务通信以提供响应。 这里将内部域转换为 DTO,以消除 API 和内部域之间的耦合。 一个服务负责执行业务逻辑,这里我们知道如何计算股票价格和 GBCE 指数。 域对象表示模型(股票和贸易) 存储库抽象了底层数据存储。 就示例而言,底层数据存储是本地哈希集。 代码结构 该应用程序包含主要的应用程序源代码和单元测试。 集成测试模块包含在 Web 服务级别进行的端到端测试。 建造 project$ mvn clean install 跑步 project$ cd application project$ mvn spring-boot:run 出于验证目的,您现在可以访问相应

文件下载

资源详情

[{"title":"( 52 个子文件 46KB ) 股票指标源码java-stocks-api:简单股票SpringBoot应用程序","children":[{"title":"stocks-api-master","children":[{"title":".gitignore <span style='color:#111;'> 24B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 8.44KB </span>","children":null,"spread":false},{"title":"integration-tests","children":[{"title":"pom.xml <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hugopicado","children":[{"title":"stocks","children":[{"title":"StocksApplicationTest.java <span style='color:#111;'> 5.83KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"application","children":[{"title":"pom.xml <span style='color:#111;'> 1.89KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"hugopicado","children":[{"title":"stocks","children":[{"title":"repository","children":[{"title":"LocalTradeRepositoryTest.java <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false},{"title":"LocalStockRepositoryTest.java <span style='color:#111;'> 3.13KB </span>","children":null,"spread":false}],"spread":true},{"title":"domain","children":[{"title":"TradeTest.java <span style='color:#111;'> 986B </span>","children":null,"spread":false},{"title":"StockTest.java <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"makers","children":[{"title":"TradeMaker.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"StockDtoMaker.java <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"StockMaker.java <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"TradeDtoMaker.java <span style='color:#111;'> 1000B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"TradeControllerTest.java <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"StockControllerTest.java <span style='color:#111;'> 6.75KB </span>","children":null,"spread":false},{"title":"converter","children":[{"title":"StockDtoConverterTest.java <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"StockConverterTest.java <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"TradeDtoConverterTest.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"spec","children":[{"title":"TradeSpecificationTest.java <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"StockSpecificationTest.java <span style='color:#111;'> 800B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"TradeServiceImplTest.java <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"StockServiceImplTest.java <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"log4j.xml <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"application.properties <span style='color:#111;'> 44B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"hugopicado","children":[{"title":"stocks","children":[{"title":"repository","children":[{"title":"LocalTradeRepository.java <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"GenericRepository.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"LocalStockRepository.java <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"LocalRepository.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"StocksApplication.java <span style='color:#111;'> 429B </span>","children":null,"spread":false},{"title":"domain","children":[{"title":"Stock.java <span style='color:#111;'> 3.19KB </span>","children":null,"spread":false},{"title":"TradeIndicator.java <span style='color:#111;'> 144B </span>","children":null,"spread":false},{"title":"Trade.java <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"StockType.java <span style='color:#111;'> 142B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"StockController.java <span style='color:#111;'> 3.95KB </span>","children":null,"spread":false},{"title":"TradeController.java <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"api","children":[{"title":"AllSharesIndexDto.java <span style='color:#111;'> 308B </span>","children":null,"spread":false},{"title":"PERatioDto.java <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"StockPriceDto.java <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":"DividendYieldDto.java <span style='color:#111;'> 469B </span>","children":null,"spread":false},{"title":"TradeDto.java <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"StockDto.java <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"converter","children":[{"title":"TradeDtoConverter.java <span style='color:#111;'> 949B </span>","children":null,"spread":false},{"title":"StockDtoConverter.java <span style='color:#111;'> 929B </span>","children":null,"spread":false},{"title":"StockConverter.java <span style='color:#111;'> 845B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"spec","children":[{"title":"StockSpecification.java <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"TradeSpecification.java <span style='color:#111;'> 705B </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"StockService.java <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"TradeServiceImpl.java <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"TradeService.java <span style='color:#111;'> 368B </span>","children":null,"spread":false},{"title":"StockServiceImpl.java <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false},{"title":"ServiceException.java <span style='color:#111;'> 240B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明