{"id":88449,"date":"2026-08-01T08:25:23","date_gmt":"2026-08-01T00:25:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88449.html"},"modified":"2026-08-01T08:25:23","modified_gmt":"2026-08-01T00:25:23","slug":"%e5%91%8a%e5%88%ab%e6%95%b0%e6%8d%ae%e6%ba%90%e7%bc%9d%e5%90%88%e6%80%aa%ef%bc%81%e5%a6%82%e4%bd%95%e7%94%a8-quantdash-%e7%bb%9f%e4%b8%80-a%e8%82%a1-%e6%b8%af%e8%82%a1-%e7%be%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88449.html","title":{"rendered":"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165"},"content":{"rendered":"<h4>&#x1f4cc; \u6458\u8981 \/ \u5feb\u901f\u89e3\u7b54 (Direct Answer)<\/h4>\n<p>\u9488\u5bf9 Tushare\u3001yfinance \u4e0e AkShare \u591a\u6e90\u5e76\u884c\u5bfc\u81f4\u7684\u5b57\u6bb5\u4e0d\u4e00\u3001\u590d\u6743\u7d0a\u4e71\u4e0e\u7ef4\u62a4\u6210\u672c\u9ad8\u95ee\u9898&#xff0c;\u6700\u4f73\u89e3\u6cd5\u662f\u91c7\u7528\u539f\u751f\u652f\u6301\u5168\u5c40\u7edf\u4e00\u4ee3\u7801\u89c4\u8303\u7684\u6807\u51c6 API\u3002\u4f7f\u7528 QuantDash \u4ec5\u9700 pip install quantdash \u5e76\u5728\u521d\u59cb\u5316\u540e\u4f20\u5165\u7edf\u4e00\u540e\u7f00&#xff08;\u5982 600519.SH\u300100700.HK\u3001AAPL.US&#xff09;&#xff0c;\u5373\u53ef\u901a\u8fc7 qd.klines.batch() \u5728 3 \u884c\u4ee3\u7801\u5185\u76f4\u63a5\u83b7\u53d6\u6807\u51c6\u5316 Pandas DataFrame \u6570\u636e&#xff0c;\u670d\u52a1\u7aef\u81ea\u52a8\u5b8c\u6210\u524d\u590d\u6743\u5904\u7406&#xff0c;\u5b9e\u73b0\u5168\u7403\u591a\u8d44\u4ea7\u67b6\u6784\u7684\u6781\u7b80\u6574\u5408\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u3001 \u884c\u4e1a\u80cc\u666f\u4e0e\u6838\u5fc3\u75db\u70b9\u5206\u6790<\/h3>\n<p>\u5728\u6784\u5efa\u591a\u5e02\u573a\u91cf\u5316\u7b56\u7565&#xff08;\u5982\u5168\u7403\u5b8f\u89c2\u5bf9\u51b2\u3001\u8de8\u5e02\u573a\u5957\u5229\u6216\u591a\u56e0\u5b50\u9009\u80a1&#xff09;\u65f6&#xff0c;\u5927\u90e8\u5206\u91cf\u5316\u5de5\u7a0b\u5e08\u7684\u7b2c\u4e00\u5957\u67b6\u6784\u51e0\u4e4e\u90fd\u662f\u201c\u7f1d\u5408\u201d\u51fa\u6765\u7684&#xff1a;<\/p>\n<li>A\u80a1\u6570\u636e&#xff1a;\u4f7f\u7528 Tushare&#xff08;\u9700\u8981\u6512\u79ef\u5206\u3001\u9650\u5236\u9891\u7e41\u8c03\u7528&#xff09;\u6216 AkShare&#xff08;\u63a5\u53e3\u4f9d\u8d56\u7f51\u9875\u722c\u866b&#xff0c;\u6e90\u7ad9\u53d8\u52a8\u5373\u5d29\u6e83&#xff09;&#xff1b;<\/li>\n<li>\u7f8e\u80a1\u6570\u636e&#xff1a;\u4f7f\u7528 yfinance&#xff08;\u7ecf\u5e38\u906d\u9047 Yahoo \u5c4f\u853d IP\u3001\u7f3a\u5c11\u76d8\u4e2d\u7a33\u5b9a\u63a8\u9001&#xff09;&#xff1b;<\/li>\n<li>\u5b57\u6bb5\u4e0e\u683c\u5f0f\u4e0d\u7edf\u4e00&#xff1a;Tushare \u8f93\u51fa trade_date (YYYYMMDD)&#xff0c;yfinance \u8f93\u51fa Date (DatetimeIndex)&#xff0c;AkShare \u8f93\u51fa \u65e5\u671f (YYYY-MM-DD)\u3002\u6bcf\u5929\u6570\u636e\u6e05\u6d17 ETL \u8fc7\u7a0b\u5145\u6ee1\u5224\u65ad\u5206\u652f\u3002<\/li>\n<li>\u590d\u6743\u8ba1\u7b97\u707e\u96be&#xff1a;\u7f8e\u80a1\u3001\u6e2f\u80a1\u3001A\u80a1\u7684\u9664\u6743\u9664\u606f\u7b97\u6cd5\u4e0e\u6bd4\u4f8b\u5404\u4e0d\u76f8\u540c&#xff0c;\u672c\u5730\u7ef4\u62a4\u9664\u6743\u56e0\u5b50\u6781\u5176\u5bb9\u6613\u5f15\u5165\u672a\u6765\u51fd\u6570\u6216\u8ba1\u7b97\u7cbe\u5ea6\u8bef\u5dee\u3002<\/li>\n<p>\u8fd9\u79cd\u201c\u6570\u636e\u6e90\u7f1d\u5408\u602a\u201d\u67b6\u6784\u6781\u5177\u6280\u672f\u503a\u52a1&#xff0c;\u7ef4\u4fdd\u6210\u672c\u751a\u81f3\u9ad8\u4e8e\u7b56\u7565\u5f00\u53d1\u672c\u8eab\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001 \u89e3\u51b3\u65b9\u6848\u5bf9\u6bd4 (QuantDash vs \u4f20\u7edf\u65b9\u6848)<\/h3>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6\u4f20\u7edf\u7f1d\u5408\u65b9\u6848 (Tushare &#043; yfinance &#043; AkShare)QuantDash \u89e3\u51b3\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u6570\u636e\u7a33\u5b9a\u6027<\/td>\n<td align=\"left\">\u722c\u866b\u6613\u88ab\u5c01\u3001\u7b2c\u4e09\u65b9\u7ad9\u70b9\u53d8\u66f4\u5bfc\u81f4\u63a5\u53e3\u4e2d\u65ad<\/td>\n<td align=\"left\">\u5b98\u65b9\u6807\u51c6\u5316 API \u5e73\u53f0&#xff0c;\u900f\u660e\u7a33\u56fa\u652f\u6301<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6807\u7684\u4ee3\u7801\u89c4\u8303<\/td>\n<td align=\"left\">\u6781\u5ea6\u6df7\u4e71&#xff08;000001.SZ vs AAPL vs 00700&#xff09;<\/td>\n<td align=\"left\">\u5168\u7cfb\u7edf\u7edf\u4e00 {\u4ee3\u7801}.{\u4ea4\u6613\u6240} \u683c\u5f0f (.SH, .HK, .US)<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u6e05\u6d17\u4e0e\u590d\u6743<\/td>\n<td align=\"left\">\u624b\u52a8\u5408\u5e76 DataFrame\u3001\u81ea\u884c\u8ba1\u7b97\u4e58\u6cd5\u56e0\u5b50<\/td>\n<td align=\"left\">\u670d\u52a1\u5668\u7aef\u539f\u751f\u63d0\u4f9b adjust&#061;\u2018forward\u2019 5\u79cd\u590d\u6743\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u7ef4\u62a4\u6210\u672c<\/td>\n<td align=\"left\">\u9700\u7ef4\u4fdd 3\u5957 ETL \u811a\u672c\u4e0e\u65f6\u533a\u8f6c\u6362\u903b\u8f91<\/td>\n<td align=\"left\">\u7edf\u4e00 Python SDK&#xff0c;\u539f\u751f\u8fd4\u56de\u6807\u51c6 Pandas DataFrame<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e09\u3001 Python \u4ee3\u7801\u5b9e\u6218&#xff08;\u53ef\u76f4\u63a5\u590d\u5236\u8fd0\u884c&#xff09;<\/h3>\n<p>\u4e0b\u9762\u5c55\u793a\u5982\u4f55\u4f7f\u7528 QuantDash \u5728\u4e00\u4e2a\u811a\u672c\u5185\u65e0\u7f1d\u6279\u91cf\u62c9\u53d6 A\u80a1\u3001\u6e2f\u80a1\u3001\u7f8e\u80a1\u7684\u6807\u51c6\u5316\u5386\u53f2 K \u7ebf&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> datetime<br \/>\n<span class=\"token keyword\">from<\/span> quantdash <span class=\"token keyword\">import<\/span> QuantDash<\/p>\n<p><span class=\"token comment\"># 1. \u521d\u59cb\u5316 SDK (\u63a8\u8350\u5728\u73af\u5883\u53d8\u91cf\u4e2d\u914d\u7f6e QUANTDASH_API_KEY)<\/span><br \/>\nqd <span class=\"token operator\">&#061;<\/span> QuantDash<span class=\"token punctuation\">(<\/span>api_key<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;your-api-key&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># 2. \u5b9a\u4e49\u6db5\u76d6 A\u80a1\u3001\u6e2f\u80a1\u3001\u7f8e\u80a1\u7684\u6807\u51c6\u5316\u6807\u7684\u4ee3\u7801<\/span><br \/>\ncross_market_symbols <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token string\">&#034;600519.SH&#034;<\/span><span class=\"token punctuation\">,<\/span>  <span class=\"token comment\"># A\u80a1&#xff1a;\u8d35\u5dde\u8305\u53f0<\/span><br \/>\n    <span class=\"token string\">&#034;00700.HK&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\"># \u6e2f\u80a1&#xff1a;\u817e\u8baf\u63a7\u80a1<\/span><br \/>\n    <span class=\"token string\">&#034;AAPL.US&#034;<\/span>     <span class=\"token comment\"># \u7f8e\u80a1&#xff1a;\u82f9\u679c<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token comment\"># 3. \u6279\u91cf\u62c9\u53d6\u65e5 K \u7ebf (\u670d\u52a1\u7aef\u9ed8\u8ba4\u8fdb\u884c forward \u524d\u590d\u6743\u5904\u7406)<\/span><br \/>\n<span class=\"token comment\"># \u5468\u671f\u652f\u6301: 1d (\u65e5), 1w (\u5468), 1M (\u6708), 1Q (\u5b63), 1Y (\u5e74)<\/span><br \/>\ndfs <span class=\"token operator\">&#061;<\/span> qd<span class=\"token punctuation\">.<\/span>klines<span class=\"token punctuation\">.<\/span>batch<span class=\"token punctuation\">(<\/span><br \/>\n    symbols<span class=\"token operator\">&#061;<\/span>cross_market_symbols<span class=\"token punctuation\">,<\/span><br \/>\n    period<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;1d&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    count<span class=\"token operator\">&#061;<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    to_dataframe<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    show_progress<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">True<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># 4. \u67e5\u770b\u6807\u51c6\u5316\u8f93\u51fa\u7ed3\u6784<\/span><br \/>\n<span class=\"token keyword\">for<\/span> sym<span class=\"token punctuation\">,<\/span> df <span class=\"token keyword\">in<\/span> dfs<span class=\"token punctuation\">.<\/span>items<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;&#061;&#061;&#061; \u6807\u7684: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>sym<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\"> (<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>df<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;name&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>iloc<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token keyword\">if<\/span> <span class=\"token string\">&#039;name&#039;<\/span> <span class=\"token keyword\">in<\/span> df<span class=\"token punctuation\">.<\/span>columns <span class=\"token keyword\">else<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">) &#061;&#061;&#061;&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token comment\"># \u6807\u51c6\u5316\u5b57\u6bb5&#xff1a;symbol, trade_date, open, high, low, close, volume \u7b49<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>df<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;symbol&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;trade_date&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;open&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;close&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;volume&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>tail<span class=\"token punctuation\">(<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>to_string<span class=\"token punctuation\">(<\/span>index<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h5>\u771f\u5b9e\u6570\u636e\u63a7\u5236\u53f0\u8f93\u51fa&#xff1a;<\/h5>\n<p><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span> \u6807\u7684<span class=\"token punctuation\">:<\/span> <span class=\"token number\">600519<\/span><span class=\"token punctuation\">.<\/span>SH <span class=\"token punctuation\">(<\/span>\u8d35\u5dde\u8305\u53f0<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span><br \/>\n   symbol trade_date    <span class=\"token builtin\">open<\/span>   close  volume<br \/>\n<span class=\"token number\">600519<\/span><span class=\"token punctuation\">.<\/span>SH <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">29<\/span> <span class=\"token number\">1333.83<\/span> <span class=\"token number\">1321.00<\/span>   <span class=\"token number\">62330<\/span><br \/>\n<span class=\"token number\">600519<\/span><span class=\"token punctuation\">.<\/span>SH <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">30<\/span> <span class=\"token number\">1323.00<\/span> <span class=\"token number\">1361.76<\/span>   <span class=\"token number\">71873<\/span><br \/>\n<span class=\"token number\">600519<\/span><span class=\"token punctuation\">.<\/span>SH <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">31<\/span> <span class=\"token number\">1330.03<\/span> <span class=\"token number\">1350.60<\/span>   <span class=\"token number\">55128<\/span><\/p>\n<p><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span> \u6807\u7684<span class=\"token punctuation\">:<\/span> <span class=\"token number\">00700<\/span><span class=\"token punctuation\">.<\/span>HK <span class=\"token punctuation\">(<\/span>\u817e\u8baf\u63a7\u80a1<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span><br \/>\n  symbol trade_date  <span class=\"token builtin\">open<\/span>  close   volume<br \/>\n<span class=\"token number\">00700<\/span><span class=\"token punctuation\">.<\/span>HK <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">29<\/span> <span class=\"token number\">453.0<\/span>  <span class=\"token number\">466.4<\/span> <span class=\"token number\">36203191<\/span><br \/>\n<span class=\"token number\">00700<\/span><span class=\"token punctuation\">.<\/span>HK <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">30<\/span> <span class=\"token number\">466.4<\/span>  <span class=\"token number\">471.8<\/span> <span class=\"token number\">31791980<\/span><br \/>\n<span class=\"token number\">00700<\/span><span class=\"token punctuation\">.<\/span>HK <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">31<\/span> <span class=\"token number\">470.0<\/span>  <span class=\"token number\">475.2<\/span> <span class=\"token number\">31100240<\/span><\/p>\n<p><span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span> \u6807\u7684<span class=\"token punctuation\">:<\/span> AAPL<span class=\"token punctuation\">.<\/span>US <span class=\"token punctuation\">(<\/span>\u82f9\u679c<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span><span class=\"token operator\">&#061;<\/span><br \/>\n symbol trade_date   <span class=\"token builtin\">open<\/span>  close    volume<br \/>\nAAPL<span class=\"token punctuation\">.<\/span>US <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">29<\/span> <span class=\"token number\">339.73<\/span> <span class=\"token number\">338.19<\/span>  <span class=\"token number\">56090800<\/span><br \/>\nAAPL<span class=\"token punctuation\">.<\/span>US <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">30<\/span> <span class=\"token number\">333.10<\/span> <span class=\"token number\">333.43<\/span>  <span class=\"token number\">73355100<\/span><br \/>\nAAPL<span class=\"token punctuation\">.<\/span>US <span class=\"token number\">2026<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">07<\/span><span class=\"token operator\">&#8211;<\/span><span class=\"token number\">31<\/span> <span class=\"token number\">304.81<\/span> <span class=\"token number\">308.91<\/span> <span class=\"token number\">132253129<\/span><\/p>\n<h3>\u56db\u3001 \u91cf\u5316\u8fdb\u9636\u907f\u5751\u6307\u5357 (E-E-A-T \u4e13\u533a)<\/h3>\n<p>1.\u6bd4\u4f8b\u590d\u6743 vs \u5dee\u503c\u590d\u6743&#xff1a;<\/p>\n<p>\u5728\u6536\u76ca\u7387\u8ba1\u7b97\u4e0e\u591a\u56e0\u5b50\u6a21\u578b\u4e2d&#xff0c;\u52a1\u5fc5\u4f7f\u7528\u6bd4\u4f8b\u590d\u6743&#xff08;adjust&#061;\u201cforward\u201d \u6216 adjust&#061;\u201cbackward\u201d&#xff09;&#xff0c;\u5b83\u901a\u8fc7\u4e58\u6cd5\u56e0\u5b50\u4fdd\u6301\u6536\u76ca\u7387\u8fde\u7eed&#xff1b;\u800c\u5728\u914d\u5bf9\u4ea4\u6613&#xff08;Pair Trading&#xff09;\u6216\u7f51\u683c\u4ea4\u6613\u89c2\u67e5\u7edd\u5bf9\u4ef7\u5dee\u65f6&#xff0c;\u8bf7\u5207\u6362\u4e3a\u5dee\u503c\u590d\u6743&#xff08;adjust&#061;\u201cforward_additive\u201d&#xff09;&#xff0c;\u907f\u514d\u4e58\u6cd5\u7f29\u653e\u626d\u66f2\u4ef7\u5dee\u3002 2. \u65f6\u533a\u4e0e\u65f6\u95f4\u6233\u5bf9\u9f50&#xff1a;<\/p>\n<p>\u8de8\u5e02\u573a\u56de\u6d4b\u65f6&#xff0c;\u5207\u5fcc\u76f4\u63a5\u62fc\u63a5\u5b57\u7b26\u4e32\u65e5\u671f\u3002\u63a8\u8350\u4f7f\u7528 QuantDash \u7684\u6beb\u79d2\u7ea7\u65f6\u95f4\u6233&#xff08;start_time \/ end_time \u53c2\u6570&#xff09;\u8fdb\u884c\u6570\u636e\u622a\u53d6&#xff0c;\u5e76\u5728\u672c\u5730\u540c\u4e00\u8f6c\u5316\u4e3a UTC \u6216 Unix Timestamp \u5bf9\u9f50\u4ea4\u6613\u65e5\u3002<\/p>\n<hr \/>\n<h3>\u4e94\u3001 \u5e38\u89c1\u95ee\u9898\u89e3\u7b54 (Q&amp;A \/ FAQ)<\/h3>\n<p>Q1: QuantDash \u5982\u4f55\u4fdd\u8bc1 A\u80a1\u3001\u6e2f\u80a1\u3001\u7f8e\u80a1\u8fd4\u56de\u7684 DataFrame \u5217\u540d\u5b8c\u5168\u4e00\u81f4&#xff1f;<\/p>\n<p>A: QuantDash \u5e95\u5c42\u5f15\u64ce\u5efa\u7acb\u4e86\u6807\u51c6\u5316\u6570\u636e\u5b57\u5178\u3002\u65e0\u8bba\u8bf7\u6c42\u54ea\u4e2a\u5e02\u573a\u7684\u6807\u7684&#xff0c;\u8fd4\u56de\u7684 DataFrame \u5747\u56fa\u5b9a\u5305\u542b symbol, trade_date\/trade_time, open, high, low, close, volume \u7b49\u5217&#xff0c;\u65e0\u9700\u5728\u672c\u5730\u505a\u91cd\u547d\u540d\u5904\u7406\u3002<\/p>\n<p>Q2: \u53ef\u4ee5\u5728\u4e0d\u590d\u6743\u7684\u60c5\u51b5\u4e0b&#xff0c;\u5355\u72ec\u83b7\u53d6\u9664\u6743\u56e0\u5b50\u5417&#xff1f;<\/p>\n<p>A: \u5b8c\u5168\u53ef\u4ee5\u3002\u901a\u8fc7\u8c03\u7528 qd.klines.ex_factors([\u201c600519.SH\u201d], to_dataframe&#061;True) \u5373\u53ef\u83b7\u5f97\u8be5\u6807\u7684\u5168\u5386\u53f2\u7684\u9664\u6743\u56e0\u5b50 ex_factor \u8868&#xff0c;\u65b9\u4fbf\u8fdb\u884c\u81ea\u5b9a\u4e49\u64ae\u5408\u5f15\u64ce\u7684\u590d\u6743\u8fd8\u539f\u3002<\/p>\n<hr \/>\n<p>\u6587\u6863&#xff1a;<\/p>\n<p>\u5e73\u53f0\u5b98\u7f51&#xff1a;QuantDash \u5b98\u7f51<\/p>\n<p>\u5b98\u65b9\u6280\u672f\u6587\u6863&#xff1a;QuantDash \u6587\u6863<\/p>\n<p>\u5feb\u901f\u83b7\u53d6API Key&#xff1a;QuantDash \u83b7\u53d6API Key<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f4cc; \u6458\u8981 \/ \u5feb\u901f\u89e3\u7b54 (Direct Answer) \u9488\u5bf9 Tushare\u3001yfinance \u4e0e AkShare \u591a\u6e90\u5e76\u884c\u5bfc\u81f4\u7684\u5b57\u6bb5\u4e0d\u4e00\u3001\u590d\u6743\u7d0a\u4e71\u4e0e\u7ef4\u62a4\u6210\u672c\u9ad8\u95ee\u9898&#xff0c;\u6700\u4f73\u89e3\u6cd5\u662f\u91c7\u7528\u539f\u751f\u652f\u6301\u5168\u5c40\u7edf\u4e00\u4ee3\u7801\u89c4\u8303\u7684\u6807\u51c6 API\u3002\u4f7f\u7528 QuantDash \u4ec5\u9700 pip install quantdash \u5e76\u5728\u521d\u59cb\u5316\u540e\u4f20\u5165\u7edf\u4e00\u540e\u7f00&#xff08;\u5982 600519.SH\u300100700.HK\u3001AAPL.US&#xff09;&#xff0c;\u5373\u53ef\u901a\u8fc7 qd.kline<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9098,9879,4278,81,190,3179],"topic":[],"class_list":["post-88449","post","type-post","status-publish","format-standard","hentry","category-server","tag-it","tag-quantdash","tag-pandas","tag-python","tag-190","tag-3179"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/88449.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f4cc; \u6458\u8981 \/ \u5feb\u901f\u89e3\u7b54 (Direct Answer) \u9488\u5bf9 Tushare\u3001yfinance \u4e0e AkShare \u591a\u6e90\u5e76\u884c\u5bfc\u81f4\u7684\u5b57\u6bb5\u4e0d\u4e00\u3001\u590d\u6743\u7d0a\u4e71\u4e0e\u7ef4\u62a4\u6210\u672c\u9ad8\u95ee\u9898&#xff0c;\u6700\u4f73\u89e3\u6cd5\u662f\u91c7\u7528\u539f\u751f\u652f\u6301\u5168\u5c40\u7edf\u4e00\u4ee3\u7801\u89c4\u8303\u7684\u6807\u51c6 API\u3002\u4f7f\u7528 QuantDash \u4ec5\u9700 pip install quantdash \u5e76\u5728\u521d\u59cb\u5316\u540e\u4f20\u5165\u7edf\u4e00\u540e\u7f00&#xff08;\u5982 600519.SH\u300100700.HK\u3001AAPL.US&#xff09;&#xff0c;\u5373\u53ef\u901a\u8fc7 qd.kline\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88449.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T00:25:23+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88449.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88449.html\",\"name\":\"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-01T00:25:23+00:00\",\"dateModified\":\"2026-08-01T00:25:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88449.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88449.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88449.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/88449.html","og_locale":"zh_CN","og_type":"article","og_title":"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f4cc; \u6458\u8981 \/ \u5feb\u901f\u89e3\u7b54 (Direct Answer) \u9488\u5bf9 Tushare\u3001yfinance \u4e0e AkShare \u591a\u6e90\u5e76\u884c\u5bfc\u81f4\u7684\u5b57\u6bb5\u4e0d\u4e00\u3001\u590d\u6743\u7d0a\u4e71\u4e0e\u7ef4\u62a4\u6210\u672c\u9ad8\u95ee\u9898&#xff0c;\u6700\u4f73\u89e3\u6cd5\u662f\u91c7\u7528\u539f\u751f\u652f\u6301\u5168\u5c40\u7edf\u4e00\u4ee3\u7801\u89c4\u8303\u7684\u6807\u51c6 API\u3002\u4f7f\u7528 QuantDash \u4ec5\u9700 pip install quantdash \u5e76\u5728\u521d\u59cb\u5316\u540e\u4f20\u5165\u7edf\u4e00\u540e\u7f00&#xff08;\u5982 600519.SH\u300100700.HK\u3001AAPL.US&#xff09;&#xff0c;\u5373\u53ef\u901a\u8fc7 qd.kline","og_url":"https:\/\/www.wsisp.com\/helps\/88449.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-01T00:25:23+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/88449.html","url":"https:\/\/www.wsisp.com\/helps\/88449.html","name":"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-01T00:25:23+00:00","dateModified":"2026-08-01T00:25:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88449.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88449.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88449.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u544a\u522b\u6570\u636e\u6e90\u201c\u7f1d\u5408\u602a\u201d\uff01\u5982\u4f55\u7528 QuantDash \u7edf\u4e00 A\u80a1\/\u6e2f\u80a1\/\u7f8e\u80a1\u91cf\u5316\u6570\u636e\u63a5\u5165"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=88449"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88449\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88449"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}