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 21, 2024
1 parent c758f3e commit e13bbe2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 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,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
000001.SH,20240816,2879.4298,2877.9403,2888.6753,2873.0601,2877.3579,2.0719,0.072,263653441.0,243608265.4
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,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
000001.SH,19911106,226.88,226.83,226.88,224.65,224.65,2.23,0.9927,2848.0,2188.148
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
399001.SZ,20240816,8349.8703,8377.9486,8408.3853,8339.5761,8370.1229,-20.2526,-0.242,397382324.0,347548660.6
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,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
399001.SZ,19911011,667.99,634.4,676.18,539.87,641.41,26.58,4.144,53232.0,49823.52
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
000016.SH,20240816,2345.0481,2335.0422,2348.1529,2331.0796,2335.9381,9.11,0.39,30481578.0,39617340.954
Expand Down Expand Up @@ -21012,6 +21013,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,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
000300.SH,20240816,3345.634,3342.0346,3356.9071,3335.6239,3341.953,3.681,0.1101,96519083.0,135885323.083
Expand Down Expand Up @@ -25782,6 +25784,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,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
000905.SH,20240816,4670.3789,4703.6042,4708.0187,4662.1132,4698.375,-27.9961,-0.5959,87379580.0,81927269.813
Expand Down Expand Up @@ -30552,6 +30555,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,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
000852.SH,20240816,4655.6509,4696.7179,4703.027,4654.4599,4691.8503,-36.1994,-0.7715,122612541.0,108413620.564
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,20240821,TS2412.CFX
TS.CFX,20240820,TS2409.CFX
TS.CFX,20240819,TS2409.CFX
TS.CFX,20240816,TS2409.CFX
Expand Down Expand Up @@ -1457,6 +1458,7 @@ TS.CFX,20180822,TS1812.CFX
TS.CFX,20180821,TS1812.CFX
TS.CFX,20180820,TS1812.CFX
TS.CFX,20180817,TS1812.CFX
TF.CFX,20240821,TF2412.CFX
TF.CFX,20240820,TF2412.CFX
TF.CFX,20240819,TF2409.CFX
TF.CFX,20240816,TF2409.CFX
Expand Down Expand Up @@ -3800,6 +3802,7 @@ TF.CFX,20150108,TF1503.CFX
TF.CFX,20150107,TF1503.CFX
TF.CFX,20150106,TF1503.CFX
TF.CFX,20150105,TF1503.CFX
T.CFX,20240821,T2412.CFX
T.CFX,20240820,T2412.CFX
T.CFX,20240819,T2409.CFX
T.CFX,20240816,T2409.CFX
Expand Down Expand Up @@ -6094,6 +6097,7 @@ T.CFX,20150325,T1509.CFX
T.CFX,20150324,T1509.CFX
T.CFX,20150323,T1509.CFX
T.CFX,20150320,T1509.CFX
TL.CFX,20240821,T2409.CFX
TL.CFX,20240820,T2409.CFX
TL.CFX,20240819,T2409.CFX
TL.CFX,20240816,T2409.CFX
Expand Down
1 change: 1 addition & 0 deletions data/yield.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4624,3 +4624,4 @@ 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,中债国债收益率曲线

0 comments on commit e13bbe2

Please sign in to comment.