补充 1501-1512 合约数据

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
vipg
2026-07-18 16:14:11 +08:00
parent fbb036bf56
commit 95c8c7307b
13 changed files with 2944 additions and 1 deletions
+2 -1
View File
@@ -172,8 +172,9 @@ def sync_csv_to_db():
if __name__ == "__main__":
# 活跃合约
active = get_active_contracts("CZCE", "FG")
# 已退市合约:FG1601-FG1612、FG1701-FG1712、FG1801-FG1812、FG1901-FG1912、FG2001-FG2012、FG2101-FG2112、FG2201-FG2212、FG2301-FG2312、FG2401-FG2412、FG2501-FG2512、FG2601-FG2607
# 已退市合约:FG1501-FG1512、FG1601-FG1612、FG1701-FG1712、...、FG2601-FG2607
extra_codes = {f"FG{suffix}.ZCE" for suffix in
[f"15{i:02d}" for i in range(1, 13)] +
[f"16{i:02d}" for i in range(1, 13)] +
[f"17{i:02d}" for i in range(1, 13)] +
[f"18{i:02d}" for i in range(1, 13)] +