您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 企业财务 > 获取股市历史行情方法
获取股市历史行情方法步骤1:打开Ricequant(请自行百度)步骤2:在“策略研究”建立文件,如“Untitled1.ipynb”,将本文后面命令粘贴即可。以下是示例:步骤3:点击运行,命令执行需要时间。以下是示例:步骤4:导出数据。最终的文件在mypricebig3.csv中,将数据用EXCEL导出即可,多余的数据可以删除。调整日期可以获得其他历史数据。命令解释在:以下是命令————————————————————————————myprice=get_price(['000001.XSHE','000002.XSHE','000004.XSHE','000005.XSHE','000006.XSHE','000007.XSHE','000008.XSHE','000009.XSHE','000010.XSHE','000011.XSHE','000012.XSHE','000014.XSHE','000016.XSHE','000017.XSHE','000018.XSHE','000019.XSHE','000020.XSHE','000021.XSHE','000022.XSHE','000023.XSHE','000025.XSHE','000026.XSHE','000027.XSHE','000028.XSHE','000029.XSHE','000030.XSHE','000031.XSHE','000032.XSHE','000033.XSHE','000034.XSHE','000035.XSHE','000036.XSHE','000037.XSHE','000038.XSHE','000039.XSHE','000040.XSHE','000042.XSHE','000043.XSHE','000045.XSHE','000046.XSHE','000048.XSHE','000049.XSHE','000050.XSHE','000055.XSHE','000056.XSHE','000058.XSHE','000059.XSHE','000060.XSHE','000061.XSHE','000062.XSHE','000063.XSHE','000065.XSHE','000066.XSHE','000068.XSHE','000069.XSHE','000070.XSHE','000078.XSHE','000088.XSHE','000089.XSHE','000090.XSHE','000096.XSHE','000099.XSHE','000100.XSHE','000150.XSHE','000151.XSHE','000153.XSHE','000155.XSHE','000156.XSHE','000157.XSHE','000158.XSHE','000159.XSHE','000166.XSHE','000301.XSHE','000333.XSHE','000338.XSHE','000400.XSHE','000401.XSHE','000402.XSHE','000403.XSHE','000404.XSHE','000407.XSHE','000408.XSHE','000409.XSHE','000410.XSHE','000411.XSHE','000413.XSHE','000415.XSHE','000416.XSHE','000417.XSHE','000418.XSHE','000419.XSHE','000420.XSHE','000421.XSHE','000422.XSHE','000423.XSHE','000425.XSHE','000426.XSHE','000428.XSHE','000429.XSHE','000430.XSHE','000488.XSHE','000498.XSHE','000501.XSHE','000502.XSHE','000503.XSHE','000504.XSHE','000505.XSHE','000506.XSHE','000507.XSHE','000509.XSHE','000510.XSHE','000511.XSHE','000513.XSHE','000514.XSHE','000516.XSHE','000517.XSHE','000518.XSHE','000519.XSHE','000520.XSHE','000521.XSHE','000523.XSHE','000524.XSHE','000525.XSHE','000526.XSHE','000528.XSHE','000529.XSHE','000530.XSHE','000531.XSHE','000532.XSHE','000533.XSHE','000534.XSHE','000536.XSHE','000537.XSHE','000538.XSHE','000539.XSHE','000540.XSHE','000541.XSHE','000543.XSHE','000544.XSHE','000545.XSHE','000546.XSHE','000547.XSHE','000548.XSHE','000550.XSHE','000551.XSHE','000552.XSHE','000553.XSHE','000554.XSHE','000555.XSHE','000557.XSHE','000558.XSHE','000559.XSHE','000560.XSHE','000561.XSHE','000563.XSHE','000564.XSHE','000565.XSHE','000566.XSHE','000567.XSHE','000568.XSHE','000570.XSHE','000571.XSHE','000572.XSHE','000573.XSHE','000576.XSHE','000581.XSHE','000582.XSHE','000584.XSHE','000585.XSHE','000586.XSHE','000587.XSHE','000589.XSHE','000590.XSHE','000591.XSHE','000592.XSHE','000593.XSHE','000595.XSHE','000596.XSHE','000597.XSHE','000598.XSHE','000599.XSHE','000600.XSHE','000601.XSHE','000603.XSHE','000605.XSHE','000606.XSHE','000607.XSHE','000608.XSHE','000609.XSHE','000610.XSHE','000611.XSHE','000612.XSHE','000613.XSHE','000615.XSHE','000616.XSHE','000617.XSHE','000619.XSHE','000620.XSHE','000622.XSHE','000623.XSHE','000625.XSHE','000626.XSHE','000627.XSHE','000628.XSHE','000629.XSHE','000630.XSHE','000631.XSHE','000632.XSHE','000633.XSHE','000635.XSHE','000636.XSHE','000637.XSHE','000638.XSHE','000639.XSHE','000650.XSHE','000651.XSHE','000652.XSHE','000655.XSHE','000656.XSHE','000657.XSHE','000659.XSHE','000661.XSHE','000662.XSHE','000663.XSHE','000665.XSHE','000666.XSHE','000667.XSHE','000668.XSHE','000669.XSHE','000670.XSHE','000671.XSHE','000672.XSHE','000673.XSHE','000676.XSHE','000677.XSHE','000678.XSHE','000679.XSHE','000680.XSHE','000681.XSHE','000682.XSHE','000683.XSHE','000685.XSHE','000686.XSHE','000687.XSHE','000688.XSHE','000690.XSHE','000691.XSHE','000692.XSHE','000693.XSHE','000695.XSHE','000697.XSHE','000698.XSHE','000700.XSHE','000701.XSHE','000702.XSHE','000703.XSHE','000705.XSHE','000707.XSHE','000708.XSHE','000709.XSHE','000710.XSHE','000711.XSHE','000712.XSHE','000713.XSHE','000715.XSHE','000716.XSHE','000717.XSHE','000718.XSHE','000719.XSHE','000720.XSHE','000721.XSHE','000722.XSHE','000723.XSHE','000725.XSHE','000726.XSHE','000727.XSHE','000728.XSHE','000729.XSHE','000731.XSHE','000732.XSHE','000733.XSHE','000735.XSHE','000736.XSHE','000737.XSHE','000738.XSHE','000739.XSHE','000748.XSHE','000750.XSHE','000751.XSHE','000752.XSHE','000753.XSHE','000755.XSHE','000756.XSHE','000757.XSHE','000758.XSHE','000759.XSHE','000760.XSHE','000761.XSHE','000762.XSHE','000766.XSHE','000767.XSHE','000768.XSHE','000776.XSHE','000777.XSHE','000778.XSHE','000779.XSHE','000780.XSHE','000782.XSHE','000783.XSHE','000785.XSHE','000786.XSHE','000788.XSHE','000789.XSHE','000790.XSHE','000791.XSHE','000792.XSHE','000793.XSHE','000795.XSHE','000796.XSHE','000797.XSHE','000798.XSHE','000799.XSHE','000800.XSHE','000801.XSHE','000802.XSHE','000803.XSHE','000806.XSHE','000807.XSHE','000809.XSHE','000810.XSHE','000811.XSHE','000812.XSHE','000813.XSHE','000815.XSHE','000816.XSHE','000818.XSHE','000819.XSHE','000820.XSHE','000821.XSHE','000822.XSHE','0
本文标题:获取股市历史行情方法
链接地址:https://www.777doc.com/doc-4245409 .html