moneyice / hope2 Goto Github PK
View Code? Open in Web Editor NEWa opensource financial data calculation tools
License: Apache License 2.0
a opensource financial data calculation tools
License: Apache License 2.0
每天10支推荐股票
需求:动态配置手机端展示的 report 种类。当后端有新的数据报告类型时,不需要发布APP,就可以在APP内展示新的数据报告。
接口要求:
payload:[
{
"name":String, // 报告名称
"router":[BackTracking|ReportDetail], // 跳转页面,默认使用ReportDetail
"url":String,// 报告详情数据接口地址。
}
]
占位符:
$START_DATE 开始日期
$HOST 服务器域名
例子:
[
{
"name": "昨日重现(算法收益回溯)",
"router": "BackTracking",
"url": "$HOST/backtracking/$STOCK_NUM?startDate=$START_DATE"
},
{
"name": "Demark(优选股票)",
"router": "ReportDetail",
"url": "$HOST/demark?days2Now=200"
},
{
"name": "DeMark",
"router": "ReportDetail",
"url": "$HOST/analysis/Demark/daily"
},
{
"name": "短期放量",
"router": "ReportDetail",
"url": "$HOST/analysis/SuddentHighVolume/daily"
},
{
"name": "短期放量简化版",
"router": "ReportDetail",
"url": "$HOST/analysis/SuddentHighVolumeLite/daily"
},
{
"name": "短期涨",
"router": "ReportDetail",
"url": "$HOST/analysis/SuddentIncrease/daily"
},
{
"name": "短期缩量",
"router": "ReportDetail",
"url": "$HOST/analysis/SuddentLowVolume/daily"
},
{
"name": "昨日重现",
"router": "ReportDetail",
"url": "$HOST/analysis/YesterdayOnceMore/daily"
},
{"name": "新股", "router": "ReportDetail", "url": "$HOST/analysis/IPO/daily"},
{
"name": "日线MACD上穿",
"router": "ReportDetail",
"url": "$HOST/analysis/MACD/daily"
},
{
"name": "日线MACD上穿高级版",
"router": "ReportDetail",
"url": "$HOST/analysis/MACDAdvance/daily"
},
{
"name": "周线MACD上穿",
"router": "ReportDetail",
"url": "$HOST/analysis/MACD/weekly"
},
{
"name": "月线MACD上穿",
"router": "ReportDetail",
"url": "$HOST/analysis/MACD/monthly"
},
]
问题:
/etf
接口回来的数据结构与 /analysis/Demark/daily
结构不一致,导致前端需要针对etf 进行定制适配。
预期结果:
所有分析结果保持一致的返回数据格式。例如:
{
description: "Demark 指标 1、Buy-Setup:买入结构的条件是连续9T或以上的收盘价低于先前第4个T的收盘价,视为一个完整的买入结构。(注:这里的限定条件是“连续”9T或以上,期间不能中断)2、Buy-Countdown:每当某个收盘价低于先前第2个T的最低价时计数增加1,计数可以不连续,当计数增加到13个交易日意味着卖盘动能已经耗尽,往往是下跌趋势的反转点。(注:这里的限定条件是累计13个T,不要求是“连续”的,期间可以中断) ",
generateTime: "2021-01-16T12:10:32.744",
resultList: [ ]
}
-DeMark算法(比特币)
-DeMark算法(石油)
-DeMark算法(白银)
应使用 ReportDetail 路由
Error creating bean with name 'fundsController': Unsatisfied dependency expressed through field 'fundProfileMapDB'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'fundProfileMapDB' defined in class path resource [com/qianyitian/hope2/stock/config/MapdbConfig.class]: Unsatisfied dependency expressed through method 'fundProfileMapDB' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mapdb' defined in class path resource [com/qianyitian/hope2/stock/config/MapdbConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.mapdb.DB]: Factory method 'mapdb' threw exception; nested exception is org.mapdb.DBException$VolumeIOError
现在打开是个地址,需要数据接口给手机端使用。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.