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 Jan 15, 2025
1 parent 370c1b9 commit 1859b31
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/global_index.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ts_code,trade_date,open,close,high,low,pre_close,change,pct_chg,swing,vol
SPX,20250114,5859.27,5842.91,5871.92,5805.42,5836.22,6.69,0.11,1.14,2434957.0
SPX,20250113,5782.02,5836.22,5838.61,5773.31,5827.04,9.18,0.16,1.12,2721451.0
SPX,20250110,5890.35,5827.04,5890.35,5807.78,5918.25,-91.21,-1.54,1.4,3055778.0
SPX,20250108,5910.66,5918.25,5927.89,5874.78,5909.03,9.22,0.16,0.9,2502210.0
Expand Down Expand Up @@ -3998,7 +3999,7 @@ SPX,20090226,775.23,752.83,779.42,751.75,764.9,-12.07,-1.58,3.62,
SPX,20090225,767.63,764.9,780.12,752.89,773.14,-8.24,-1.07,3.52,
SPX,20090224,746.51,773.14,775.49,744.69,743.33,29.82,4.01,4.14,
SPX,20090223,770.03,743.33,777.85,742.37,770.05,-26.72,-3.47,4.61,
SPX,20090220,768.2,770.05,778.69,754.25,778.94,-8.9,-1.14,3.14,
IXIC,20250113,,19088.1,19099.97,18831.91,19161.63,-73.53,-0.38,1.4,
IXIC,20250110,,19161.63,19315.11,19018.75,19478.88,-317.25,-1.63,1.52,
IXIC,20250108,,19478.88,19544.5,19308.54,19489.68,-10.8,-0.06,1.21,
IXIC,20250107,,19489.68,19940.21,19421.02,19864.98,-375.3,-1.89,2.61,
Expand Down Expand Up @@ -7998,4 +7999,3 @@ IXIC,20090225,1428.76,1425.43,1453.66,1404.54,1441.83,-16.4,-1.14,3.41,
IXIC,20090224,1399.37,1441.83,1445.07,1395.11,1387.72,54.11,3.9,3.6,
IXIC,20090223,1452.58,1387.72,1452.58,1386.68,1441.23,-53.51,-3.71,4.57,
IXIC,20090220,1427.03,1441.23,1454.39,1416.96,1442.82,-1.59,-0.11,2.59,
IXIC,20090219,1478.55,1442.82,1485.14,1442.53,1467.97,-25.15,-1.71,2.9,
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,20250115,3227.1167,3234.7152,3245.9042,3222.2359,3240.94,-13.8233,-0.4265,404723199.0,466216166.9
000001.SH,20250114,3240.94,3165.1613,3245.2196,3159.432,3160.755,80.185,2.5369,469212704.0,538983836.0
000001.SH,20250113,3160.755,3148.8259,3172.7,3140.9775,3168.5238,-7.7688,-0.2452,372742023.0,411773991.8
000001.SH,20250110,3168.5238,3211.7068,3220.1073,3168.5238,3211.3933,-42.8695,-1.3349,403663348.0,465939368.0
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,19920331,381.24,381.87,382.06,381.24,381.44,-0.2,-0.0524,17391.0,53853.18
000001.SH,19920330,381.44,381.54,381.56,380.76,380.77,0.67,0.176,12655.0,40359.446
000001.SH,19920327,380.77,379.65,380.79,379.13,379.13,1.64,0.4326,1892.0,5469.466
000001.SH,19920326,379.13,379.29,379.34,377.64,378.12,1.01,0.2671,10225.0,24177.846
399001.SZ,20250115,10060.1297,10139.7803,10147.2632,10038.2979,10165.1692,-105.0395,-1.0333,626573129.0,722613427.0
399001.SZ,20250114,10165.1692,9822.349,10178.6709,9788.761,9796.1764,368.9928,3.7667,690716454.0,811716723.4
399001.SZ,20250113,9796.1764,9697.4484,9866.3609,9693.7998,9795.9438,0.2326,0.0024,504800435.0,554603230.7
399001.SZ,20250110,9795.9438,9957.8343,10004.0607,9795.9438,9976.0038,-180.06,-1.8049,616360985.0,682335422.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,19920310,1000.68,1002.69,1008.17,989.67,1002.25,-1.57,-0.1566,26088.0,29059.115
399001.SZ,19920309,1002.25,1007.66,1016.6,993.41,1005.55,-3.3,-0.3282,21283.0,32228.65
399001.SZ,19920306,1005.55,1009.13,1016.62,999.16,1010.38,-4.83,-0.478,16776.0,29442.095
399001.SZ,19920305,1010.38,1004.21,1014.67,1001.11,1003.68,6.7,0.6675,19899.0,25828.055
000016.SH,20250115,2591.5027,2592.3164,2606.0658,2587.4642,2598.8068,-7.3041,-0.2811,41213511.0,82839783.228
000016.SH,20250114,2598.8068,2556.4221,2606.0889,2549.1691,2553.3593,45.4475,1.7799,42688184.0,93365866.186
000016.SH,20250113,2553.3593,2545.3785,2561.2408,2533.3131,2560.2497,-6.8904,-0.2691,39699495.0,74913721.774
000016.SH,20250110,2560.2497,2585.1998,2593.0872,2560.2497,2579.5751,-19.3254,-0.7492,36166878.0,77578645.821
Expand Down Expand Up @@ -21109,6 +21110,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,20250115,3796.026,3810.0353,3816.8284,3790.1655,3820.5395,-24.5135,-0.6416,141475520.0,278850595.532
000300.SH,20250114,3820.5395,3728.5561,3826.6399,3718.8768,3722.513,98.0265,2.6333,170664657.0,345461480.064
000300.SH,20250113,3722.513,3704.4442,3737.8852,3704.1073,3732.4806,-9.9676,-0.2671,136446199.0,247861953.197
000300.SH,20250110,3732.4806,3778.8928,3786.8069,3732.4806,3779.8773,-47.3967,-1.2539,137523171.0,275354209.064
Expand Down Expand Up @@ -25976,6 +25978,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,20250115,5522.459,5559.5785,5569.1895,5509.5757,5572.2722,-49.8132,-0.8939,138393243.0,169060453.013
000905.SH,20250114,5572.2722,5393.763,5582.835,5378.5875,5381.6974,190.5748,3.5412,172142860.0,208083727.936
000905.SH,20250113,5381.6974,5319.7013,5422.0115,5319.2741,5369.2811,12.4163,0.2312,119682937.0,139406540.969
000905.SH,20250110,5369.2811,5449.0014,5496.3833,5369.2811,5456.5863,-87.3052,-1.6,130179553.0,159984103.633
Expand Down Expand Up @@ -30843,6 +30846,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,20250115,5775.5709,5805.898,5815.1483,5755.6247,5811.0545,-35.4836,-0.6106,204290325.0,258108817.511
000852.SH,20250114,5811.0545,5580.8778,5814.7071,5562.1801,5559.4725,251.582,4.5253,235772869.0,291062201.267
000852.SH,20250113,5559.4725,5487.1249,5599.3268,5457.5095,5544.9158,14.5567,0.2625,169309190.0,201644040.965
000852.SH,20250110,5544.9158,5662.7667,5718.2122,5544.9158,5672.7796,-127.8638,-2.254,198014877.0,242988533.223
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,20250115,TS2503.CFX
TS.CFX,20250114,TS2503.CFX
TS.CFX,20250113,TS2503.CFX
TS.CFX,20250110,TS2503.CFX
Expand Down Expand Up @@ -1554,6 +1555,7 @@ TS.CFX,20180822,TS1812.CFX
TS.CFX,20180821,TS1812.CFX
TS.CFX,20180820,TS1812.CFX
TS.CFX,20180817,TS1812.CFX
TF.CFX,20250115,TF2503.CFX
TF.CFX,20250114,TF2503.CFX
TF.CFX,20250113,TF2503.CFX
TF.CFX,20250110,TF2503.CFX
Expand Down Expand Up @@ -3994,6 +3996,7 @@ TF.CFX,20150108,TF1503.CFX
TF.CFX,20150107,TF1503.CFX
TF.CFX,20150106,TF1503.CFX
TF.CFX,20150105,TF1503.CFX
T.CFX,20250115,T2503.CFX
T.CFX,20250114,T2503.CFX
T.CFX,20250113,T2503.CFX
T.CFX,20250110,T2503.CFX
Expand Down Expand Up @@ -6385,6 +6388,7 @@ T.CFX,20150325,T1509.CFX
T.CFX,20150324,T1509.CFX
T.CFX,20150323,T1509.CFX
T.CFX,20150320,T1509.CFX
TL.CFX,20250115,T2503.CFX
TL.CFX,20250114,T2503.CFX
TL.CFX,20250113,T2503.CFX
TL.CFX,20250110,T2503.CFX
Expand Down
3 changes: 2 additions & 1 deletion data/yield.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4723,4 +4723,5 @@ workTime,threeMonth,sixMonth,oneYear,twoYear,threeYear,fiveYear,sevenYear,tenYea
2025-01-09,1.19,1.2,1.17,1.17,1.24,1.45,1.53,1.64,,,1.89,中债国债收益率曲线
2025-01-10,1.2,1.2,1.2,1.21,1.26,1.43,1.55,1.63,,,1.88,中债国债收益率曲线
2025-01-13,1.41,1.41,1.24,1.25,1.3,1.48,1.57,1.66,,,1.91,中债国债收益率曲线
2025-01-14,1.40,1.39,1.22,1.22,1.29,1.42,1.55,1.64,,,1.87,中债国债收益率曲线
2025-01-14,1.4,1.39,1.22,1.22,1.29,1.42,1.55,1.64,,,1.87,中债国债收益率曲线
2025-01-15,1.40,1.26,1.21,1.21,1.26,1.42,1.55,1.63,,,1.86,中债国债收益率曲线

0 comments on commit 1859b31

Please sign in to comment.