{"id":85522,"date":"2026-07-27T17:09:11","date_gmt":"2026-07-27T09:09:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85522.html"},"modified":"2026-07-27T17:09:11","modified_gmt":"2026-07-27T09:09:11","slug":"%e3%80%90ai%e9%87%8f%e5%8c%96%e4%ba%a4%e6%98%93%e5%ae%9e%e6%88%98%e3%80%91%e7%ac%ac04%e8%ae%b2%ef%bc%9a%e5%b0%8f%e6%99%b4%ef%bc%88%e6%83%85%e6%8a%a5%e5%ae%98%ef%bc%89%e4%b8%8a%e5%b2%97","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85522.html","title":{"rendered":"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf"},"content":{"rendered":"<h2 id=\"ai%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E5%AE%9E%E6%88%98%E8%90%A5%E7%AC%AC04%E8%AE%B2%E5%B0%8F%E6%99%B4%E4%B8%8A%E5%B2%97%E6%90%AD%E5%BB%BA%E6%9C%AC%E5%9C%B0%E6%95%B0%E6%8D%AE%E7%AE%A1%E9%81%93%E4%B8%8E%E6%B8%85%E6%B4%97%E6%B5%81%E6%B0%B4%E7%BA%BF\"><\/h2>\n<h3 id=\"%E5%BC%80%E7%AF%87%E5%AF%BC%E8%AF%AD\">\u5f00\u7bc7\u5bfc\u8bed<\/h3>\n<p>\u4e0a\u4e00\u8bb2\u6211\u4eec\u642d\u5efa\u4e86Python\u91cf\u5316\u5f00\u53d1\u73af\u5883&#xff0c;\u5e76\u901a\u8fc7akshare\u5b8c\u6210\u4e86\u7b2c\u4e00\u6b21&#034;\u4ece\u6570\u636e\u5230\u51b3\u7b56&#034;\u7684\u591a\u56e0\u5b50\u9009\u80a1\u5b9e\u9a8c\u3002\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u9690\u60a3\u4f60\u53ef\u80fd\u5df2\u7ecf\u5bdf\u89c9\u4e86&#xff1a;\u6bcf\u6b21\u8fd0\u884c\u7b56\u7565\u90fd\u9700\u8981\u4e34\u65f6\u4ece\u7f51\u4e0a\u6293\u6570\u636e\u2014\u2014\u6162\u3001\u4e0d\u7a33\u5b9a\u3001\u4e0d\u53ef\u590d\u73b0\u3002<\/p>\n<p>\u771f\u6b63\u80fd\u6253\u4ed7\u7684\u91cf\u5316\u56e2\u961f&#xff0c;\u7edd\u4e0d\u4f1a\u6bcf\u8dd1\u4e00\u6b21\u56de\u6d4b\u5c31\u53bb\u7f51\u4e0a\u91cd\u65b0\u4e0b\u8f7d\u4e00\u6b21\u6570\u636e\u3002\u4ed6\u4eec\u628a\u6570\u636e\u91c7\u96c6\u3001\u6e05\u6d17\u3001\u5b58\u50a8\u505a\u6210\u4e00\u6761\u81ea\u52a8\u5316\u7ba1\u9053&#xff08;Pipeline&#xff09;&#xff0c;\u9700\u8981\u65f6\u4ece\u672c\u5730\u6570\u636e\u5e93\u79d2\u7ea7\u8bfb\u53d6\u3002\u8fd9\u6761\u6570\u636e\u7ba1\u9053\u5c31\u662f\u91cf\u5316\u4ea4\u6613\u7684&#034;\u5f39\u836f\u5e93&#034;\u2014\u2014\u6ca1\u6709\u7a33\u5b9a\u7684\u6570\u636e\u4f9b\u7ed9&#xff0c;\u7b56\u7565\u7814\u7a76\u5c31\u662f\u7eb8\u4e0a\u8c08\u5175\u3002<\/p>\n<p>\u4eca\u5929&#xff0c;\u5c0f\u6674&#xff08;\u60c5\u62a5\u5b98&#xff09;\u6b63\u5f0f\u4e0a\u5c97\u3002\u4ed6\u5c06\u8d1f\u8d23\u628a\u5206\u6563\u5728\u5404\u4e2a\u6570\u636e\u6e90\u7684\u5e02\u573a\u4fe1\u606f\u2014\u2014\u884c\u60c5\u3001\u8d22\u52a1\u3001\u5b8f\u89c2\u3001\u7814\u62a5\u3001\u65b0\u95fb\u2014\u2014\u7edf\u4e00\u6536\u62e2\u3001\u6e05\u6d17\u3001\u6807\u51c6\u5316\u540e\u5b58\u5165\u672c\u5730\u6570\u636e\u5e93&#xff0c;\u5e76\u5728\u540e\u7eed\u8bfe\u7a0b\u4e2d\u9010\u6b65\u8fdb\u9636\u4e3a\u80fd\u9605\u8bfb\u7814\u62a5\u3001\u611f\u77e5\u8206\u60c5\u7684AI\u6295\u7814\u4e13\u5bb6\u3002<\/p>\n<p>\u5b66\u5b8c\u672c\u8282\u540e&#xff0c;\u4f60\u5c06\u80fd\u591f&#xff1a;<\/p>\n<ul>\n<li>\u642d\u5efa\u8986\u76d6\u884c\u60c5\u3001\u8d22\u52a1\u3001\u5b8f\u89c2\u4e09\u7c7b\u6570\u636e\u7684\u672c\u5730\u91c7\u96c6\u7ba1\u9053<\/li>\n<li>\u5904\u7406\u590d\u6743\u3001\u505c\u724c\u3001\u7f3a\u5931\u503c\u7b49\u5e38\u89c1\u6570\u636e\u8d28\u91cf\u95ee\u9898<\/li>\n<li>\u5229\u7528\u5927\u6a21\u578b\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u7ed3\u6784\u5316&#034;\u50ac\u5316\u5242\u4e8b\u4ef6&#034;<\/li>\n<li>\u5efa\u7acb\u672c\u5730HDF5\/CSV\u683c\u5f0f\u7684\u9ad8\u8d28\u91cf\u6570\u636e\u5e93<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"41-%E5%B0%8F%E6%99%B4%E7%9A%84%E4%BD%BF%E5%91%BD%E6%95%B0%E6%8D%AE%E7%AE%A1%E9%81%93%E7%9A%84%E5%85%A8%E6%99%AF%E8%AE%BE%E8%AE%A1\">4.1 \u5c0f\u6674\u7684\u4f7f\u547d\u2014\u2014\u6570\u636e\u7ba1\u9053\u7684\u5168\u666f\u8bbe\u8ba1<\/h3>\n<h4 id=\"%E6%A6%82%E5%BF%B5%E8%AE%B2%E8%A7%A3\">\u6982\u5ff5\u8bb2\u89e3<\/h4>\n<p>\u5148\u770b\u4e00\u4e2a\u771f\u5b9e\u573a\u666f&#xff1a;\u4f60\u8981\u56de\u6d4b\u4e00\u4e2a\u57fa\u4e8e\u8d22\u52a1\u56e0\u5b50&#xff08;PE\u3001ROE&#xff09;\u548c\u6280\u672f\u6307\u6807&#xff08;MACD\u3001RSI&#xff09;\u7684\u7ec4\u5408\u7b56\u7565\u3002\u8fd9\u9700\u8981\u4e24\u7c7b\u6570\u636e&#xff1a;\u65e5\u7ebf\u884c\u60c5&#xff08;\u7528\u6765\u7b97\u6280\u672f\u6307\u6807&#xff09;\u548c\u5b63\u5ea6\u8d22\u52a1\u62a5\u544a&#xff08;\u7528\u6765\u7b97\u4f30\u503c\u56e0\u5b50&#xff09;\u3002<\/p>\n<p>\u5982\u679c\u6bcf\u6b21\u56de\u6d4b\u524d\u90fd\u4ece\u7f51\u4e0a\u4e0b\u8f7d\u2014\u2014akshare\u53d6\u884c\u60c5&#xff08;\u7ea610\u79d2&#xff09;\u3001\u53d6\u8d22\u52a1\u6570\u636e&#xff08;\u7ea630\u79d2&#xff09;\u3001\u53d6\u5b8f\u89c2\u6307\u6807&#xff08;\u7ea615\u79d2&#xff09;\u2014\u2014\u5149\u6570\u636e\u51c6\u5907\u5c31\u8981\u4e00\u5206\u949f\u3002\u4e00\u5929\u8fed\u4ee3\u6d4b\u8bd550\u4e2a\u53c2\u6570\u7ec4\u5408&#xff0c;\u7b49\u5f85\u65f6\u95f4\u5c31\u63a5\u8fd1\u4e00\u5c0f\u65f6\u4e86\u3002\u66f4\u81f4\u547d\u7684\u662f&#xff0c;\u7f51\u7edc\u6ce2\u52a8\u53ef\u80fd\u5bfc\u81f4\u67d0\u6b21\u4e0b\u8f7d\u5931\u8d25&#xff0c;\u4f60\u7684\u6279\u91cf\u56de\u6d4b\u811a\u672c\u5c31\u4f1a\u5361\u5728\u534a\u8def&#xff0c;\u4e00\u884c\u4e00\u884c\u6392\u67e5\u9519\u8bef\u3002<\/p>\n<p>\u5c0f\u6674\u7684\u6570\u636e\u7ba1\u9053\u8981\u89e3\u51b3\u7684\u5c31\u662f\u8fd9\u4e2a\u95ee\u9898\u3002\u5b83\u7684\u8bbe\u8ba1\u67b6\u6784\u5982\u4e0b&#xff1a;<\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510  \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502 \u6570\u636e\u6e90A  \u2502  \u2502 \u6570\u636e\u6e90B  \u2502  \u2502 \u6570\u636e\u6e90C  \u2502<br \/>\n\u2502 akshare  \u2502  \u2502 tushare  \u2502  \u2502 QMT\u884c\u60c5  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518  \u2514\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n     \u2502              \u2502              \u2502<br \/>\n     \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                    \u25bc<br \/>\n          \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n          \u2502  \u5c0f\u6674\u91c7\u96c6\u5668   \u2502  \u2190 \u5b9a\u65f6\/\u624b\u52a8\u89e6\u53d1<br \/>\n          \u2502  \u591a\u6e90\u5e76\u884c\u62c9\u53d6    \u2502<br \/>\n          \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                  \u25bc<br \/>\n          \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n          \u2502  \u6e05\u6d17\u4e0e\u6807\u51c6\u5316    \u2502  \u2190 \u590d\u6743\u5904\u7406\u3001\u505c\u724c\u6807\u8bb0\u3001\u53bb\u91cd<br \/>\n          \u2502  \u7f3a\u5931\u503c\u586b\u8865      \u2502<br \/>\n          \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                  \u25bc<br \/>\n          \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n          \u2502  \u672c\u5730\u6570\u636e\u5e93      \u2502  \u2190 HDF5 \/ CSV \/ SQLite<br \/>\n          \u2502  (\u7ed3\u6784\u5316\u5b58\u50a8)    \u2502<br \/>\n          \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                  \u25bc<br \/>\n          \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n          \u2502  \u5c0f\u96c5\u7b56\u7565\u56de\u6d4b     \u2502  \u2190 \u79d2\u7ea7\u8bfb\u53d6&#xff0c;\u65e0\u9700\u8054\u7f51<br \/>\n          \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<p>\u6838\u5fc3\u8bbe\u8ba1\u539f\u5219\u6709\u4e09\u6761&#xff1a;<\/p>\n<li>\u4e00\u6b21\u91c7\u96c6&#xff0c;\u591a\u6b21\u4f7f\u7528&#xff1a;\u6570\u636e\u66f4\u65b0\u53ea\u505a\u589e\u91cf&#xff0c;\u4e0d\u91cd\u590d\u62c9\u5386\u53f2\u6570\u636e<\/li>\n<li>\u5b58\u50a8\u683c\u5f0f\u9ad8\u6548&#xff1a;HDF5\u6bd4CSV\u8bfb\u53d6\u5feb5-10\u500d&#xff0c;\u9002\u5408\u5927\u6570\u636e\u91cf\u7684\u884c\u60c5\u5b58\u50a8<\/li>\n<li>\u539f\u59cb\u6570\u636e\u4fdd\u7559&#xff1a;\u6e05\u6d17\u8fc7\u7a0b\u4e2d\u59cb\u7ec8\u4fdd\u7559\u539f\u59cb\u4e0b\u8f7d\u6587\u4ef6&#xff0c;\u65b9\u4fbf\u56de\u6eaf\u5ba1\u8ba1<\/li>\n<h4 id=\"%E4%BB%A3%E7%A0%81%E6%BC%94%E7%A4%BA\">\u4ee3\u7801\u6f14\u793a<\/h4>\n<p>\u4e0b\u9762\u662f\u5c0f\u6674\u6570\u636e\u7ba1\u9053\u7684\u6838\u5fc3\u91c7\u96c6\u5668\u6846\u67b6&#xff1a;<\/p>\n<p>&#034;&#034;&#034;<br \/>\n\u5c0f\u6674\u6570\u636e\u7ba1\u9053 &#8211; \u6838\u5fc3\u91c7\u96c6\u6846\u67b6<br \/>\n\u804c\u8d23&#xff1a;\u7edf\u4e00\u7ba1\u7406\u6570\u636e\u91c7\u96c6\u3001\u589e\u91cf\u66f4\u65b0\u3001\u672c\u5730\u5b58\u50a8<br \/>\n&#034;&#034;&#034;<br \/>\nimport akshare as ak<br \/>\nimport pandas as pd<br \/>\nimport os<br \/>\nfrom datetime import datetime, timedelta<\/p>\n<p>class XiaoQingDataPipeline:<br \/>\n    &#034;&#034;&#034;\u5c0f\u6674\u60c5\u62a5\u5b98\u7684\u6570\u636e\u7ba1\u9053&#034;&#034;&#034;<\/p>\n<p>    def __init__(self, data_dir&#061;&#034;.\/local_data&#034;):<br \/>\n        &#034;&#034;&#034;\u521d\u59cb\u5316&#xff1a;\u8bbe\u7f6e\u672c\u5730\u5b58\u50a8\u76ee\u5f55&#xff0c;\u521b\u5efa\u5b50\u6587\u4ef6\u5939&#034;&#034;&#034;<br \/>\n        self.data_dir &#061; data_dir<br \/>\n        self.daily_dir &#061; os.path.join(data_dir, &#034;daily&#034;)     # \u65e5\u7ebf\u884c\u60c5<br \/>\n        self.finance_dir &#061; os.path.join(data_dir, &#034;finance&#034;)  # \u8d22\u52a1\u6570\u636e<br \/>\n        self.macro_dir &#061; os.path.join(data_dir, &#034;macro&#034;)      # \u5b8f\u89c2\u6570\u636e<br \/>\n        for d in [self.daily_dir, self.finance_dir, self.macro_dir]:<br \/>\n            os.makedirs(d, exist_ok&#061;True)<\/p>\n<p>    # &#8212; \u6a21\u5757\u4e00&#xff1a;\u65e5\u7ebf\u884c\u60c5\u91c7\u96c6 &#8212;<br \/>\n    def fetch_daily_kline(self, symbol, start_date&#061;&#034;20200101&#034;,<br \/>\n                          end_date&#061;None, force_refresh&#061;False):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u91c7\u96c6\u5355\u53ea\u80a1\u7968\u7684\u65e5K\u7ebf\u6570\u636e&#xff0c;\u652f\u6301\u589e\u91cf\u66f4\u65b0<\/p>\n<p>        \u53c2\u6570&#xff1a;<br \/>\n            symbol: \u80a1\u7968\u4ee3\u7801&#xff0c;\u5982 &#039;600519&#039;<br \/>\n            start_date: \u8d77\u59cb\u65e5\u671f<br \/>\n            end_date: \u7ed3\u675f\u65e5\u671f&#xff0c;\u9ed8\u8ba4\u4e3a\u4eca\u5929<br \/>\n            force_refresh: \u662f\u5426\u5f3a\u5236\u5168\u91cf\u66f4\u65b0<br \/>\n        &#034;&#034;&#034;<br \/>\n        if end_date is None:<br \/>\n            end_date &#061; datetime.now().strftime(&#034;%Y%m%d&#034;)<\/p>\n<p>        file_path &#061; os.path.join(self.daily_dir, f&#034;{symbol}.csv&#034;)<\/p>\n<p>        # \u589e\u91cf\u66f4\u65b0\u903b\u8f91&#xff1a;\u5982\u679c\u672c\u5730\u5df2\u6709\u6570\u636e&#xff0c;\u53ea\u62c9\u53d6\u65b0\u589e\u90e8\u5206<br \/>\n        if not force_refresh and os.path.exists(file_path):<br \/>\n            existing &#061; pd.read_csv(file_path, index_col&#061;0, parse_dates&#061;True)<br \/>\n            last_date &#061; existing.index.max().strftime(&#034;%Y%m%d&#034;)<br \/>\n            if last_date &gt;&#061; end_date:<br \/>\n                print(f&#034;[{symbol}] \u6570\u636e\u5df2\u662f\u6700\u65b0&#xff0c;\u8df3\u8fc7&#034;)<br \/>\n                return existing<br \/>\n            # \u4ece\u6700\u540e\u65e5\u671f&#043;1\u5929\u5f00\u59cb\u62c9\u53d6<br \/>\n            start_date &#061; (pd.to_datetime(last_date) &#043;<br \/>\n                          timedelta(days&#061;1)).strftime(&#034;%Y%m%d&#034;)<br \/>\n            print(f&#034;[{symbol}] \u589e\u91cf\u66f4\u65b0&#xff1a;{start_date} \u2192 {end_date}&#034;)<\/p>\n<p>        # \u4eceakshare\u62c9\u53d6\u6570\u636e<br \/>\n        df &#061; ak.stock_zh_a_hist(symbol&#061;symbol, period&#061;&#034;daily&#034;,<br \/>\n                                start_date&#061;start_date, end_date&#061;end_date,<br \/>\n                                adjust&#061;&#034;qfq&#034;)<br \/>\n        df[&#039;\u65e5\u671f&#039;] &#061; pd.to_datetime(df[&#039;\u65e5\u671f&#039;])<br \/>\n        df.set_index(&#039;\u65e5\u671f&#039;, inplace&#061;True)<\/p>\n<p>        # \u5982\u679c\u6709\u5386\u53f2\u6570\u636e&#xff0c;\u5408\u5e76<br \/>\n        if os.path.exists(file_path) and not force_refresh:<br \/>\n            existing &#061; pd.read_csv(file_path, index_col&#061;0, parse_dates&#061;True)<br \/>\n            df &#061; pd.concat([existing, df])<br \/>\n            df &#061; df[~df.index.duplicated(keep&#061;&#039;last&#039;)]  # \u53bb\u91cd&#xff0c;\u4fdd\u7559\u6700\u65b0<\/p>\n<p>        # \u5b58\u5165\u672c\u5730CSV<br \/>\n        df.to_csv(file_path)<br \/>\n        print(f&#034;[{symbol}] \u4fdd\u5b58\u5b8c\u6210&#xff0c;\u5171 {len(df)} \u6761\u8bb0\u5f55&#034;)<br \/>\n        return df<\/p>\n<p>    # &#8212; \u6a21\u5757\u4e8c&#xff1a;\u5b8f\u89c2\u6570\u636e\u91c7\u96c6 &#8212;<br \/>\n    def fetch_macro_data(self):<br \/>\n        &#034;&#034;&#034;\u91c7\u96c6\u5173\u952e\u5b8f\u89c2\u7ecf\u6d4e\u6307\u6807&#034;&#034;&#034;<br \/>\n        indicators &#061; {}<\/p>\n<p>        # \u83b7\u53d6\u8d27\u5e01\u4f9b\u5e94\u91cf\u6570\u636e&#xff08;M1\/M2\u662f\u8861\u91cf\u5e02\u573a\u6d41\u52a8\u6027\u7684\u5173\u952e\u6307\u6807&#xff09;<br \/>\n        try:<br \/>\n            money_supply &#061; ak.macro_china_money_supply()<br \/>\n            indicators[&#039;money_supply&#039;] &#061; money_supply<br \/>\n            print(&#034;\u5b8f\u89c2\u6570\u636e&#xff1a;\u8d27\u5e01\u4f9b\u5e94\u91cf\u91c7\u96c6\u5b8c\u6210&#034;)<br \/>\n        except Exception as e:<br \/>\n            print(f&#034;\u5b8f\u89c2\u6570\u636e\u91c7\u96c6\u5931\u8d25&#xff08;\u8d27\u5e01\u4f9b\u5e94\u91cf&#xff09;&#xff1a;{e}&#034;)<\/p>\n<p>        # \u83b7\u53d6CPI\u6570\u636e&#xff08;\u901a\u8d27\u81a8\u80c0\u7387\u6307\u6807&#xff09;<br \/>\n        try:<br \/>\n            cpi &#061; ak.macro_china_cpi_monthly()<br \/>\n            indicators[&#039;cpi&#039;] &#061; cpi<br \/>\n            print(&#034;\u5b8f\u89c2\u6570\u636e&#xff1a;CPI\u91c7\u96c6\u5b8c\u6210&#034;)<br \/>\n        except Exception as e:<br \/>\n            print(f&#034;\u5b8f\u89c2\u6570\u636e\u91c7\u96c6\u5931\u8d25&#xff08;CPI&#xff09;&#xff1a;{e}&#034;)<\/p>\n<p>        # \u4fdd\u5b58\u5230\u672c\u5730<br \/>\n        for name, data in indicators.items():<br \/>\n            file_path &#061; os.path.join(self.macro_dir, f&#034;{name}.csv&#034;)<br \/>\n            data.to_csv(file_path, index&#061;False)<\/p>\n<p>        return indicators<\/p>\n<p>    # &#8212; \u6a21\u5757\u4e09&#xff1a;\u8d22\u52a1\u6570\u636e\u91c7\u96c6 &#8212;<br \/>\n    def fetch_financial_data(self, symbol, indicator&#061;&#034;\u6309\u62a5\u544a\u671f&#034;):<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u91c7\u96c6\u4e2a\u80a1\u8d22\u52a1\u6307\u6807&#xff08;\u4ee5\u540c\u82b1\u987a\u63a5\u53e3\u4e3a\u4f8b&#xff09;<\/p>\n<p>        \u8fd4\u56de\u503c\u5305\u542b&#xff1a;\u6bcf\u80a1\u6536\u76ca\u3001\u6bcf\u80a1\u51c0\u8d44\u4ea7\u3001\u51c0\u8d44\u4ea7\u6536\u76ca\u7387\u3001\u6bdb\u5229\u7387\u7b49<br \/>\n        &#034;&#034;&#034;<br \/>\n        try:<br \/>\n            df &#061; ak.stock_financial_abstract_ths(symbol&#061;symbol,<br \/>\n                                                  indicator&#061;indicator)<br \/>\n            file_path &#061; os.path.join(self.finance_dir, f&#034;{symbol}_finance.csv&#034;)<br \/>\n            df.to_csv(file_path, index&#061;False)<br \/>\n            print(f&#034;[{symbol}] \u8d22\u52a1\u6570\u636e\u91c7\u96c6\u5b8c\u6210&#xff0c;\u5171 {len(df)} \u6761&#034;)<br \/>\n            return df<br \/>\n        except Exception as e:<br \/>\n            print(f&#034;[{symbol}] \u8d22\u52a1\u6570\u636e\u91c7\u96c6\u5931\u8d25&#xff1a;{e}&#034;)<br \/>\n            return None<\/p>\n<p># &#061;&#061;&#061; \u4f7f\u7528\u793a\u4f8b&#xff1a;\u8ba9\u5c0f\u6674\u8dd1\u4e00\u6b21\u5168\u91cf\u91c7\u96c6 &#061;&#061;&#061;<br \/>\nxiaoQing &#061; XiaoQingDataPipeline(data_dir&#061;&#034;.\/local_data&#034;)<\/p>\n<p># \u91c7\u96c6\u80a1\u7968\u6c60\u7684\u65e5\u7ebf\u6570\u636e<br \/>\nstock_pool &#061; [&#039;600519&#039;, &#039;000001&#039;, &#039;000858&#039;, &#039;600036&#039;]<br \/>\nfor code in stock_pool:<br \/>\n    xiaoQing.fetch_daily_kline(code, start_date&#061;&#034;20240101&#034;)<\/p>\n<h4 id=\"%E5%85%B3%E9%94%AE%E8%A6%81%E7%82%B9\">\u5173\u952e\u8981\u70b9<\/h4>\n<ul>\n<li>\u589e\u91cf\u66f4\u65b0\u673a\u5236\u662f\u6570\u636e\u7ba1\u9053\u7684\u751f\u547d\u7ebf\u2014\u2014\u6bcf\u6b21\u53ea\u62c9\u65b0\u589e\u6570\u636e&#xff0c;\u65e5\u7ebf\u4e00\u6b21\u589e\u91cf\u4e0d\u52301KB<\/li>\n<li>HDF5\u683c\u5f0f\u6bd4CSV\u66f4\u9002\u5408\u5927\u89c4\u6a21\u884c\u60c5\u5b58\u50a8&#xff08;\u5355\u6587\u4ef6\u53ef\u5b58\u6570\u5343\u53ea\u80a1\u7968\u7684\u5168\u90e8\u5386\u53f2&#xff09;<\/li>\n<li>\u91c7\u96c6\u9891\u7387\u8981\u5408\u7406&#xff1a;\u5b8f\u89c2\u6570\u636e\u6309\u6708\u66f4\u65b0&#xff0c;\u65e5\u7ebf\u884c\u60c5\u6309\u5929\u66f4\u65b0&#xff0c;tick\u7ea7\u6570\u636e\u614e\u91c7&#xff08;\u4e00\u5929\u5c31\u662f\u51e0\u4e2aGB&#xff09;<\/li>\n<li>\u5c0f\u6674\u7684\u4ee3\u7801\u5e94\u8be5\u6a21\u5757\u5316\u2014\u2014\u6bcf\u4e2a\u6570\u636e\u6e90\u72ec\u7acb\u4e00\u4e2a\u51fd\u6570&#xff0c;\u65b9\u4fbf\u540e\u7eed\u6269\u5c55\u548c\u7ef4\u62a4<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"42-%E6%95%B0%E6%8D%AE%E6%B8%85%E6%B4%97%E4%BF%AE%E5%A4%8D%E8%84%8F%E6%95%B0%E6%8D%AE%E7%9A%84%E5%B8%B8%E8%A7%81%E5%A5%97%E8%B7%AF\">4.2 \u6570\u636e\u6e05\u6d17\u2014\u2014\u4fee\u590d&#034;\u810f\u6570\u636e&#034;\u7684\u5e38\u89c1\u5957\u8def<\/h3>\n<h4 id=\"e6a682e5bfb5e8aeb2e8a7a3-1\">\u6982\u5ff5\u8bb2\u89e3<\/h4>\n<p>\u4ece\u5916\u90e8\u6570\u636e\u6e90\u83b7\u53d6\u7684\u539f\u59cb\u6570\u636e\u51e0\u4e4e100%\u5b58\u5728\u8d28\u91cf\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u91cf\u5316\u6570\u636e\u4e2d\u6700\u5e38\u89c1\u7684\u56db\u7c7b\u95ee\u9898\u53ca\u5176\u5904\u7406\u65b9\u6848&#xff1a;<\/p>\n<table>\n<tr>\u95ee\u9898\u7c7b\u578b\u8868\u73b0\u5904\u7406\u65b9\u6848<\/tr>\n<tbody>\n<tr>\n<td>\u590d\u6743\u7f3a\u5931<\/td>\n<td>\u5386\u53f2\u4ef7\u683c\u5728\u9664\u6743\u9664\u606f\u65e5\u51fa\u73b0&#034;\u65ad\u5d16\u5f0f&#034;\u8df3\u7a7a<\/td>\n<td>\u7edf\u4e00\u4f7f\u7528\u524d\u590d\u6743&#xff08;qfq&#xff09;&#xff0c;\u907f\u514d\u542b\u6743\u4ef7\u683c\u5f71\u54cd\u56de\u6d4b<\/td>\n<\/tr>\n<tr>\n<td>\u505c\u724c\u7a7a\u503c<\/td>\n<td>\u4ea4\u6613\u65e5\u65e0\u6210\u4ea4&#xff0c;OHLC\u4e3aNaN\u6216\u91cd\u590d\u524d\u4e00\u65e5<\/td>\n<td>\u6807\u8bb0\u505c\u724c\u671f&#xff0c;\u56de\u6d4b\u4e2d\u8df3\u8fc7\u6216\u586b\u5145\u524d\u6536\u76d8\u4ef7<\/td>\n<\/tr>\n<tr>\n<td>\u8d22\u52a1\u6570\u636e\u6ede\u540e<\/td>\n<td>12\u670831\u65e5\u7684\u5e74\u62a5&#xff0c;\u5b9e\u9645\u6b21\u5e744\u6708\u624d\u516c\u5e03<\/td>\n<td>\u4f7f\u7528\u65f6\u70b9\u5339\u914d&#xff1a;4\u6708\u4e4b\u524d\u7528\u4e09\u5b63\u5ea6\u62a5&#xff0c;4\u6708\u4e4b\u540e\u53ef\u7528\u5e74\u62a5<\/td>\n<\/tr>\n<tr>\n<td>\u5f02\u5e38\u6781\u503c<\/td>\n<td>\u9519\u8bef\u5f55\u5165\u5bfc\u81f4PE&#061;99999\u6216ROE&#061;500%<\/td>\n<td>\u8bbe\u5b9a\u5408\u7406\u9608\u503c&#xff0c;\u8d85\u8fc7\u9608\u503c\u7684\u6807\u8bb0\u4e3a\u7f3a\u5931\u5e76\u53e6\u884c\u5904\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5176\u4e2d\u8d22\u52a1\u6570\u636e\u7684&#034;\u65f6\u70b9\u5339\u914d&#034;\u662f\u6700\u5bb9\u6613\u88ab\u5ffd\u89c6\u4f46\u5f71\u54cd\u6700\u5927\u7684\u95ee\u9898\u3002\u4f8b\u5982&#xff0c;2024\u5e741\u6708\u505a\u56de\u6d4b&#xff0c;\u4f60&#034;\u770b\u5230&#034;\u7684\u662f2023\u5e74\u5e74\u62a5\u7684\u6570\u636e&#xff08;\u901a\u5e38\u57283-4\u6708\u624d\u516c\u5e03&#xff09;&#xff0c;\u8fd9\u5c5e\u4e8e&#034;\u5077\u770b\u7b54\u6848&#034;\u2014\u2014\u5b9e\u76d8\u4e2d1\u6708\u4efd\u6839\u672c\u4e0d\u77e5\u9053\u8fd9\u4e2a\u6570\u636e\u3002<\/p>\n<h4 id=\"e4bba3e7a081e6bc94e7a4ba-1\">\u4ee3\u7801\u6f14\u793a<\/h4>\n<p>\u4e0b\u9762\u5b9e\u73b0\u4e00\u4e2a\u6570\u636e\u6e05\u6d17\u5668&#xff0c;\u81ea\u52a8\u5904\u7406\u4e0a\u8ff0\u56db\u7c7b\u95ee\u9898&#xff1a;<\/p>\n<p>class DataCleaner:<br \/>\n    &#034;&#034;&#034;\u5c0f\u6674\u7684\u6e05\u6d17\u5de5\u5177\u7bb1&#034;&#034;&#034;<\/p>\n<p>    &#064;staticmethod<br \/>\n    def clean_daily_kline(df: pd.DataFrame) -&gt; pd.DataFrame:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u6e05\u6d17\u65e5\u7ebf\u6570\u636e&#xff1a;\u5904\u7406\u505c\u724c\u3001\u7f3a\u5931\u503c\u3001\u5f02\u5e38\u4ef7\u683c<\/p>\n<p>        \u53c2\u6570&#xff1a;<br \/>\n            df: \u65e5\u7ebfDataFrame&#xff0c;index\u4e3a\u65e5\u671f&#xff0c;\u5305\u542b\u5f00\u76d8\/\u6536\u76d8\/\u6700\u9ad8\/\u6700\u4f4e\/\u6210\u4ea4\u91cf<br \/>\n        &#034;&#034;&#034;<br \/>\n        cleaned &#061; df.copy()<\/p>\n<p>        # 1. \u6807\u8bb0\u505c\u724c\u65e5&#xff1a;\u6210\u4ea4\u91cf&#061;0 \u6216 \u6700\u9ad8\u4ef7&#061;\u6700\u4f4e\u4ef7&#xff08;\u4e00\u5b57\u505c\u724c&#xff09;<br \/>\n        cleaned[&#039;is_suspended&#039;] &#061; (<br \/>\n            (cleaned[&#039;\u6210\u4ea4\u91cf&#039;] &#061;&#061; 0) |<br \/>\n            (cleaned[&#039;\u6700\u9ad8&#039;] &#061;&#061; cleaned[&#039;\u6700\u4f4e&#039;])<br \/>\n        )<\/p>\n<p>        # 2. \u524d\u5411\u586b\u5145\u505c\u724c\u65e5\u7684\u6536\u76d8\u4ef7&#xff08;\u7528\u4e8e\u8ba1\u7b97\u6536\u76ca\u7387\u65f6\u4fdd\u6301\u8fde\u7eed\u6027&#xff09;<br \/>\n        cleaned[&#039;close_ffill&#039;] &#061; cleaned[&#039;\u6536\u76d8&#039;].replace(<br \/>\n            cleaned[cleaned[&#039;is_suspended&#039;]][&#039;\u6536\u76d8&#039;], pd.NA<br \/>\n        ).ffill()<\/p>\n<p>        # 3. \u68c0\u6d4b\u5f02\u5e38\u4ef7\u683c\u53d8\u52a8&#xff1a;\u5355\u65e5\u6da8\u8dcc\u5e45\u8d85\u8fc7\u6da8\u8dcc\u505c\u9650\u5236<br \/>\n        cleaned[&#039;pct_change&#039;] &#061; cleaned[&#039;\u6536\u76d8&#039;].pct_change()<br \/>\n        cleaned[&#039;is_abnormal&#039;] &#061; abs(cleaned[&#039;pct_change&#039;]) &gt; 0.11  # \u4e3b\u677f\u00b110%\u9608\u503c<\/p>\n<p>        if cleaned[&#039;is_abnormal&#039;].sum() &gt; 0:<br \/>\n            abnormal_dates &#061; cleaned[cleaned[&#039;is_abnormal&#039;]].index<br \/>\n            print(f&#034;\u68c0\u6d4b\u5230 {len(abnormal_dates)} \u4e2a\u5f02\u5e38\u53d8\u52a8\u65e5&#xff1a;&#034;)<br \/>\n            for d in abnormal_dates:<br \/>\n                pct &#061; cleaned.loc[d, &#039;pct_change&#039;]<br \/>\n                print(f&#034;  {d.strftime(&#039;%Y-%m-%d&#039;)}: &#034;<br \/>\n                      f&#034;{pct:&#043;.2%}&#xff08;\u53ef\u80fd\u4e3a\u590d\u6743\u6216\u6570\u636e\u9519\u8bef&#xff09;&#034;)<\/p>\n<p>        return cleaned<\/p>\n<p>    &#064;staticmethod<br \/>\n    def filter_financial_extremes(df: pd.DataFrame,<br \/>\n                                   columns: list) -&gt; pd.DataFrame:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8fc7\u6ee4\u8d22\u52a1\u6570\u636e\u4e2d\u7684\u6781\u7aef\u503c<\/p>\n<p>        \u53c2\u6570&#xff1a;<br \/>\n            df: \u8d22\u52a1\u6570\u636eDataFrame<br \/>\n            columns: \u9700\u8981\u8fc7\u6ee4\u7684\u5217\u540d\u5217\u8868&#xff08;\u5982[&#039;pe&#039;, &#039;pb&#039;]&#xff09;<br \/>\n        &#034;&#034;&#034;<br \/>\n        for col in columns:<br \/>\n            if col not in df.columns:<br \/>\n                continue<br \/>\n            # \u8ba1\u7b971%\u548c99%\u5206\u4f4d\u6570<br \/>\n            lower_bound &#061; df[col].quantile(0.01)<br \/>\n            upper_bound &#061; df[col].quantile(0.99)<br \/>\n            # \u5c06\u8d85\u51fa\u8303\u56f4\u7684\u6807\u8bb0\u4e3aNaN<br \/>\n            mask &#061; (df[col] &lt; lower_bound) | (df[col] &gt; upper_bound)<br \/>\n            df.loc[mask, col] &#061; pd.NA<br \/>\n            extreme_count &#061; mask.sum()<br \/>\n            if extreme_count &gt; 0:<br \/>\n                print(f&#034;  [{col}] \u5254\u9664 {extreme_count} \u4e2a\u6781\u7aef\u503c &#034;<br \/>\n                      f&#034;&#xff08;\u8303\u56f4&#xff1a;{lower_bound:.2f} ~ {upper_bound:.2f}&#xff09;&#034;)<br \/>\n        return df<\/p>\n<p>    &#064;staticmethod<br \/>\n    def align_report_date(df: pd.DataFrame,<br \/>\n                          report_col: str &#061; &#039;\u62a5\u544a\u671f&#039;) -&gt; pd.DataFrame:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8d22\u52a1\u6570\u636e\u65f6\u70b9\u5bf9\u9f50&#xff1a;\u5c06\u62a5\u544a\u671f\u6620\u5c04\u5230\u5b9e\u9645\u53ef\u7528\u7684\u6700\u65e9\u65e5\u671f<\/p>\n<p>        A\u80a1\u5e74\u62a5\u622a\u6b62\u65e5\u4e3a4\u670830\u65e5&#xff0c;\u4e2d\u62a5\u4e3a8\u670831\u65e5&#xff0c;\u5b63\u62a5\u4e3a\u5f53\u5b63\u672b\u6b21\u6708<br \/>\n        \u4f8b\u5982&#xff1a;2023-12-31\u7684\u5e74\u62a5&#xff0c;actual_date &#061; 2024-04-30<br \/>\n        &#034;&#034;&#034;<br \/>\n        df &#061; df.copy()<br \/>\n        df[report_col] &#061; pd.to_datetime(df[report_col])<\/p>\n<p>        def get_available_date(report_date):<br \/>\n            month &#061; report_date.month<br \/>\n            year &#061; report_date.year<br \/>\n            if month &#061;&#061; 12:   # \u5e74\u62a5&#xff1a;\u6b21\u5e744\u670830\u65e5\u53ef\u7528<br \/>\n                return pd.Timestamp(year &#043; 1, 4, 30)<br \/>\n            elif month &#061;&#061; 6:  # \u4e2d\u62a5&#xff1a;\u5f53\u5e748\u670831\u65e5\u53ef\u7528<br \/>\n                return pd.Timestamp(year, 8, 31)<br \/>\n            elif month &#061;&#061; 9:  # \u4e09\u5b63\u62a5&#xff1a;\u5f53\u5e7410\u670831\u65e5\u53ef\u7528<br \/>\n                return pd.Timestamp(year, 10, 31)<br \/>\n            elif month &#061;&#061; 3:  # \u4e00\u5b63\u62a5&#xff1a;\u5f53\u5e744\u670830\u65e5\u53ef\u7528<br \/>\n                return pd.Timestamp(year, 4, 30)<br \/>\n            return report_date<\/p>\n<p>        df[&#039;available_date&#039;] &#061; df[report_col].apply(get_available_date)<br \/>\n        return df<\/p>\n<h4 id=\"e585b3e994aee8a681e782b9-1\">\u5173\u952e\u8981\u70b9<\/h4>\n<ul>\n<li>\u524d\u590d\u6743\u662fA\u80a1\u56de\u6d4b\u7684&#034;\u9ed8\u8ba4\u9009\u9879&#034;\u2014\u2014\u5b83\u4fdd\u8bc1\u9664\u6743\u9664\u606f\u4e0d\u4f1a\u5728K\u7ebf\u56fe\u4e0a\u7559&#034;\u7f3a\u53e3&#034;<\/li>\n<li>\u505c\u724c\u671f\u95f4\u7684\u6570\u636e\u5904\u7406\u5f71\u54cd\u56de\u6d4b\u7ed3\u679c\u2014\u2014\u5982\u679c\u7b56\u7565\u5728\u505c\u724c\u671f\u95f4\u4ea7\u751f\u4fe1\u53f7\u4f46\u65e0\u6cd5\u6267\u884c&#xff0c;\u9700\u8981\u6807\u8bb0\u4e3a&#034;\u65e0\u6548\u4fe1\u53f7&#034;<\/li>\n<li>\u8d22\u52a1\u6570\u636e\u65f6\u70b9\u5339\u914d\u4e25\u91cd\u4e14\u666e\u904d\u88ab\u5ffd\u89c6\u2014\u2014\u5f88\u591a\u7b56\u7565\u56de\u6d4b\u51c0\u503c\u6f02\u4eae&#xff0c;\u5b9e\u76d8\u60e8\u4e0d\u5fcd\u7779&#xff0c;\u539f\u56e0\u4e4b\u4e00\u5c31\u662f\u7528\u4e86&#034;\u672a\u6765\u8d22\u52a1\u6570\u636e&#034;<\/li>\n<li>\u6e05\u6d17\u89c4\u5219\u4e0d\u80fd\u4e00\u5200\u5207\u2014\u2014\u79d1\u521b\u677f\u6da8\u8dcc\u505c\u00b120%&#xff0c;\u9700\u8981\u52a8\u6001\u8c03\u6574\u5f02\u5e38\u6ce2\u52a8\u7684\u68c0\u6d4b\u9608\u503c<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"43-%E5%82%AC%E5%8C%96%E5%89%82%E8%AF%86%E5%88%AB%E7%94%A8%E5%A4%A7%E6%A8%A1%E5%9E%8B%E8%AF%BB%E6%87%82%E5%B8%82%E5%9C%BA%E4%BA%8B%E4%BB%B6\">4.3 \u50ac\u5316\u5242\u8bc6\u522b\u2014\u2014\u7528\u5927\u6a21\u578b\u8bfb\u61c2\u5e02\u573a\u4e8b\u4ef6<\/h3>\n<h4 id=\"e6a682e5bfb5e8aeb2e8a7a3-2\">\u6982\u5ff5\u8bb2\u89e3<\/h4>\n<p>\u9664\u4e86\u7ed3\u6784\u5316\u6570\u636e&#xff08;\u4ef7\u683c\u3001\u8d22\u52a1&#xff09;&#xff0c;\u5e02\u573a\u8fd8\u5b58\u5728\u5927\u91cf\u975e\u7ed3\u6784\u5316\u4fe1\u606f\u2014\u2014\u65b0\u95fb\u516c\u544a\u3001\u653f\u7b56\u6587\u4ef6\u3001\u884c\u4e1a\u7814\u62a5\u3001\u793e\u4ea4\u5a92\u4f53\u8ba8\u8bba\u3002\u8fd9\u4e9b\u4fe1\u606f\u4e2d\u8574\u85cf\u7740\u53ef\u80fd\u7684&#034;\u50ac\u5316\u5242\u4e8b\u4ef6&#034;&#xff1a;<\/p>\n<ul>\n<li>\u8d85\u9884\u671f\u8d22\u62a5&#xff08;\u51c0\u5229\u6da6\u5927\u5e45\u8d85\u51fa\u5206\u6790\u5e08\u4e00\u81f4\u9884\u671f&#xff09;<\/li>\n<li>\u653f\u7b56\u5229\u597d&#xff08;\u5982\u65b0\u80fd\u6e90\u8865\u8d34\u3001\u534a\u5bfc\u4f53\u51cf\u7a0e&#xff09;<\/li>\n<li>\u91cd\u5927\u5408\u540c\u516c\u544a&#xff08;\u5982\u4e2d\u6807\u5927\u989d\u9879\u76ee&#xff09;<\/li>\n<li>\u8d1f\u9762\u4e8b\u4ef6&#xff08;\u5982\u88ab\u7acb\u6848\u8c03\u67e5\u3001\u9ad8\u7ba1\u51fa\u4e8b\u3001\u4ea7\u54c1\u53ec\u56de&#xff09;<\/li>\n<\/ul>\n<p>\u4f20\u7edf\u65b9\u6cd5\u7528\u5173\u952e\u8bcd\u5339\u914d\u6765\u8bc6\u522b\u4e8b\u4ef6&#xff08;\u5982&#034;\u540c\u6bd4\u589e\u957f &#043; \u51c0\u5229\u6da6 &gt; 100%&#034;&#xff09;&#xff0c;\u4f46\u4f1a\u6f0f\u6389\u5f88\u591a&#034;\u4e0d\u50cf\u5173\u952e\u8bcd\u4f46\u786e\u5b9e\u662f\u4e8b\u4ef6&#034;\u7684\u60c5\u51b5\u3002\u5927\u6a21\u578b\u5728\u8fd9\u4e00\u6b65\u5927\u6709\u7528\u6b66\u4e4b\u5730\u2014\u2014\u5b83\u80fd\u7406\u89e3\u53e5\u5b50\u7684\u8bed\u4e49&#xff0c;\u800c\u4e0d\u53ea\u662f\u626b\u63cf\u5173\u952e\u8bcd\u3002<\/p>\n<p>\u5c0f\u6674\u7684\u5de5\u4f5c\u6d41\u7a0b\u662f&#xff1a;<\/p>\n<li>\u5b9a\u65f6\u6293\u53d6\u6700\u65b0\u516c\u544a\/\u65b0\u95fb\u6807\u9898\u548c\u6458\u8981<\/li>\n<li>\u8c03\u7528\u5927\u6a21\u578b&#xff0c;\u5224\u65ad\u6bcf\u6761\u4fe1\u606f\u662f\u5426\u4e3a&#034;\u503c\u5f97\u5173\u6ce8\u7684\u50ac\u5316\u5242\u4e8b\u4ef6&#034;<\/li>\n<li>\u5982\u679c\u662f&#xff0c;\u63d0\u53d6\u4e8b\u4ef6\u7c7b\u578b\u3001\u5f71\u54cd\u65b9\u5411&#xff08;\u5229\u597d\/\u5229\u7a7a&#xff09;\u3001\u5f71\u54cd\u7b49\u7ea7<\/li>\n<li>\u5b58\u5165\u672c\u5730\u4e8b\u4ef6\u6570\u636e\u5e93&#xff0c;\u4f9b\u5c0f\u96c5\u540e\u7eed\u5728\u7b56\u7565\u7814\u7a76\u4e2d\u53c2\u8003<\/li>\n<h4 id=\"e4bba3e7a081e6bc94e7a4ba-2\">\u4ee3\u7801\u6f14\u793a<\/h4>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u5229\u7528OpenAI API&#xff08;\u6216\u5176\u4ed6\u517c\u5bb9\u63a5\u53e3&#xff09;\u505a\u50ac\u5316\u5242\u4e8b\u4ef6\u8bc6\u522b\u7684\u65b9\u6cd5&#xff1a;<\/p>\n<p>&#034;&#034;&#034;<br \/>\n\u5c0f\u6674\u50ac\u5316\u5242\u4e8b\u4ef6\u8bc6\u522b\u6a21\u5757<br \/>\n\u2014\u2014 \u8ba9\u5927\u6a21\u578b\u5e2e\u4f60\u8bfb\u516c\u544a&#xff0c;\u63d0\u53d6\u7ed3\u6784\u5316\u4e8b\u4ef6\u4fe1\u606f<br \/>\n&#034;&#034;&#034;<br \/>\nimport json<\/p>\n<p>class CatalystDetector:<br \/>\n    &#034;&#034;&#034;\u50ac\u5316\u5242\u4e8b\u4ef6\u8bc6\u522b\u5668&#034;&#034;&#034;<\/p>\n<p>    # \u5b9a\u4e49\u63d0\u793a\u8bcd\u6a21\u677f<br \/>\n    DETECTION_PROMPT &#061; &#034;&#034;&#034;\u4f60\u662f\u4e00\u4e2aA\u80a1\u5e02\u573a\u4e8b\u4ef6\u5206\u6790\u4e13\u5bb6\u3002\u8bf7\u9605\u8bfb\u4ee5\u4e0b\u65b0\u95fb\/\u516c\u544a&#xff0c;\u5224\u65ad\u5b83\u662f\u5426\u662f\u4e00\u4e2a\u503c\u5f97\u91cf\u5316\u7b56\u7565\u5173\u6ce8\u7684&#034;\u50ac\u5316\u5242\u4e8b\u4ef6&#034;\u3002<\/p>\n<p>\u8f93\u51fa\u8981\u6c42&#xff1a;\u4e25\u683c\u8fd4\u56deJSON\u683c\u5f0f&#xff0c;\u5305\u542b\u4ee5\u4e0b\u5b57\u6bb5&#xff1a;<br \/>\n&#8211; is_catalyst: true\/false&#xff0c;\u662f\u5426\u6784\u6210\u50ac\u5316\u5242<br \/>\n&#8211; event_type: \u4e8b\u4ef6\u7c7b\u578b&#xff08;\u8d85\u9884\u671f\u4e1a\u7ee9\/\u653f\u7b56\u5229\u597d\/\u91cd\u5927\u5408\u540c\/\u884c\u4e1a\u53d8\u9769\/\u98ce\u9669\u8b66\u793a\/\u5176\u4ed6&#xff09;<br \/>\n&#8211; direction: \u5bf9\u80a1\u4ef7\u7684\u53ef\u80fd\u5f71\u54cd&#xff08;positive\/negative\/neutral&#xff09;<br \/>\n&#8211; impact_level: \u5f71\u54cd\u7a0b\u5ea6&#xff08;high\/medium\/low&#xff09;<br \/>\n&#8211; summary: \u4e00\u53e5\u8bdd\u603b\u7ed3\u4e8b\u4ef6&#xff08;\u4e0d\u8d85\u8fc730\u5b57&#xff09;<\/p>\n<p>\u65b0\u95fb\u5185\u5bb9&#xff1a;<br \/>\n{news_text}<\/p>\n<p>\u8bf7\u4ec5\u8fd4\u56deJSON&#xff0c;\u4e0d\u8981\u6709\u5176\u4ed6\u6587\u5b57\u3002&#034;&#034;&#034;<\/p>\n<p>    def __init__(self, api_key&#061;None, base_url&#061;None):<br \/>\n        &#034;&#034;&#034;\u521d\u59cb\u5316&#xff1a;\u914d\u7f6e\u5927\u6a21\u578bAPI&#xff08;\u4f7f\u7528OpenAI\u517c\u5bb9\u63a5\u53e3&#xff09;&#034;&#034;&#034;<br \/>\n        self.api_key &#061; api_key or os.getenv(&#034;OPENAI_API_KEY&#034;)<br \/>\n        self.base_url &#061; base_url or os.getenv(&#034;OPENAI_BASE_URL&#034;)<\/p>\n<p>    def detect(self, news_text: str) -&gt; dict:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u8bc6\u522b\u5355\u6761\u65b0\u95fb\u662f\u5426\u5305\u542b\u50ac\u5316\u5242\u4e8b\u4ef6<\/p>\n<p>        \u5728\u5b9e\u9645\u90e8\u7f72\u4e2d&#xff0c;\u8fd9\u4e2a\u51fd\u6570\u4f1a\u88ab\u6279\u91cf\u8c03\u7528&#xff0c;<br \/>\n        \u5904\u7406\u6bcf\u5929\u65b0\u51fa\u73b0\u7684\u6570\u767e\u6761\u516c\u544a\u548c\u65b0\u95fb<br \/>\n        &#034;&#034;&#034;<br \/>\n        try:<br \/>\n            # \u4f7f\u7528openai\u5e93&#xff08;pip install openai&#xff09;<br \/>\n            from openai import OpenAI<br \/>\n            client &#061; OpenAI(api_key&#061;self.api_key, base_url&#061;self.base_url)<\/p>\n<p>            response &#061; client.chat.completions.create(<br \/>\n                model&#061;&#034;gpt-4o-mini&#034;,  # \u4f7f\u7528\u8f7b\u91cf\u6a21\u578b\u964d\u4f4eAPI\u6210\u672c<br \/>\n                messages&#061;[<br \/>\n                    {&#034;role&#034;: &#034;system&#034;, &#034;content&#034;: &#034;\u4f60\u662f\u4e00\u4e2aA\u80a1\u4e8b\u4ef6\u5206\u6790\u52a9\u624b&#xff0c;\u8bf7\u4e25\u683c\u6309JSON\u683c\u5f0f\u56de\u590d\u3002&#034;},<br \/>\n                    {&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: self.DETECTION_PROMPT.format(<br \/>\n                        news_text&#061;news_text<br \/>\n                    )}<br \/>\n                ],<br \/>\n                temperature&#061;0.1,  # \u4f4e\u6e29\u5ea6\u4fdd\u8bc1\u8f93\u51fa\u683c\u5f0f\u7a33\u5b9a<br \/>\n                max_tokens&#061;200<br \/>\n            )<\/p>\n<p>            result &#061; json.loads(response.choices[0].message.content)<br \/>\n            return result<\/p>\n<p>        except Exception as e:<br \/>\n            print(f&#034;\u50ac\u5316\u5242\u8bc6\u522b\u5931\u8d25&#xff1a;{e}&#034;)<br \/>\n            return {&#034;is_catalyst&#034;: False, &#034;error&#034;: str(e)}<\/p>\n<p>    def batch_detect(self, news_list: list) -&gt; list:<br \/>\n        &#034;&#034;&#034;\u6279\u91cf\u8bc6\u522b&#xff0c;\u8fd4\u56de\u6240\u6709\u88ab\u6807\u8bb0\u4e3a\u50ac\u5316\u5242\u7684\u4e8b\u4ef6&#034;&#034;&#034;<br \/>\n        catalysts &#061; []<br \/>\n        for i, news in enumerate(news_list):<br \/>\n            result &#061; self.detect(news)<br \/>\n            if result.get(&#039;is_catalyst&#039;):<br \/>\n                catalysts.append({<br \/>\n                    **result,<br \/>\n                    &#039;original_news&#039;: news,<br \/>\n                    &#039;detected_at&#039;: datetime.now().isoformat()<br \/>\n                })<br \/>\n            if (i &#043; 1) % 50 &#061;&#061; 0:<br \/>\n                print(f&#034;\u5df2\u5904\u7406 {i&#043;1}\/{len(news_list)} \u6761\u65b0\u95fb&#8230;&#034;)<br \/>\n        print(f&#034;\u5171\u8bc6\u522b\u51fa {len(catalysts)} \u6761\u50ac\u5316\u5242\u4e8b\u4ef6&#034;)<br \/>\n        return catalysts<\/p>\n<p># &#061;&#061;&#061; \u4f7f\u7528\u793a\u4f8b &#061;&#061;&#061;<br \/>\n# detector &#061; CatalystDetector(api_key&#061;&#034;your-api-key&#034;)<br \/>\n# test_news &#061; &#034;\u8d35\u5dde\u8305\u53f02024\u5e74\u7b2c\u4e09\u5b63\u5ea6\u51c0\u5229\u6da6\u540c\u6bd4\u589e\u957f25%&#xff0c;\u8d85\u51fa\u5e02\u573a\u9884\u671f\u768418%&#034;<br \/>\n# result &#061; detector.detect(test_news)<br \/>\n# print(json.dumps(result, ensure_ascii&#061;False, indent&#061;2))<br \/>\nprint(&#034;\u50ac\u5316\u5242\u8bc6\u522b\u6a21\u5757\u52a0\u8f7d\u5b8c\u6210\u3002\u5b9e\u9645\u4f7f\u7528\u9700\u914d\u7f6e\u5927\u6a21\u578bAPI\u5bc6\u94a5\u3002&#034;)<\/p>\n<h4 id=\"e585b3e994aee8a681e782b9-2\">\u5173\u952e\u8981\u70b9<\/h4>\n<ul>\n<li>\u5927\u6a21\u578b\u8bc6\u522b\u4e8b\u4ef6\u7684\u51c6\u786e\u7387\u8fdc\u9ad8\u4e8e\u5173\u952e\u8bcd\u5339\u914d&#xff08;\u7ea685% vs 60%&#xff09;&#xff0c;\u4f46API\u8c03\u7528\u6709\u6210\u672c&#xff0c;\u9700\u8981\u5408\u7406\u63a7\u5236\u6bcf\u65e5\u8c03\u7528\u91cf<\/li>\n<li>temperature\u8bbe\u4e3a0.1\u662f\u4e3a\u4e86\u4fdd\u8bc1JSON\u683c\u5f0f\u8f93\u51fa\u53ef\u89e3\u6790&#xff0c;\u907f\u514d\u6a21\u578b&#034;\u53d1\u6325\u521b\u610f&#034;\u7834\u574f\u7ed3\u6784\u5316\u6570\u636e<\/li>\n<li>\u50ac\u5316\u5242\u4e8b\u4ef6\u662f&#034;\u52a0\u5206\u9879&#034;\u800c\u975e&#034;\u5fc5\u9700\u9879&#034;\u2014\u2014\u5373\u4f7f\u4e0d\u7528\u5927\u6a21\u578b&#xff0c;\u7eaf\u7ed3\u6784\u5316\u6570\u636e\u7684\u7b56\u7565\u4e5f\u80fd\u76c8\u5229<\/li>\n<li>\u4e8b\u4ef6\u5f71\u54cd\u7684\u65f6\u95f4\u8870\u51cf\u5f88\u5feb\u2014\u2014\u4e00\u6761\u5229\u597d\u516c\u544a\u7684\u5e02\u573a\u6548\u5e94\u901a\u5e38\u57283-5\u4e2a\u4ea4\u6613\u65e5\u5185\u6d88\u5316\u5b8c\u6bd5<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"44-%E6%9C%AC%E5%9C%B0%E6%95%B0%E6%8D%AE%E5%BA%93%E8%AE%A9%E6%89%80%E6%9C%89%E6%95%B0%E6%8D%AE%E8%A7%A6%E6%89%8B%E5%8F%AF%E5%8F%8A\">4.4 \u672c\u5730\u6570\u636e\u5e93\u2014\u2014\u8ba9\u6240\u6709\u6570\u636e\u89e6\u624b\u53ef\u53ca<\/h3>\n<h4 id=\"e6a682e5bfb5e8aeb2e8a7a3-3\">\u6982\u5ff5\u8bb2\u89e3<\/h4>\n<p>\u524d\u9762\u4e09\u8282\u5206\u522b\u91c7\u96c6\u4e86\u884c\u60c5\u6570\u636e\u3001\u8d22\u52a1\u6570\u636e\u548c\u4e8b\u4ef6\u6570\u636e\u3002\u73b0\u5728\u9700\u8981\u628a\u5b83\u4eec\u7edf\u4e00\u5b58\u50a8\u5230\u4e00\u4e2a\u7ed3\u6784\u5316\u7684\u672c\u5730\u6570\u636e\u5e93\u4e2d\u3002\u63a8\u8350\u4f7f\u7528\u4e24\u79cd\u683c\u5f0f\u7684\u7ec4\u5408&#xff1a;<\/p>\n<table>\n<tr>\u5b58\u50a8\u683c\u5f0f\u9002\u7528\u6570\u636e\u4f18\u70b9\u7f3a\u70b9<\/tr>\n<tbody>\n<tr>\n<td>HDF5<\/td>\n<td>\u5927\u89c4\u6a21\u884c\u60c5\u6570\u636e&#xff08;\u6570\u5343\u53ea\u80a1\u7968 \u00d7 \u5341\u5e74\u65e5\u7ebf&#xff09;<\/td>\n<td>\u8bfb\u5199\u6781\u5feb&#xff0c;\u652f\u6301\u538b\u7f29&#xff0c;\u5355\u6587\u4ef6\u5b58\u50a8<\/td>\n<td>\u5e76\u53d1\u5199\u5165\u80fd\u529b\u5f31<\/td>\n<\/tr>\n<tr>\n<td>SQLite<\/td>\n<td>\u8d22\u52a1\u6570\u636e\u3001\u4e8b\u4ef6\u6570\u636e&#xff08;\u5b57\u6bb5\u7ed3\u6784\u56fa\u5b9a&#xff09;<\/td>\n<td>\u652f\u6301SQL\u67e5\u8be2&#xff0c;\u591a\u8868\u5173\u8054<\/td>\n<td>\u5199\u5165\u901f\u5ea6\u4e0d\u5982HDF5<\/td>\n<\/tr>\n<tr>\n<td>Parquet<\/td>\n<td>\u4e2d\u95f4\u8ba1\u7b97\u7ed3\u679c\u3001\u56e0\u5b50\u503c<\/td>\n<td>\u5217\u5f0f\u5b58\u50a8&#xff0c;\u538b\u7f29\u7387\u9ad8<\/td>\n<td>\u4e0d\u652f\u6301\u539f\u5730\u66f4\u65b0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"e4bba3e7a081e6bc94e7a4ba-3\">\u4ee3\u7801\u6f14\u793a<\/h4>\n<p>\u4e0b\u9762\u6784\u5efa\u4e00\u4e2a\u7edf\u4e00\u7684\u672c\u5730\u6570\u636e\u8bbf\u95ee\u5c42&#xff1a;<\/p>\n<p>import sqlite3<br \/>\nimport pandas as pd<\/p>\n<p>class LocalDataWarehouse:<br \/>\n    &#034;&#034;&#034;\u5c0f\u6674\u7684\u672c\u5730\u6570\u636e\u4ed3\u5e93\u2014\u2014\u6240\u6709\u6570\u636e\u6e90\u7684\u7edf\u4e00\u8bbf\u95ee\u5165\u53e3&#034;&#034;&#034;<\/p>\n<p>    def __init__(self, base_dir&#061;&#034;.\/local_data&#034;):<br \/>\n        self.base_dir &#061; base_dir<br \/>\n        # \u521d\u59cb\u5316SQLite\u6570\u636e\u5e93<br \/>\n        self.db_path &#061; os.path.join(base_dir, &#034;quant_db.sqlite&#034;)<br \/>\n        self._init_db()<\/p>\n<p>    def _init_db(self):<br \/>\n        &#034;&#034;&#034;\u521b\u5efa\u6570\u636e\u5e93\u8868\u7ed3\u6784&#034;&#034;&#034;<br \/>\n        conn &#061; sqlite3.connect(self.db_path)<br \/>\n        cursor &#061; conn.cursor()<\/p>\n<p>        # \u4e8b\u4ef6\u8868&#xff1a;\u5b58\u50a8\u8bc6\u522b\u51fa\u7684\u50ac\u5316\u5242\u4e8b\u4ef6<br \/>\n        cursor.execute(&#034;&#034;&#034;<br \/>\n            CREATE TABLE IF NOT EXISTS catalyst_events (<br \/>\n                id INTEGER PRIMARY KEY AUTOINCREMENT,<br \/>\n                stock_code TEXT NOT NULL,       &#8212; \u80a1\u7968\u4ee3\u7801<br \/>\n                event_type TEXT,                &#8212; \u4e8b\u4ef6\u7c7b\u578b<br \/>\n                direction TEXT,                 &#8212; \u5229\u597d\/\u5229\u7a7a<br \/>\n                impact_level TEXT,              &#8212; \u5f71\u54cd\u7a0b\u5ea6<br \/>\n                summary TEXT,                   &#8212; \u4e8b\u4ef6\u6458\u8981<br \/>\n                detected_at TEXT,               &#8212; \u68c0\u6d4b\u65f6\u95f4<br \/>\n                source_url TEXT                 &#8212; \u6765\u6e90\u94fe\u63a5<br \/>\n            )<br \/>\n        &#034;&#034;&#034;)<\/p>\n<p>        # \u4ea4\u6613\u65e5\u5386\u8868&#xff1a;\u7528\u4e8e\u5feb\u901f\u5224\u65ad\u67d0\u5929\u662f\u5426\u4e3a\u4ea4\u6613\u65e5<br \/>\n        cursor.execute(&#034;&#034;&#034;<br \/>\n            CREATE TABLE IF NOT EXISTS trading_calendar (<br \/>\n                trade_date TEXT PRIMARY KEY,<br \/>\n                is_trading_day INTEGER DEFAULT 1<br \/>\n            )<br \/>\n        &#034;&#034;&#034;)<\/p>\n<p>        conn.commit()<br \/>\n        conn.close()<br \/>\n        print(f&#034;\u6570\u636e\u4ed3\u5e93\u521d\u59cb\u5316\u5b8c\u6210&#xff1a;{self.db_path}&#034;)<\/p>\n<p>    def insert_event(self, stock_code: str, event_data: dict):<br \/>\n        &#034;&#034;&#034;\u5199\u5165\u4e00\u6761\u50ac\u5316\u5242\u4e8b\u4ef6&#034;&#034;&#034;<br \/>\n        conn &#061; sqlite3.connect(self.db_path)<br \/>\n        conn.execute(&#034;&#034;&#034;<br \/>\n            INSERT INTO catalyst_events<br \/>\n            (stock_code, event_type, direction, impact_level, summary, detected_at)<br \/>\n            VALUES (?, ?, ?, ?, ?, ?)<br \/>\n        &#034;&#034;&#034;, (<br \/>\n            stock_code,<br \/>\n            event_data.get(&#039;event_type&#039;),<br \/>\n            event_data.get(&#039;direction&#039;),<br \/>\n            event_data.get(&#039;impact_level&#039;),<br \/>\n            event_data.get(&#039;summary&#039;),<br \/>\n            datetime.now().isoformat()<br \/>\n        ))<br \/>\n        conn.commit()<br \/>\n        conn.close()<\/p>\n<p>    def query_events(self, stock_code&#061;None, days&#061;7):<br \/>\n        &#034;&#034;&#034;\u67e5\u8be2\u6700\u8fd1\u7684\u50ac\u5316\u5242\u4e8b\u4ef6&#034;&#034;&#034;<br \/>\n        cutoff &#061; (datetime.now() &#8211; timedelta(days&#061;days)).isoformat()<br \/>\n        conn &#061; sqlite3.connect(self.db_path)<br \/>\n        query &#061; &#034;SELECT * FROM catalyst_events WHERE detected_at &gt;&#061; ?&#034;<br \/>\n        params &#061; [cutoff]<br \/>\n        if stock_code:<br \/>\n            query &#043;&#061; &#034; AND stock_code &#061; ?&#034;<br \/>\n            params.append(stock_code)<br \/>\n        df &#061; pd.read_sql_query(query, conn, params&#061;params)<br \/>\n        conn.close()<br \/>\n        return df<\/p>\n<p>    def get_daily_data(self, stock_code):<br \/>\n        &#034;&#034;&#034;\u4eceCSV\u5feb\u901f\u8bfb\u53d6\u65e5\u7ebf\u6570\u636e&#034;&#034;&#034;<br \/>\n        file_path &#061; os.path.join(self.base_dir, &#034;daily&#034;, f&#034;{stock_code}.csv&#034;)<br \/>\n        if not os.path.exists(file_path):<br \/>\n            raise FileNotFoundError(f&#034;\u65e5\u7ebf\u6570\u636e\u4e0d\u5b58\u5728&#xff1a;{file_path}&#xff0c;\u8bf7\u5148\u8fd0\u884c\u91c7\u96c6\u5668&#034;)<br \/>\n        return pd.read_csv(file_path, index_col&#061;0, parse_dates&#061;True)<\/p>\n<h4 id=\"e585b3e994aee8a681e782b9-3\">\u5173\u952e\u8981\u70b9<\/h4>\n<ul>\n<li>HDF5\u9002\u5408&#034;\u4e00\u6b21\u5199\u5165\u3001\u591a\u6b21\u8bfb\u53d6&#034;\u7684\u573a\u666f&#xff0c;\u5199\u5165\u65f6\u6ce8\u610f\u52a0\u9501\u907f\u514d\u5e76\u53d1\u51b2\u7a81<\/li>\n<li>SQLite\u867d\u7136\u8f7b\u91cf&#xff0c;\u4f46\u5355\u6587\u4ef6\u6570\u636e\u5e93\u6a21\u5f0f\u975e\u5e38\u9002\u5408\u4e2a\u4eba\u91cf\u5316\u56e2\u961f\u7684\u89c4\u6a21&#xff08;\u6570\u767e\u53ea\u80a1\u7968\u3001\u6570\u5e74\u6570\u636e&#xff09;<\/li>\n<li>\u4e8b\u4ef6\u8868\u8981\u8bb0\u5f55&#034;\u68c0\u6d4b\u65f6\u95f4&#034;\u800c\u975e&#034;\u4e8b\u4ef6\u53d1\u751f\u65f6\u95f4&#034;\u2014\u2014\u540c\u4e00\u4e8b\u4ef6\u53ef\u80fd\u5728\u5c0f\u6674\u548c\u591a\u5904\u6765\u6e90\u540c\u65f6\u88ab\u6355\u83b7<\/li>\n<li>\u6570\u636e\u5907\u4efd\u662f\u5fc5\u987b\u7684\u2014\u2014\u672c\u5730\u6570\u636e\u5e93\u4e0d\u662f\u4e91\u5b58\u50a8&#xff0c;\u786c\u76d8\u6545\u969c\u4f1a\u4e22\u5931\u6240\u6709\u5386\u53f2\u6570\u636e<\/li>\n<\/ul>\n<hr \/>\n<h3 id=\"%E5%AE%9E%E6%88%98%E6%80%BB%E7%BB%93\">\u5b9e\u6218\u603b\u7ed3<\/h3>\n<p>\u672c\u8282\u5c0f\u6674&#xff08;\u60c5\u62a5\u5b98&#xff09;\u5b8c\u6210\u4e86\u4ed6\u7684\u7b2c\u4e00\u6b21&#034;\u5165\u804c\u4efb\u52a1&#034;\u2014\u2014\u642d\u5efa\u4ece\u6570\u636e\u91c7\u96c6\u5230\u672c\u5730\u5b58\u50a8\u7684\u5b8c\u6574\u7ba1\u9053&#xff1a;<\/p>\n<li>\u91c7\u96c6\u7ba1\u9053&#xff1a;\u7edf\u4e00\u7ba1\u7406\u884c\u60c5\u3001\u8d22\u52a1\u3001\u5b8f\u89c2\u4e09\u7c7b\u6570\u636e\u7684\u62c9\u53d6\u903b\u8f91&#xff0c;\u652f\u6301\u589e\u91cf\u66f4\u65b0<\/li>\n<li>\u6e05\u6d17\u89c4\u5219&#xff1a;\u5904\u7406\u590d\u6743\u3001\u505c\u724c\u3001\u8d22\u52a1\u65f6\u70b9\u5339\u914d\u548c\u5f02\u5e38\u503c\u68c0\u6d4b&#xff0c;\u4fdd\u8bc1\u6570\u636e\u8d28\u91cf<\/li>\n<li>\u50ac\u5316\u5242\u8bc6\u522b&#xff1a;\u5229\u7528\u5927\u6a21\u578b\u4ece\u65b0\u95fb\u516c\u544a\u4e2d\u63d0\u53d6\u7ed3\u6784\u5316\u4e8b\u4ef6\u4fe1\u606f&#xff0c;\u8f85\u52a9\u7b56\u7565\u51b3\u7b56<\/li>\n<li>\u6570\u636e\u4ed3\u5e93&#xff1a;HDF5&#043;SQLite\u7ec4\u5408\u5b58\u50a8&#xff0c;\u8ba9\u6240\u6709\u540e\u7eed\u5206\u6790\u90fd\u80fd\u5728\u672c\u5730\u79d2\u7ea7\u8bfb\u53d6<\/li>\n<p>\u5e38\u89c1\u8bef\u533a\u63d0\u9192&#xff1a;<\/p>\n<ul>\n<li>\u8bef\u533a\u4e00&#xff1a;\u6570\u636e\u91c7\u96c6\u9891\u7387\u8d8a\u9ad8\u8d8a\u597d\u3002\u65e5\u7ebf\u7ea7\u522b\u7b56\u7565\u7528\u65e5\u7ebf\u6570\u636e\u8db3\u591f\u4e86&#xff0c;tick\u7ea7\u6570\u636e\u53ea\u4f1a\u5f92\u589e\u5b58\u50a8\u548c\u8ba1\u7b97\u8d1f\u62c5<\/li>\n<li>\u8bef\u533a\u4e8c&#xff1a;\u6240\u6709\u6570\u636e\u90fd\u7528CSV\u5b58\u3002\u767e\u53ea\u80a1\u7968\u4ee5\u4e0a\u7684\u65e5\u7ebf\u6570\u636e\u7528HDF5\u662f\u5fc5\u987b\u7684&#xff0c;CSV\u7684I\/O\u4f1a\u6210\u4e3a\u74f6\u9888<\/li>\n<li>\u8bef\u533a\u4e09&#xff1a;\u5ffd\u7565\u8d22\u52a1\u6570\u636e\u7684\u65f6\u70b9\u5bf9\u9f50\u3002\u8fd9\u662f\u5bfc\u81f4\u56de\u6d4b\u4e0e\u5b9e\u9645\u504f\u5dee\u7684\u6700\u9690\u853d\u539f\u56e0\u2014\u2014&#034;\u5077\u770b\u672a\u6765\u6570\u636e&#034;<\/li>\n<\/ul>\n<p>\u4e0b\u4e00\u8bb2&#xff0c;\u5c0f\u96c5&#xff08;\u5206\u6790\u5e08&#xff09;\u5c06\u63a5\u8fc7\u5c0f\u6674\u51c6\u5907\u597d\u7684\u6570\u636e&#xff0c;\u6b63\u5f0f\u767b\u573a\u2014\u2014\u7528Backtrader\u56de\u6d4b\u5f15\u64ce\u8dd1\u901a\u7b2c\u4e00\u4e2a\u53cc\u5747\u7ebf\u7b56\u7565&#xff0c;\u5e76\u5b66\u4f1a\u89e3\u8bfb\u6536\u76ca\u3001\u56de\u64a4\u3001\u590f\u666e\u6bd4\u7387\u7b49\u6838\u5fc3\u7ee9\u6548\u6307\u6807\u3002<\/p>\n<hr \/>\n<h3 id=\"%E4%B8%8B%E4%B8%80%E7%AF%87%E9%A2%84%E5%91%8A\">\u4e0b\u4e00\u7bc7\u9884\u544a<\/h3>\n<p>\u7b2c05\u8bb2&#xff1a;\u5c0f\u96c5\u521d\u8bd5\u950b\u8292\u2014\u2014Backtrader\u56de\u6d4b\u5f15\u64ce\u5165\u95e8\u5b9e\u6218&#xff1a;\u6570\u636e\u548c\u73af\u5883\u5df2\u5c31\u7eea&#xff0c;\u662f\u65f6\u5019\u8ba9\u7b56\u7565\u63a5\u53d7\u5386\u53f2\u7684\u68c0\u9a8c\u4e86\u3002\u5c0f\u96c5\u5c06\u5e26\u7740\u53cc\u5747\u7ebf\u7b56\u7565\u8d70\u8fdbBacktrader\u7684\u56de\u6d4b\u6218\u573a&#xff0c;\u7528\u771f\u5b9e\u6570\u636e\u56de\u7b54&#034;\u8fd9\u4e2a\u7b56\u7565\u5230\u5e95\u80fd\u4e0d\u80fd\u8d5a\u94b1&#034;\u3002<\/p>\n<hr \/>\n<p>\u5173\u6ce8\u4e13\u680f\u4e0d\u9519\u8fc7\u540e\u7eed\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u7bc7\u5bfc\u8bed\u4e0a\u4e00\u8bb2\u6211\u4eec\u642d\u5efa\u4e86Python\u91cf\u5316\u5f00\u53d1\u73af\u5883&#xff0c;\u5e76\u901a\u8fc7akshare\u5b8c\u6210\u4e86\u7b2c\u4e00\u6b21\\&#8221;\u4ece\u6570\u636e\u5230\u51b3\u7b56\\&#8221;\u7684\u591a\u56e0\u5b50\u9009\u80a1\u5b9e\u9a8c\u3002\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u9690\u60a3\u4f60\u53ef\u80fd\u5df2\u7ecf\u5bdf\u89c9\u4e86&#xff1a;\u6bcf\u6b21\u8fd0\u884c\u7b56\u7565\u90fd\u9700\u8981\u4e34\u65f6\u4ece\u7f51\u4e0a\u6293\u6570\u636e\u2014\u2014\u6162\u3001\u4e0d\u7a33\u5b9a\u3001\u4e0d\u53ef\u590d\u73b0\u3002\u771f\u6b63\u80fd\u6253\u4ed7\u7684\u91cf\u5316\u56e2\u961f&#xff0c;\u7edd\u4e0d\u4f1a\u6bcf\u8dd1\u4e00\u6b21\u56de\u6d4b\u5c31\u53bb\u7f51\u4e0a\u91cd\u65b0\u4e0b\u8f7d\u4e00\u6b21\u6570\u636e\u3002\u4ed6\u4eec\u628a\u6570\u636e\u91c7\u96c6\u3001\u6e05\u6d17\u3001\u5b58\u50a8\u505a\u6210\u4e00\u6761\u81ea\u52a8\u5316\u7ba1\u9053&#xff08;Pipeline&#xff09;&#xff0c;\u9700\u8981\u65f6\u4ece\u672c\u5730\u6570\u636e\u5e93\u79d2\u7ea7\u8bfb\u53d6\u3002\u8fd9\u6761\u6570\u636e\u7ba1\u9053\u5c31\u662f\u91cf\u5316\u4ea4\u6613\u7684<\/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":[50,4677,1158],"topic":[],"class_list":["post-85522","post","type-post","status-publish","format-standard","hentry","category-server","tag-50","tag-4677","tag-1158"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \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\/85522.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5f00\u7bc7\u5bfc\u8bed\u4e0a\u4e00\u8bb2\u6211\u4eec\u642d\u5efa\u4e86Python\u91cf\u5316\u5f00\u53d1\u73af\u5883&#xff0c;\u5e76\u901a\u8fc7akshare\u5b8c\u6210\u4e86\u7b2c\u4e00\u6b21&quot;\u4ece\u6570\u636e\u5230\u51b3\u7b56&quot;\u7684\u591a\u56e0\u5b50\u9009\u80a1\u5b9e\u9a8c\u3002\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u9690\u60a3\u4f60\u53ef\u80fd\u5df2\u7ecf\u5bdf\u89c9\u4e86&#xff1a;\u6bcf\u6b21\u8fd0\u884c\u7b56\u7565\u90fd\u9700\u8981\u4e34\u65f6\u4ece\u7f51\u4e0a\u6293\u6570\u636e\u2014\u2014\u6162\u3001\u4e0d\u7a33\u5b9a\u3001\u4e0d\u53ef\u590d\u73b0\u3002\u771f\u6b63\u80fd\u6253\u4ed7\u7684\u91cf\u5316\u56e2\u961f&#xff0c;\u7edd\u4e0d\u4f1a\u6bcf\u8dd1\u4e00\u6b21\u56de\u6d4b\u5c31\u53bb\u7f51\u4e0a\u91cd\u65b0\u4e0b\u8f7d\u4e00\u6b21\u6570\u636e\u3002\u4ed6\u4eec\u628a\u6570\u636e\u91c7\u96c6\u3001\u6e05\u6d17\u3001\u5b58\u50a8\u505a\u6210\u4e00\u6761\u81ea\u52a8\u5316\u7ba1\u9053&#xff08;Pipeline&#xff09;&#xff0c;\u9700\u8981\u65f6\u4ece\u672c\u5730\u6570\u636e\u5e93\u79d2\u7ea7\u8bfb\u53d6\u3002\u8fd9\u6761\u6570\u636e\u7ba1\u9053\u5c31\u662f\u91cf\u5316\u4ea4\u6613\u7684\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85522.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T09:09:11+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=\"8 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85522.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85522.html\",\"name\":\"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T09:09:11+00:00\",\"dateModified\":\"2026-07-27T09:09:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85522.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85522.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85522.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf\"}]},{\"@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":"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \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\/85522.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5f00\u7bc7\u5bfc\u8bed\u4e0a\u4e00\u8bb2\u6211\u4eec\u642d\u5efa\u4e86Python\u91cf\u5316\u5f00\u53d1\u73af\u5883&#xff0c;\u5e76\u901a\u8fc7akshare\u5b8c\u6210\u4e86\u7b2c\u4e00\u6b21\"\u4ece\u6570\u636e\u5230\u51b3\u7b56\"\u7684\u591a\u56e0\u5b50\u9009\u80a1\u5b9e\u9a8c\u3002\u4f46\u8fd9\u91cc\u6709\u4e00\u4e2a\u9690\u60a3\u4f60\u53ef\u80fd\u5df2\u7ecf\u5bdf\u89c9\u4e86&#xff1a;\u6bcf\u6b21\u8fd0\u884c\u7b56\u7565\u90fd\u9700\u8981\u4e34\u65f6\u4ece\u7f51\u4e0a\u6293\u6570\u636e\u2014\u2014\u6162\u3001\u4e0d\u7a33\u5b9a\u3001\u4e0d\u53ef\u590d\u73b0\u3002\u771f\u6b63\u80fd\u6253\u4ed7\u7684\u91cf\u5316\u56e2\u961f&#xff0c;\u7edd\u4e0d\u4f1a\u6bcf\u8dd1\u4e00\u6b21\u56de\u6d4b\u5c31\u53bb\u7f51\u4e0a\u91cd\u65b0\u4e0b\u8f7d\u4e00\u6b21\u6570\u636e\u3002\u4ed6\u4eec\u628a\u6570\u636e\u91c7\u96c6\u3001\u6e05\u6d17\u3001\u5b58\u50a8\u505a\u6210\u4e00\u6761\u81ea\u52a8\u5316\u7ba1\u9053&#xff08;Pipeline&#xff09;&#xff0c;\u9700\u8981\u65f6\u4ece\u672c\u5730\u6570\u636e\u5e93\u79d2\u7ea7\u8bfb\u53d6\u3002\u8fd9\u6761\u6570\u636e\u7ba1\u9053\u5c31\u662f\u91cf\u5316\u4ea4\u6613\u7684","og_url":"https:\/\/www.wsisp.com\/helps\/85522.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T09:09:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"8 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85522.html","url":"https:\/\/www.wsisp.com\/helps\/85522.html","name":"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T09:09:11+00:00","dateModified":"2026-07-27T09:09:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85522.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85522.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85522.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010AI\u91cf\u5316\u4ea4\u6613\u5b9e\u6218\u3011\u7b2c04\u8bb2\uff1a\u5c0f\u6674\uff08\u60c5\u62a5\u5b98\uff09\u4e0a\u5c97\u2014\u2014\u642d\u5efa\u672c\u5730\u6570\u636e\u7ba1\u9053\u4e0e\u6e05\u6d17\u6d41\u6c34\u7ebf"}]},{"@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\/85522","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=85522"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85522\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85522"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}