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 Nov 1, 2024
1 parent 1ca0f7f commit c846545
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,20241101,3272.0142,3275.5768,3305.3181,3258.7346,3279.8244,-7.8102,-0.2381,852055320.0,878112793.9
000001.SH,20241031,3279.8244,3267.975,3295.7421,3252.3899,3266.2378,13.5866,0.416,784649094.0,864970969.0
000001.SH,20241030,3266.2378,3273.6421,3291.6795,3244.8063,3286.407,-20.1692,-0.6137,669018090.0,730619786.7
000001.SH,20241029,3286.407,3328.0885,3340.4584,3284.2108,3322.1975,-35.7905,-1.0773,725326154.0,806573822.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,19920114,305.74,304.77,305.74,303.06,303.06,2.68,0.8843,632.0,858.53
000001.SH,19920113,303.06,302.83,303.06,302.0,301.83,1.23,0.4075,725.0,1097.531
000001.SH,19920110,301.83,301.82,301.83,300.62,300.62,1.21,0.4025,1605.0,2629.59
000001.SH,19920109,300.62,300.61,300.62,299.66,299.66,0.96,0.3204,943.0,1244.834
399001.SZ,20241101,10455.5022,10563.8353,10629.8111,10417.9764,10591.218,-135.7158,-1.2814,1184720290.0,1352275455.4
399001.SZ,20241031,10591.218,10535.4143,10693.8423,10458.8476,10530.8489,60.3691,0.5733,1103094719.0,1352352747.3
399001.SZ,20241030,10530.8489,10488.2262,10596.2225,10426.7437,10543.3283,-12.4794,-0.1184,931733214.0,1116035280.3
399001.SZ,20241029,10543.3283,10706.0172,10729.5687,10536.8066,10685.8902,-142.5619,-1.3341,1033067513.0,1255535897.0
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,19911219,887.33,891.27,891.91,882.11,891.0,-3.67,-0.4119,12690.0,15857.59
399001.SZ,19911218,891.0,890.22,894.9,881.07,890.63,0.37,0.0415,12086.0,15414.52
399001.SZ,19911217,890.63,900.13,903.23,885.23,898.15,-7.52,-0.8373,13145.0,15816.36
399001.SZ,19911216,898.15,890.01,902.9,882.88,890.76,7.39,0.8296,17049.0,20401.225
000016.SH,20241101,2651.5349,2629.0433,2674.2511,2629.0433,2633.117,18.4179,0.6995,60844392.0,112656093.158
000016.SH,20241031,2633.117,2637.2061,2654.6458,2613.2514,2634.7375,-1.6205,-0.0615,54529623.0,119295772.01
000016.SH,20241030,2634.7375,2658.2589,2674.3699,2624.0008,2667.9385,-33.201,-1.2444,44450688.0,98548356.583
000016.SH,20241029,2667.9385,2689.9168,2712.2827,2665.4245,2686.2894,-18.3509,-0.6831,50084286.0,112173896.896
Expand Down Expand Up @@ -21057,6 +21058,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,20241101,3890.0203,3882.4579,3933.2204,3879.9588,3891.0396,-1.0193,-0.0262,307986481.0,476472952.028
000300.SH,20241031,3891.0396,3888.4229,3923.8997,3859.1079,3889.4487,1.5909,0.0409,300636718.0,515533818.945
000300.SH,20241030,3889.4487,3904.1595,3926.0581,3864.3051,3924.649,-35.2003,-0.8969,219436626.0,385010582.233
000300.SH,20241029,3924.649,3970.008,3991.3091,3921.5795,3964.1569,-39.5079,-0.9966,217293984.0,429625020.405
Expand Down Expand Up @@ -25872,6 +25874,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,20241101,5831.8217,5893.3192,5934.2031,5795.0805,5901.2904,-69.4687,-1.1772,369840641.0,429257467.07
000905.SH,20241031,5901.2904,5839.9766,5935.1827,5812.0324,5837.9338,63.3566,1.0853,313549202.0,377454102.585
000905.SH,20241030,5837.9338,5793.8326,5869.1113,5777.43,5812.5286,25.4052,0.4371,252021275.0,315956554.496
000905.SH,20241029,5812.5286,5903.3065,5917.2149,5807.29,5883.7203,-71.1917,-1.21,275371143.0,332481504.887
Expand Down Expand Up @@ -30687,6 +30690,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,20241101,5930.2319,6100.7899,6125.4077,5912.5322,6116.6632,-186.4313,-3.0479,409338276.0,511368123.627
000852.SH,20241031,6116.6632,6041.0129,6161.5551,6004.7132,6019.3472,97.316,1.6167,386119485.0,507595177.939
000852.SH,20241030,6019.3472,5960.7916,6043.5869,5945.6752,5983.8364,35.5108,0.5934,324380186.0,416947148.542
000852.SH,20241029,5983.8364,6106.1943,6113.6381,5982.5264,6082.0877,-98.2513,-1.6154,369325299.0,475114148.306
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,20241101,TS2412.CFX
TS.CFX,20241031,TS2412.CFX
TS.CFX,20241030,TS2412.CFX
TS.CFX,20241029,TS2412.CFX
Expand Down Expand Up @@ -1502,6 +1503,7 @@ TS.CFX,20180822,TS1812.CFX
TS.CFX,20180821,TS1812.CFX
TS.CFX,20180820,TS1812.CFX
TS.CFX,20180817,TS1812.CFX
TF.CFX,20241101,TF2412.CFX
TF.CFX,20241031,TF2412.CFX
TF.CFX,20241030,TF2412.CFX
TF.CFX,20241029,TF2412.CFX
Expand Down Expand Up @@ -3890,6 +3892,7 @@ TF.CFX,20150108,TF1503.CFX
TF.CFX,20150107,TF1503.CFX
TF.CFX,20150106,TF1503.CFX
TF.CFX,20150105,TF1503.CFX
T.CFX,20241101,T2412.CFX
T.CFX,20241031,T2412.CFX
T.CFX,20241030,T2412.CFX
T.CFX,20241029,T2412.CFX
Expand Down Expand Up @@ -6229,6 +6232,7 @@ T.CFX,20150325,T1509.CFX
T.CFX,20150324,T1509.CFX
T.CFX,20150323,T1509.CFX
T.CFX,20150320,T1509.CFX
TL.CFX,20241101,T2412.CFX
TL.CFX,20241031,T2412.CFX
TL.CFX,20241030,T2412.CFX
TL.CFX,20241029,T2412.CFX
Expand Down
1 change: 1 addition & 0 deletions data/yield.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4672,3 +4672,4 @@ workTime,threeMonth,sixMonth,oneYear,twoYear,threeYear,fiveYear,sevenYear,tenYea
2024-10-29,1.43,1.47,1.44,1.49,1.62,1.83,2.05,2.16,,,2.37,中债国债收益率曲线
2024-10-30,1.43,1.45,1.45,1.47,1.61,1.82,2.05,2.16,,,2.36,中债国债收益率曲线
2024-10-31,1.41,1.43,1.43,1.45,1.58,1.79,2.03,2.15,,,2.34,中债国债收益率曲线
2024-11-01,1.40,1.41,1.41,1.43,1.56,1.77,2.02,2.14,,,2.32,中债国债收益率曲线

0 comments on commit c846545

Please sign in to comment.