1 Star 0 Fork 0

Quantfree/cb_research

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
TimeGPT_Analyze.sql 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
realamd 提交于 2024-07-20 19:09 . update
drop table if exists tmp_1min_code_day;
select date(trademin) as tradeday, unique_id,
min(diff_ratio) as min_diff_ratio,
max(diff_ratio) as max_diff_ratio,
avg(diff_ratio) as avg_diff_ratio
into tmp_1min_code_day
from cb_data_1min_fcst_cmp
group by unique_id, date(trademin)
order by unique_id,tradeday;
drop table if exists tmp_5min_code_day;
select date(trademin) as tradeday, unique_id,
min(diff_ratio) as min_diff_ratio,
max(diff_ratio) as max_diff_ratio,
avg(diff_ratio) as avg_diff_ratio
into tmp_5min_code_day
from cb_data_5min_fcst_cmp
group by unique_id, date(trademin)
order by unique_id,tradeday;
select unique_id, min(diff_ratio), max(diff_ratio), avg(diff_ratio)
from cb_data_5min_fcst_cmp
group by unique_id order by unique_id;
select date(trademin) as tradeday, avg(diff_ratio)
from cb_data_5min_fcst_cmp
group by date(trademin) order by date(trademin);
select * from tmp_1min_code_day;
select '1min' as quanlity, min(tradeday),max(tradeday), count(distinct unique_id) from tmp_1min_code_day
union
select '5min' as quanlity, min(tradeday),max(tradeday), count(distinct unique_id) from tmp_5min_code_day;
select
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/qihuayaocao/cb_research.git
git@gitee.com:qihuayaocao/cb_research.git
qihuayaocao
cb_research
cb_research
master

搜索帮助