add crawling and fetch em data files.

This commit is contained in:
2024-10-25 08:05:03 +08:00
parent 593c6ce419
commit c8342de5a2
21 changed files with 818 additions and 12922 deletions

View File

@ -2,6 +2,13 @@
UPDATE hs_index SET code = CONCAT('SZ.' , code_inner) WHERE exchange_eng LIKE 'Shenzhen%'
UPDATE hs_index SET code = CONCAT('SH.' , code_inner) WHERE exchange_eng LIKE 'Shanghai%'
-- 沪深300独有代码
SELECT * FROM hs_index hi WHERE code_inner not in (SELECT code_inner from hs_index hi2 WHERE index_code='000510')
-- 上证A510独有代码
SELECT * FROM hs_index hi WHERE code_inner not in (SELECT code_inner from hs_index hi2 WHERE index_code='000300')
-- 共同的代码
SELECT * FROM hs_index hi WHERE index_code='000510' and code_inner in (SELECT code_inner from hs_index hi2 WHERE index_code='000300')
-- 校验使用复权因子计算出的前复权价格,与直接从接口读取的前复权价格的差异
select a.code, a.time_key, a.close, b.qfq_close, a.close - b.qfq_close as diff
from stockdb.sp500_qfq_his_202410 a, stockdb.sp500_ajust_kline_202410 b