Skip to content

Commit

Permalink
daily update tushare data
Browse files Browse the repository at this point in the history
  • Loading branch information
afan committed Aug 22, 2024
1 parent e13bbe2 commit 176181f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions data/stock_index.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
000001.SH,20240822,2848.7718,2856.2001,2861.6071,2845.5024,2856.5839,-7.8121,-0.2735,245399415.0,230124077.2
000001.SH,20240821,2856.5839,2858.9388,2863.891,2848.1509,2866.661,-10.0771,-0.3515,229200027.0,209909187.8
000001.SH,20240820,2866.661,2895.5506,2896.5194,2855.3293,2893.6738,-27.0128,-0.9335,263658002.0,237307804.0
000001.SH,20240819,2893.6738,2877.9542,2905.1547,2877.7709,2879.4298,14.244,0.4947,261687730.0,242994885.3
Expand Down Expand Up @@ -7998,7 +7999,7 @@ ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
000001.SH,19911112,235.8,235.75,235.8,233.55,233.55,2.25,0.9634,895.0,914.377
000001.SH,19911111,233.55,233.48,233.55,231.22,231.22,2.33,1.0077,2474.0,2130.826
000001.SH,19911108,231.22,230.99,231.22,228.93,228.93,2.29,1.0003,14406.0,11039.106
000001.SH,19911107,228.93,228.93,228.93,226.88,226.88,2.05,0.9036,4833.0,4085.072
399001.SZ,20240822,8162.175,8234.2801,8247.9471,8151.6342,8229.7503,-67.5753,-0.8211,361758836.0,319029043.1
399001.SZ,20240821,8229.7503,8221.35,8297.0977,8213.093,8252.8679,-23.1176,-0.2801,344005680.0,299645618.3
399001.SZ,20240820,8252.8679,8363.8678,8367.3828,8233.07,8356.8979,-104.03,-1.2448,384352365.0,320474631.2
399001.SZ,20240819,8356.8979,8341.8259,8437.8838,8341.1009,8349.8703,7.0276,0.0842,373962413.0,327622468.2
Expand Down Expand Up @@ -15998,7 +15999,7 @@ ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
399001.SZ,19911017,672.13,646.93,672.98,642.69,648.78,23.35,3.5991,36589.0,32638.84
399001.SZ,19911016,648.78,659.2,659.5,632.3,656.81,-8.03,-1.2226,27484.0,26230.38
399001.SZ,19911015,656.81,692.89,696.09,646.55,692.0,-35.19,-5.0853,28066.0,25372.145
399001.SZ,19911014,692.0,691.93,709.01,683.86,687.2,4.8,0.6985,46443.0,44652.99
000016.SH,20240822,2341.1509,2340.1542,2344.9926,2332.3636,2339.072,2.0789,0.0889,31112912.0,44159381.961
000016.SH,20240821,2339.072,2341.8119,2345.9738,2324.7075,2346.6379,-7.5659,-0.3224,26550899.0,37036690.61
000016.SH,20240820,2346.6379,2361.181,2361.2992,2337.5071,2357.0309,-10.393,-0.4409,29898108.0,40474326.311
000016.SH,20240819,2357.0309,2345.6447,2367.4051,2345.1153,2345.0481,11.9828,0.511,30885150.0,41304620.244
Expand Down Expand Up @@ -21013,6 +21014,7 @@ ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
000016.SH,20040106,1075.656,1059.141,1086.694,1059.095,1060.801,14.855,1.4004,16991334.0,12416997.345
000016.SH,20040105,1060.801,1008.279,1060.898,1008.279,1011.347,49.454,4.8899,14468180.0,10706463.941
000016.SH,20040102,1011.347,996.996,1021.568,993.892,1000.0,11.347,1.1347,8064653.0,5742758.967
000300.SH,20240822,3313.1357,3322.8723,3327.6962,3305.2453,3321.635,-8.4993,-0.2559,100366504.0,147702791.561
000300.SH,20240821,3321.635,3322.9134,3339.443,3307.9917,3332.7034,-11.0684,-0.3321,89954751.0,130005992.563
000300.SH,20240820,3332.7034,3361.6394,3362.3338,3321.6397,3356.9677,-24.2643,-0.7228,101668331.0,137910585.092
000300.SH,20240819,3356.9677,3344.2614,3375.9621,3343.7116,3345.634,11.3337,0.3388,105571110.0,143421671.337
Expand Down Expand Up @@ -25784,6 +25786,7 @@ ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
000300.SH,20050106,983.174,993.331,993.788,980.33,992.564,-9.39,-0.946,6288029.05,3921015.42
000300.SH,20050105,992.564,981.577,997.323,979.877,982.794,9.77,0.9941,7119108.98,4529208.214
000300.SH,20050104,982.794,994.769,994.769,980.658,1000.0,-17.206,-1.7206,7412868.94,4431977.418
000905.SH,20240822,4533.3695,4589.4956,4595.0496,4526.2499,4587.1218,-53.7523,-1.1718,85856868.0,78202476.719
000905.SH,20240821,4587.1218,4589.0885,4610.8666,4582.2653,4602.0095,-14.8877,-0.3235,83526910.0,74809964.819
000905.SH,20240820,4602.0095,4684.2948,4686.3633,4590.3913,4682.9628,-80.9533,-1.7287,91846146.0,81351685.185
000905.SH,20240819,4682.9628,4666.3308,4729.8742,4666.2577,4670.3789,12.5839,0.2694,87136867.0,80742361.426
Expand Down Expand Up @@ -30555,6 +30558,7 @@ ts_code,trade_date,close,open,high,low,pre_close,change,pct_chg,vol,amount
000905.SH,20050106,994.595,1003.49,1003.49,990.792,1003.633,-9.038,-0.9005,2933905.59,1629216.031
000905.SH,20050105,1003.633,986.57,1008.855,985.677,986.927,16.706,1.6927,3486101.13,1919861.791
000905.SH,20050104,986.927,996.682,996.682,984.795,1000.0,-13.073,-1.3073,2323762.03,1329187.122
000852.SH,20240822,4491.8392,4549.2996,4562.9769,4484.559,4548.2644,-56.4252,-1.2406,113469330.0,97994054.398
000852.SH,20240821,4548.2644,4564.3783,4590.2004,4543.8807,4579.3041,-31.0397,-0.6778,108164315.0,92275965.567
000852.SH,20240820,4579.3041,4663.7757,4665.6342,4563.8552,4663.6121,-84.308,-1.8078,129979655.0,107871967.95
000852.SH,20240819,4663.6121,4651.2971,4714.0588,4644.6008,4655.6509,7.9612,0.171,119942244.0,104904645.646
Expand Down
4 changes: 4 additions & 0 deletions data/tf_continuous.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ts_code,trade_date,mapping_ts_code
TS.CFX,20240822,TS2412.CFX
TS.CFX,20240821,TS2412.CFX
TS.CFX,20240820,TS2409.CFX
TS.CFX,20240819,TS2409.CFX
Expand Down Expand Up @@ -1458,6 +1459,7 @@ TS.CFX,20180822,TS1812.CFX
TS.CFX,20180821,TS1812.CFX
TS.CFX,20180820,TS1812.CFX
TS.CFX,20180817,TS1812.CFX
TF.CFX,20240822,TF2412.CFX
TF.CFX,20240821,TF2412.CFX
TF.CFX,20240820,TF2412.CFX
TF.CFX,20240819,TF2409.CFX
Expand Down Expand Up @@ -3802,6 +3804,7 @@ TF.CFX,20150108,TF1503.CFX
TF.CFX,20150107,TF1503.CFX
TF.CFX,20150106,TF1503.CFX
TF.CFX,20150105,TF1503.CFX
T.CFX,20240822,T2412.CFX
T.CFX,20240821,T2412.CFX
T.CFX,20240820,T2412.CFX
T.CFX,20240819,T2409.CFX
Expand Down Expand Up @@ -6097,6 +6100,7 @@ T.CFX,20150325,T1509.CFX
T.CFX,20150324,T1509.CFX
T.CFX,20150323,T1509.CFX
T.CFX,20150320,T1509.CFX
TL.CFX,20240822,T2409.CFX
TL.CFX,20240821,T2409.CFX
TL.CFX,20240820,T2409.CFX
TL.CFX,20240819,T2409.CFX
Expand Down
3 changes: 2 additions & 1 deletion data/yield.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4624,4 +4624,5 @@ workTime,threeMonth,sixMonth,oneYear,twoYear,threeYear,fiveYear,sevenYear,tenYea
2024-08-16,1.48,1.6,1.53,1.67,1.78,1.89,2.1,2.2,,,2.39,中债国债收益率曲线
2024-08-19,1.51,1.6,1.54,1.67,1.77,1.88,2.09,2.18,,,2.37,中债国债收益率曲线
2024-08-20,1.5,1.59,1.55,1.67,1.78,1.89,2.09,2.17,,,2.36,中债国债收益率曲线
2024-08-21,1.54,1.60,1.54,1.65,1.77,1.88,2.08,2.17,,,2.36,中债国债收益率曲线
2024-08-21,1.54,1.6,1.54,1.65,1.77,1.88,2.08,2.17,,,2.36,中债国债收益率曲线
2024-08-22,1.53,1.58,1.52,1.63,1.73,1.87,2.06,2.16,,,2.35,中债国债收益率曲线

0 comments on commit 176181f

Please sign in to comment.