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 Dec 9, 2024
1 parent 509bfbe commit 62168ec
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,20241209,3402.5343,3402.6288,3426.6451,3385.9588,3404.0764,-1.5421,-0.0453,694905205.0,649443191.3
000001.SH,20241206,3404.0764,3370.9405,3418.2608,3364.2061,3368.8553,35.2211,1.0455,698186572.0,685981058.1
000001.SH,20241205,3368.8553,3353.0573,3377.055,3353.0573,3364.6498,4.2055,0.125,543885746.0,565551128.3
000001.SH,20241204,3364.6498,3376.5715,3388.0241,3352.9434,3378.8063,-14.1565,-0.419,621028862.0,653467546.7
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,19920224,360.5,361.11,361.62,359.59,359.59,0.91,0.2531,30157.0,18038.445
000001.SH,19920221,359.59,358.91,359.93,347.99,347.99,11.6,3.3334,11582.0,19254.248
000001.SH,19920220,347.99,345.22,348.01,342.41,342.41,5.58,1.6296,10341.0,20004.752
000001.SH,19920219,342.41,340.5,342.41,337.11,337.11,5.3,1.5722,9401.0,16501.609
399001.SZ,20241209,10731.6589,10780.9842,10821.5056,10668.331,10791.339,-59.6801,-0.553,955155947.0,985064287.4
399001.SZ,20241206,10791.339,10642.8921,10860.2458,10618.7608,10634.489,156.85,1.4749,1029340329.0,1102866354.6
399001.SZ,20241205,10634.489,10565.0274,10674.7702,10565.0274,10604.0121,30.4769,0.2874,844663661.0,933068980.4
399001.SZ,20241204,10604.0121,10700.0579,10717.5592,10556.6013,10713.5785,-109.5664,-1.0227,930816502.0,1009658111.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,19920127,955.26,960.35,963.67,951.1,962.69,-7.43,-0.7718,19608.0,26887.03
399001.SZ,19920124,962.69,953.72,967.16,950.09,952.95,9.74,1.0221,14284.0,20658.9
399001.SZ,19920123,952.95,947.72,956.01,942.85,946.26,6.69,0.707,13793.0,17688.565
399001.SZ,19920122,946.26,947.9,953.23,938.88,949.69,-3.43,-0.3612,15505.0,19712.085
000016.SH,20241209,2667.5924,2666.2892,2686.5153,2658.4311,2665.4281,2.1643,0.0812,45926353.0,79459146.106
000016.SH,20241206,2665.4281,2636.6066,2682.6891,2636.6066,2635.5615,29.8666,1.1332,43894491.0,85427061.368
000016.SH,20241205,2635.5615,2637.627,2647.9841,2629.6309,2648.7554,-13.1939,-0.4981,33676521.0,60315067.352
000016.SH,20241204,2648.7554,2651.785,2660.8018,2638.113,2652.8982,-4.1428,-0.1562,48088171.0,84381105.671
Expand Down Expand Up @@ -21083,6 +21084,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,20241209,3966.5708,3970.6628,3995.5116,3948.4206,3973.1405,-6.5697,-0.1654,175959958.0,308227216.703
000300.SH,20241206,3973.1405,3923.8954,3995.1168,3923.8954,3921.5881,51.5524,1.3146,192057907.0,351751735.425
000300.SH,20241205,3921.5881,3916.5638,3936.3358,3910.0834,3930.5568,-8.9687,-0.2282,138534038.0,257716297.997
000300.SH,20241204,3930.5568,3948.13,3957.365,3917.7467,3951.8912,-21.3344,-0.5399,174626318.0,312040419.082
Expand Down Expand Up @@ -25924,6 +25926,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,20241209,5947.1089,5983.3343,6004.2343,5911.3619,5979.197,-32.0881,-0.5367,284462209.0,237294662.392
000905.SH,20241206,5979.197,5903.4988,6011.7691,5877.0434,5901.9859,77.2111,1.3082,265329536.0,255600553.068
000905.SH,20241205,5901.9859,5855.7419,5923.6243,5853.527,5879.2695,22.7164,0.3864,198542236.0,212251881.677
000905.SH,20241204,5879.2695,5929.4763,5940.8545,5850.9094,5932.1207,-52.8512,-0.8909,215991634.0,234212942.759
Expand Down Expand Up @@ -30765,6 +30768,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,20241209,6303.2721,6346.5948,6371.098,6257.5422,6349.6211,-46.349,-0.7299,293773287.0,336347274.096
000852.SH,20241206,6349.6211,6291.3019,6384.6567,6229.2124,6285.6007,64.0204,1.0185,349030963.0,392887681.462
000852.SH,20241205,6285.6007,6186.1227,6302.3554,6186.1227,6204.9448,80.6559,1.2999,288535617.0,340682850.435
000852.SH,20241204,6204.9448,6301.0479,6303.5046,6175.8385,6303.2758,-98.331,-1.56,299202098.0,351416845.598
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,20241209,TS2503.CFX
TS.CFX,20241206,TS2503.CFX
TS.CFX,20241205,TS2503.CFX
TS.CFX,20241204,TS2503.CFX
Expand Down Expand Up @@ -1528,6 +1529,7 @@ TS.CFX,20180822,TS1812.CFX
TS.CFX,20180821,TS1812.CFX
TS.CFX,20180820,TS1812.CFX
TS.CFX,20180817,TS1812.CFX
TF.CFX,20241209,TF2503.CFX
TF.CFX,20241206,TF2503.CFX
TF.CFX,20241205,TF2503.CFX
TF.CFX,20241204,TF2503.CFX
Expand Down Expand Up @@ -3942,6 +3944,7 @@ TF.CFX,20150108,TF1503.CFX
TF.CFX,20150107,TF1503.CFX
TF.CFX,20150106,TF1503.CFX
TF.CFX,20150105,TF1503.CFX
T.CFX,20241209,T2503.CFX
T.CFX,20241206,T2503.CFX
T.CFX,20241205,T2503.CFX
T.CFX,20241204,T2503.CFX
Expand Down Expand Up @@ -6307,6 +6310,7 @@ T.CFX,20150325,T1509.CFX
T.CFX,20150324,T1509.CFX
T.CFX,20150323,T1509.CFX
T.CFX,20150320,T1509.CFX
TL.CFX,20241209,T2412.CFX
TL.CFX,20241206,T2412.CFX
TL.CFX,20241205,T2412.CFX
TL.CFX,20241204,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 @@ -4698,3 +4698,4 @@ workTime,threeMonth,sixMonth,oneYear,twoYear,threeYear,fiveYear,sevenYear,tenYea
2024-12-04,1.35,1.35,1.34,1.3,1.38,1.6,1.82,1.96,,,2.14,中债国债收益率曲线
2024-12-05,1.35,1.36,1.35,1.3,1.37,1.61,1.82,1.95,,,2.14,中债国债收益率曲线
2024-12-06,1.35,1.36,1.35,1.32,1.38,1.61,1.82,1.95,,,2.16,中债国债收益率曲线
2024-12-09,1.35,1.35,1.35,1.32,1.38,1.59,1.79,1.92,,,2.12,中债国债收益率曲线

0 comments on commit 62168ec

Please sign in to comment.