{"id":3006,"date":"2025-11-25T07:28:00","date_gmt":"2025-11-24T23:28:00","guid":{"rendered":"https:\/\/www.laoyulaoyu.com\/?p=3006"},"modified":"2025-11-11T15:29:27","modified_gmt":"2025-11-11T07:29:27","slug":"%e9%87%8f%e5%8c%96%e6%96%b0%e6%89%8b%e5%bf%85%e7%9c%8b%ef%bc%9a%e9%87%91%e8%9e%8d%e6%95%b0%e6%8d%ae%e9%87%87%e9%9b%86%e7%9a%84%e4%ba%94%e5%a4%a7%e9%99%b7%e9%98%b1%ef%bc%8c90%e7%9a%84%e4%ba%ba%e9%83%bd","status":"publish","type":"post","link":"https:\/\/laoyulaoyu.com\/index.php\/2025\/11\/25\/%e9%87%8f%e5%8c%96%e6%96%b0%e6%89%8b%e5%bf%85%e7%9c%8b%ef%bc%9a%e9%87%91%e8%9e%8d%e6%95%b0%e6%8d%ae%e9%87%87%e9%9b%86%e7%9a%84%e4%ba%94%e5%a4%a7%e9%99%b7%e9%98%b1%ef%bc%8c90%e7%9a%84%e4%ba%ba%e9%83%bd\/","title":{"rendered":"\u91cf\u5316\u65b0\u624b\u5fc5\u770b\uff1a\u91d1\u878d\u6570\u636e\u91c7\u96c6\u7684\u4e94\u5927\u9677\u9631\uff0c90%\u7684\u4eba\u90fd\u8e29\u8fc7\uff01\uff08\u9644\u793a\u4f8b\u4ee3\u7801\uff09"},"content":{"rendered":"\n<p>\u4f5c\u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"900\" height=\"383\" src=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/11\/trading_evolution.png\" alt=\"\" class=\"wp-image-3007\" srcset=\"https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2025\/11\/trading_evolution.png 900w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2025\/11\/trading_evolution-300x128.png 300w, https:\/\/laoyulaoyu.com\/wp-content\/uploads\/2025\/11\/trading_evolution-768x327.png 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u4f5c\u4e3a\u4e00\u540d\u91cf\u5316\u91d1\u878d\u4ece\u4e1a\u8005\uff0c\u6211\u51e0\u4e4e\u8e29\u904d\u4e86\u6570\u636e\u63d0\u53d6\uff08\u91c7\u96c6\uff09\u4e2d\u7684\u6240\u6709\u5751\uff1a\u6df7\u5408\u6570\u636e\u7c92\u5ea6\u3001\u5ffd\u7565\u516c\u53f8\u884c\u52a8\u3001\u8d85\u9650API\u8c03\u7528\u3001\u7f3a\u4e4f\u9a8c\u8bc1\u3001\u5ffd\u89c6\u6570\u636e\u4e0a\u4e0b\u6587\u3002\u672c\u6587\u5206\u4eab\u5982\u4f55\u4fee\u590d\u8fd9\u4e9b\u9519\u8bef\uff0c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u6784\u5efa\u53ef\u9760\u7684\u91d1\u878d\u6570\u636e\uff0c\u8ba9\u4f60\u7684\u91cf\u5316\u5206\u6790\u7cfb\u7edf\u4e0d\u518d\u5d29\u6e83\uff0c\u7ed3\u679c\u771f\u6b63\u53ef\u4fe1<\/mark>\u3002<\/pre>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001\u90a3\u4e2a\u6539\u53d8\u6211\u91d1\u878d\u6570\u636e\u89c2\u7684\u6df1\u591c<\/strong><\/h2>\n\n\n\n<p>\u6211\u7684\u8bfb\u8005\u6709\u5f88\u591a\u521a\u63a5\u89e6\u91cf\u5316\u6295\u8d44\uff0c\u4ee5\u4e3a\u5199\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u8eba\u7740\u8d5a\u94b1\uff0c\u6211\u5c31\u7ed9\u4f60\u4eec\u8bb2\u8bb2\u6211\u7684\u6545\u4e8b\u3002<\/p>\n\n\n\n<p>\u516b\u5e74\u524d\u7684\u67d0\u4e2a\u51cc\u6668\u4e09\u70b9\uff0c\u6211\u5bf9\u7740\u7535\u8111\u5c4f\u5e55\u50bb\u7b11\u3002\u4e00\u676f\u70ed\u5496\u5561\uff0c\u4e00\u53f0\u7b14\u8bb0\u672c\uff0c\u5341\u51e0\u884cPython\u4ee3\u7801\uff0c\u8f7b\u8f7b\u4e00\u70b9&#8221;\u8fd0\u884c&#8221;\u6309\u94ae\uff0c\u8fc7\u53bb5\u5e74\u7684\u7f8e\u80a1\u6570\u636e\u50cf\u7011\u5e03\u4e00\u6837\u6d41\u8fdb\u6211\u7684\u6570\u636e\u5e93\u3002\u90a3\u4e00\u523b\uff0c\u6211\u611f\u89c9\u81ea\u5df1\u5c31\u662f\u534e\u5c14\u8857\u4e4b\u72fc\uff0c\u9a6c\u4e0a\u5c31\u8981\u8d22\u5bcc\u81ea\u7531\u4e86\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u7b2c\u4e8c\u5929\u4e0b\u5348\uff0c\u6211\u7684\u91cf\u5316\u6a21\u578b\u5c31\u5d29\u6e83\u4e86\uff0c\u56fe\u8868\u4e0a\u7684\u6570\u636e\u5ffd\u9ad8\u5ffd\u4f4e\uff0c\u5173\u952e\u6307\u6807\u4e00\u591c\u4e4b\u95f4\u5929\u7ffb\u5730\u8986\u3002\u540c\u6837\u7684\u80a1\u7968\uff0c\u524d\u4e00\u5929\u8fd8\u8d5a20%\uff0c\u5230\u4e0b\u5348\u5374\u4e8f30%\u3002<\/p>\n\n\n\n<p>\u6211\u53cd\u590d\u68c0\u67e5\u4ee3\u7801\uff0c\u6ca1\u95ee\u9898\u554a\uff01\u6700\u540e\u624d\u53d1\u73b0\uff0c\u95ee\u9898\u51fa\u5728\u6570\u636e\u4e0a\u3002\u90a3\u4e00\u523b\uff0c\u6211\u7ec8\u4e8e\u660e\u767d\uff1a\u5728\u6295\u8d44\u9886\u57df\uff0c<strong>\u597d\u6570\u636e\u6bd4\u597d\u4ee3\u7801\u91cd\u8981100\u500d<\/strong>\u3002\u4e1a\u5185\u6709\u53e5\u8001\u8bdd\uff1a&#8221;\u91d1\u878d\u91cf\u5316\u6570\u636e80%\u7684\u5de5\u4f5c\u662f\u6e05\u6d17\uff0c\u5269\u4e0b\u768420%\u5c31\u662f\u53ef\u4ee5\u5f00\u59cb\u62b1\u6028\u6570\u636e\u8d28\u91cf\u5dee\u4e86\u3002&#8221;\u8fd9\u8bdd\u4e00\u70b9\u4e0d\u5047\u3002<\/p>\n\n\n\n<p>\u4eca\u5929\uff0c\u6211\u5c31\u628a\u6211\u8e29\u8fc7\u7684\u5751\u548c\u5b66\u5230\u7684\u7ecf\u9a8c\uff0c\u603b\u7ed3\u6210\u8fd9\u7bc7\u8d85\u5b9e\u7528\u7684\u5e72\u8d27\uff0c\u6559\u4f60\u907f\u5f00\u6570\u636e\u63d0\u53d6\u76845\u4e2a\u5927\u5751\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5929\u5751<\/strong><strong>\u4e00\uff1a\u628a\u6240\u6709\u91d1\u878d\u6570\u636e\u5f53\u6210\u4e00\u56de\u4e8b<\/strong><\/h2>\n\n\n\n<p>\u521a\u5f00\u59cb\u505a\u91cf\u5316\u65f6\uff0c\u6211\u4ee5\u4e3a\u6570\u636e\u561b\uff0c\u4e0d\u90fd\u662f\u4ef7\u683c\u5417\uff1f\u65e5K\u7ebf\u548c5\u5206\u949f\u7ebf\u6df7\u4e00\u8d77\uff0c\u6570\u636e\u91cf\u66f4\u5927\uff0c\u6548\u679c\u80af\u5b9a\u66f4\u597d\u3002\u540e\u6765\u624d\u53d1\u73b0\uff0c\u8fd9\u60f3\u6cd5\u592a\u5929\u771f\u4e86\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\uff0c\u6211\u7684\u6a21\u578b\u572815:00\u7684\u4ef7\u683c\u4e0a\u53cd\u590d\u6a2a\u8df3\u3002\u4e3a\u5565\uff1f\u65e5K\u7ebf\u662f\u6536\u76d8\u6570\u636e\uff0c\u5206\u949f\u7ebf\u662f\u76d8\u4e2d\u6570\u636e\uff0c\u65f6\u95f4\u6233\u6839\u672c\u5bf9\u4e0d\u4e0a\uff01<\/p>\n\n\n\n<p>\u91d1\u878d\u6570\u636e\u5176\u5b9e\u5206\u4e09\u79cd\uff0c\u641e\u6e05\u695a\u4e86\u518d\u4e0b\u8f7d\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6570\u636e\u7c7b\u578b<\/th><th>\u65f6\u95f4\u95f4\u9694<\/th><th>\u9002\u5408\u7528\u9014<\/th><th>\u65b0\u624b\u5e38\u89c1\u9519\u8bef<\/th><\/tr><\/thead><tbody><tr><td>\u6536\u76d8\u6570\u636e<\/td><td>\u6bcf\u5929\u4e00\u6b21<\/td><td>\u957f\u671f\u6295\u8d44\u3001\u56de\u6d4b\u7b56\u7565<\/td><td>\u7528\u6536\u76d8\u6570\u636e\u505a\u77ed\u7ebf\u4ea4\u6613<\/td><\/tr><tr><td>\u65e5\u5185\u6570\u636e<\/td><td>\u5206\u949f\/\u5c0f\u65f6\u7ea7<\/td><td>\u77ed\u7ebf\u4ea4\u6613\u3001\u6280\u672f\u5206\u6790<\/td><td>\u5ffd\u7565\u5f00\u76d8\u8df3\u7a7a\u5f71\u54cd<\/td><\/tr><tr><td>\u5b9e\u65f6\u6570\u636e<\/td><td>\u79d2\u7ea7\/\u6beb\u79d2\u7ea7<\/td><td>\u9ad8\u9891\u4ea4\u6613\u3001\u76d1\u63a7\u9884\u8b66<\/td><td>\u7528\u666e\u901a\u7535\u8111\u5904\u7406\u5bfc\u81f4\u5ef6\u8fdf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6211\u73b0\u5728\u5b66\u806a\u660e\u4e86\uff1a\u505a\u4efb\u4f55\u5206\u6790\u524d\uff0c\u5148\u60f3\u6e05\u695a\u8981\u7528\u4ec0\u4e48\u6570\u636e\u3002\u957f\u671f\u6295\u8d44\u5c31\u7528\u6536\u76d8\u6570\u636e\uff0c\u77ed\u7ebf\u64cd\u4f5c\u5c31\u7528\u5206\u949f\u6570\u636e\uff0c\u7edd\u4e0d\u6df7\u7528\u3002<\/p>\n\n\n\n<p><strong>\u4e00\u4e2a\u571f\u529e\u6cd5\uff1a<\/strong>\u73b0\u5728\u5199\u722c\u866b\uff0c\u65e5K\u7ebf\u3001\u5206\u949f\u7ebf\u3001\u5b9e\u65f6\u6570\u636e\u7528\u4e09\u5957\u4ee3\u7801\u3002\u65f6\u95f4\u5168\u90e8\u8f6c\u6210UTC\uff08\u4e16\u754c\u6807\u51c6\u65f6\u95f4\uff09\uff0c\u6587\u4ef6\u540d\u4e0a\u5199\u6e05\u695a&#8221;day&#8221;&#8221;min&#8221;&#8221;real&#8221;\uff0c\u8fd9\u6837\u6253\u6807\u7b7e\u5c31\u518d\u4e5f\u4e0d\u6df7\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\u505a\u4e4b\u540e\uff0c\u6211\u7684\u7b56\u7565\u7a33\u5b9a\u6027\u63d0\u5347\u4e86\u5341\u500d\u4e0d\u6b62\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5929\u5751<\/strong><strong>\u4e8c\uff1a\u5ffd\u7565\u80a1\u7968\u5206\u7ea2\u3001\u62c6\u80a1\u7b49\u91cd\u5927\u4e8b\u4ef6<\/strong><\/h2>\n\n\n\n<p>\u6709\u4e00\u6bb5\u65f6\u95f4\uff0c\u6211\u7684\u80a1\u7968\u56fe\u8868\u7ecf\u5e38\u51fa\u73b0&#8221;\u65ad\u5d16\u5f0f\u4e0b\u8dcc&#8221;\u3002\u660e\u660e\u516c\u53f8\u7ecf\u8425\u6b63\u5e38\uff0c\u80a1\u4ef7\u5374\u7a81\u7136\u8170\u65a9\uff0c\u6211\u767e\u601d\u4e0d\u5f97\u5176\u89e3\u3002<\/p>\n\n\n\n<p>\u540e\u6765\u624d\u77e5\u9053\uff0c\u8fd9\u662f\u516c\u53f8\u8fdb\u884c\u4e861\u62c62\u7684\u80a1\u7968\u5206\u5272\u3002\u80a1\u4ef7\u786e\u5b9e\u51cf\u534a\u4e86\uff0c\u4f46\u6301\u80a1\u6570\u91cf\u7ffb\u500d\u4e86\uff0c\u603b\u8d44\u4ea7\u6ca1\u53d8\u3002\u5982\u679c\u4e0d\u8c03\u6574\u5386\u53f2\u6570\u636e\uff0c\u5c31\u4f1a\u8bef\u4ee5\u4e3a\u80a1\u7968\u5d29\u76d8\u4e86\u3002<\/p>\n\n\n\n<p>\u9664\u4e86\u62c6\u80a1\uff0c\u8fd8\u6709\u5206\u7ea2\u3001\u914d\u80a1\u3001\u5e76\u8d2d\u7b49\u91cd\u5927\u4e8b\u4ef6\uff0c\u90fd\u4f1a\u5f71\u54cd\u80a1\u4ef7\u3002\u8fd9\u4e9b\u5728\u91d1\u878d\u5708\u53eb&#8221;\u516c\u53f8\u884c\u4e3a&#8221;\uff0c\u65b0\u624b\u5f88\u5bb9\u6613\u5ffd\u7565\u3002<\/p>\n\n\n\n<p><strong>\u4e3e\u4e2a\u771f\u5b9e\u4f8b\u5b50\uff1a<\/strong>2020\u5e74\u6211\u8dd1\u6caa\u6df1300\u589e\u5f3a\u7b56\u7565\uff0c\u56e0\u4e3a\u6ca1\u5904\u7406\u5206\u7ea2\uff0c\u56de\u6d4b\u5e74\u5316\u6536\u76ca\u865a\u9ad8\u4e863\u4e2a\u70b9\u3002\u5b9e\u76d8\u4e00\u8dd1\uff0c\u50bb\u773c\u4e86\u3002\u73b0\u5728\u6211\u7684\u6570\u636e\u7ba1\u9053\u7b2c\u4e00\u6b65\u5c31\u662f\u68c0\u67e5\u9664\u6743\u9664\u606f\u4e8b\u4ef6\u3002<\/p>\n\n\n\n<p><strong>\u73b0\u5728\u6211\u7684\u505a\u6cd5\u662f\uff1a<\/strong>\u6bcf\u6b21\u4e0b\u8f7d\u80a1\u7968\u6570\u636e\uff0c\u90fd\u8981\u540c\u6b65\u4e0b\u8f7d\u516c\u53f8\u884c\u4e3a\u6570\u636e\u3002\u7528\u4e13\u4e1a\u8f6f\u4ef6\u81ea\u52a8\u8c03\u6574\u5386\u53f2\u4ef7\u683c\uff0c\u786e\u4fdd\u6570\u636e\u8fde\u7eed\u6027\u3002\u867d\u7136\u9ebb\u70e6\u4e00\u70b9\uff0c\u4f46\u80fd\u907f\u514d\u91cd\u5927\u8bef\u5224\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code># \u83b7\u53d6\u80a1\u7968\u4ef7\u683c\u6570\u636e\u7684\u6700\u4f73\u5b9e\u8df5<\/code><code><\/code><code># \u274c \u9519\u8bef\u505a\u6cd5\uff1a\u76f4\u63a5\u4f7f\u7528\u539f\u59cb\u4ef7\u683c<\/code><code>price_data&nbsp;= get_price('600519.SH') &nbsp;# \u4f1a\u6709\u4ef7\u683c\u8df3\u7a7a\uff0c\u56de\u6d4b\u5931\u771f<\/code><code><\/code><code># \u2705 \u6b63\u786e\u505a\u6cd5\uff1a\u4f7f\u7528\u524d\u590d\u6743\u4ef7\u683c<\/code><code>price_data&nbsp;= get_price('600519.SH', adjust='qfq') &nbsp;# \u4ef7\u683c\u8fde\u7eed\uff0c\u56de\u6d4b\u51c6\u786e<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u8bf7\u8bb0\u4f4f\uff1a<\/strong>\u6ca1\u6709\u8c03\u6574\u8fc7\u7684\u539f\u59cb\u6570\u636e\uff0c\u5c31\u50cf\u6ca1\u6821\u51c6\u7684\u79e4\uff0c\u79f0\u4ec0\u4e48\u90fd\u4e0d\u51c6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5929\u5751\u4e09\uff1a\u731b\u5982\u864e\u7684API\u8c03\u7528\uff0c\u6700\u540e\u88ab\u5c01IP<\/strong><\/h2>\n\n\n\n<p>\u6211\u7b2c\u4e00\u6b21\u7528Tushare Pro\uff0c\u89c9\u5f97\u514d\u8d39\u63a5\u53e3\u4e0d\u7528\u767d\u4e0d\u7528\u3002\u5199\u4e8610\u4e2a\u7ebf\u7a0b\u5e76\u53d1\uff0c1\u5206\u949f\u62c9\u4e865000\u6b21\u63a5\u53e3\u3002<\/p>\n\n\n\n<p>\u7136\u540e\uff0c<strong>HTTP 429<\/strong>\u6765\u4e86\u2014\u2014&#8221;\u8bf7\u6c42\u8fc7\u4e8e\u9891\u7e41&#8221;\u3002<\/p>\n\n\n\n<p>\u66f4\u60e8\u7684\u662f\uff0c\u6709\u4e9b\u63a5\u53e3\u8d85\u8fc7\u6b21\u6570\u8981\u6536\u8d39\uff0c\u6709\u4e9b\u76f4\u63a5\u62c9\u9ed1IP\u3002\u6211\u4e00\u5ea6\u4ee5\u4e3a\u7535\u8111\u574f\u4e86\uff0c\u5176\u5b9e\u662f\u88abAPI\u5224\u4e86&#8221;\u6b7b\u5211\u7f13\u671f\u6267\u884c&#8221;\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u6211\u7684\u722c\u866b\u4e56\u5de7\u5f97\u50cf\u5c0f\u5b66\u751f\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u95ee\u9898<\/th><th>\u6211\u7684\u529e\u6cd5<\/th><th>\u6548\u679c<\/th><\/tr><tr><td>\u8c03\u7528\u592a\u9891\u7e41<\/td><td>\u52a0time.sleep(0.5)\uff0c\u8bf7\u6c42\u95f4\u9694\u81f3\u5c110.5\u79d2<\/td><td>\u518d\u4e5f\u6ca1\u88ab429\u8fc7<\/td><\/tr><tr><td>\u7f51\u7edc\u6296\u52a8<\/td><td>\u5931\u8d25\u5c31\u91cd\u8bd5\uff0c\u7b491\u79d2\u30012\u79d2\u30014\u79d2\uff0c\u6307\u6570\u7ea7\u589e\u52a0<\/td><td>\u6210\u529f\u7387\u4ece70%\u523099%<\/td><\/tr><tr><td>\u91cd\u590d\u62c9\u53d6<\/td><td>\u672c\u5730\u5efa\u4e2a\u6570\u636e\u5e93\uff0c\u62c9\u8fc7\u7684\u5b58\u8d77\u6765\uff0c\u4e0b\u6b21\u76f4\u63a5\u67e5<\/td><td>\u6bcf\u5929\u77012\u5c0f\u65f6\uff0cAPI\u8c03\u7528\u91cf\u964d80%<\/td><\/tr><tr><td>\u5fd8\u8bb0\u66f4\u65b0<\/td><td>\u7528crontab\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u5929\u51cc\u66684\u70b9\u81ea\u52a8\u8dd1<\/td><td>\u9192\u6765\u6570\u636e\u5df2\u5728\u7897\u91cc<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code><code># \u6211\u7684\u722c\u866b\"\u4e09\u4ece\u56db\u5fb7\"\u6a21\u677f<\/code><code>import&nbsp;requests<\/code><code>import&nbsp;time<\/code><code><\/code><code>def&nbsp;safe_request(url, params=None, max_retry=3):<\/code><code>&nbsp; &nbsp;&nbsp;\"\"\"<\/code><code>&nbsp; &nbsp; \u5b89\u5168\u7684\u8bf7\u6c42\u51fd\u6570\uff0c\u5305\u542b\u91cd\u8bd5\u673a\u5236\u548c\u9650\u901f\u5904\u7406<\/code><code><\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; Args:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; url (str): \u8bf7\u6c42\u7684URL<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; params (dict, optional): \u8bf7\u6c42\u53c2\u6570\uff0c\u9ed8\u8ba4\u4e3aNone<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; max_retry (int, optional): \u6700\u5927\u91cd\u8bd5\u6b21\u6570\uff0c\u9ed8\u8ba4\u4e3a3<\/code><code><\/code><code>&nbsp; &nbsp; Returns:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; dict\/list\/None: \u6210\u529f\u8fd4\u56deJSON\u6570\u636e\uff0c\u5931\u8d25\u8fd4\u56deNone<\/code><code>&nbsp; &nbsp; \"\"\"<\/code><code>&nbsp; &nbsp;&nbsp;# \u786e\u4fddparams\u4e3a\u5b57\u5178\u7c7b\u578b<\/code><code>&nbsp; &nbsp; params = params&nbsp;or&nbsp;{}<\/code><code><\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;for&nbsp;i&nbsp;in&nbsp;range(max_retry):<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;try:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; response = requests.get(url, params=params, timeout=10)<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;if&nbsp;response.status_code ==&nbsp;200:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return&nbsp;response.json()<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;elif&nbsp;response.status_code ==&nbsp;429:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;# \u88ab\u9650\u901f\u4e86\uff0c\u4f7f\u7528\u6307\u6570\u9000\u907f\u7b56\u7565<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wait_time =&nbsp;2&nbsp;** i &nbsp;# \u7b491\u79d2\u30012\u79d2\u30014\u79d2...<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u88ab\u9650\u901f\u4e86\uff0c\u7b2c{i+1}\u6b21\u91cd\u8bd5\uff0c\u7b49\u5f85{wait_time}\u79d2...')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; time.sleep(wait_time)<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;else:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u8bf7\u6c42\u5931\u8d25\uff0c\u72b6\u6001\u7801:&nbsp;{response.status_code}')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return&nbsp;None<\/code><code><\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;except&nbsp;requests.exceptions.Timeout:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u7b2c{i+1}\u6b21\u8bf7\u6c42\u8d85\u65f6')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;except&nbsp;requests.exceptions.ConnectionError:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u7b2c{i+1}\u6b21\u8fde\u63a5\u9519\u8bef')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;except&nbsp;requests.exceptions.RequestException&nbsp;as&nbsp;e:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u7b2c{i+1}\u6b21\u8bf7\u6c42\u5f02\u5e38:&nbsp;{e}')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;except&nbsp;ValueError&nbsp;as&nbsp;e:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'JSON\u89e3\u6790\u9519\u8bef:&nbsp;{e}')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;return&nbsp;None<\/code><code>&nbsp;<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;print(f'\u7ecf\u8fc7{max_retry}\u6b21\u91cd\u8bd5\u540e\u4ecd\u7136\u5931\u8d25')<\/code><code>&nbsp; &nbsp;&nbsp;return&nbsp;None<\/code><code><\/code><code># \u4f7f\u7528\u793a\u4f8b<\/code><code>if&nbsp;__name__ ==&nbsp;\"__main__\":<\/code><code>&nbsp; &nbsp;&nbsp;# \u793a\u4f8b\u7528\u6cd5<\/code><code>&nbsp; &nbsp; result = safe_request(<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; url=\"https:\/\/api.example.com\/data\",<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; params={\"page\":&nbsp;1,&nbsp;\"limit\":&nbsp;10}<\/code><code>&nbsp; &nbsp; )<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;if&nbsp;result:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(\"\u8bf7\u6c42\u6210\u529f:\", result)<\/code><code>&nbsp; &nbsp;&nbsp;else:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(\"\u8bf7\u6c42\u5931\u8d25\")<\/code><\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u505a\u4e4b\u540e\uff0c\u6211\u7684\u6570\u636e\u83b7\u53d6\u6210\u529f\u7387\u4ece60%\u63d0\u5347\u523099%\uff0c\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u7a0b\u5e8f\u534a\u591c\u5d29\u6e83\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5929\u5751\u56db\uff1a\u62ff\u5230\u6570\u636e\u5c31\u7528\uff0c<\/strong><strong>\u4e0d\u505a\u9a8c\u8bc1<\/strong><\/h2>\n\n\n\n<p>\u5f88\u591a\u65b0\u624b\u6709\u4e2a\u8bef\u533a\uff1a\u53ea\u8981\u7a0b\u5e8f\u80fd\u4e0b\u8f7d\u6570\u636e\uff0c\u6570\u636e\u5c31\u4e00\u5b9a\u5bf9\u3002\u8fd9\u592a\u5371\u9669\u4e86\uff01\u6211\u5403\u8fc7\u4e00\u6b21\u5927\u4e8f\uff1a\u67d0\u5929\u4e0b\u8f7d\u7684\u67d0\u53ea\u80a1\u7968\u6570\u636e\uff0c\u4ef7\u683c\u5168\u662f0\u3002\u7a0b\u5e8f\u6ca1\u62a5\u9519\uff0c\u6211\u4e5f\u61d2\u5f97\u68c0\u67e5\uff0c\u76f4\u63a5\u62ff\u53bb\u5206\u6790\u3002\u7ed3\u679c\u7b56\u7565\u5b8c\u5168\u5931\u6548\uff0c\u5dee\u70b9\u8ddf\u6295\u5b9e\u76d8\u3002<\/p>\n\n\n\n<p>\u73b0\u5728\u6211\u517b\u6210\u4e86&#8221;\u4e09\u67e5\u4e09\u5bf9&#8221;\u7684\u4e60\u60ef\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u68c0\u67e5\u9879\u76ee<\/th><th>\u68c0\u67e5\u65b9\u6cd5<\/th><th>\u5e38\u89c1\u95ee\u9898<\/th><th>\u89e3\u51b3\u65b9\u6848<\/th><\/tr><\/thead><tbody><tr><td>\u5b8c\u6574\u6027\u68c0\u67e5<\/td><td>\u68c0\u67e5\u65e5\u671f\u662f\u5426\u8fde\u7eed<\/td><td>\u8282\u5047\u65e5\u6570\u636e\u7f3a\u5931<\/td><td>\u624b\u52a8\u8865\u5145\u6216\u6807\u8bb0<\/td><\/tr><tr><td>\u5408\u7406\u6027\u68c0\u67e5<\/td><td>\u4ef7\u683c\u662f\u5426\u5728\u6b63\u5e38\u8303\u56f4<\/td><td>\u4ef7\u683c\u4e3a\u8d1f\u6570\u6216\u5f02\u5e38\u9ad8<\/td><td>\u7528\u524d\u4e00\u65e5\u4ef7\u683c\u66ff\u4ee3<\/td><\/tr><tr><td>\u552f\u4e00\u6027\u68c0\u67e5<\/td><td>\u68c0\u67e5\u91cd\u590d\u8bb0\u5f55<\/td><td>\u540c\u4e00\u5929\u591a\u6b21\u8bb0\u5f55<\/td><td>\u4fdd\u7559\u6700\u65b0\u4e00\u6761<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u53e6\u5916\uff0c\u6211\u8fd8\u4f1a\u8bb0\u5f55\u6570\u636e\u6765\u6e90\u548c\u4e0b\u8f7d\u65f6\u95f4\u3002\u6bd4\u5982&#8221;\u6570\u636e\u6765\u6e90\uff1a\u96c5\u864e\u8d22\u7ecf\uff0c\u4e0b\u8f7d\u65f6\u95f4\uff1a2025-11-11 03:00&#8243;\u3002\u8fd9\u6837\u4e07\u4e00\u51fa\u95ee\u9898\uff0c\u80fd\u5feb\u901f\u5b9a\u4f4d\u539f\u56e0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code># \u4ef7\u683c\"\u4f53\u68c0\"\u4ee3\u7801<\/code><code>import&nbsp;pandas&nbsp;as&nbsp;pd<\/code><code><\/code><code>def&nbsp;data_check(df, expected_days=240):<\/code><code>&nbsp; &nbsp;&nbsp;\"\"\"<\/code><code>&nbsp; &nbsp; \u6570\u636e\u8d28\u91cf\u68c0\u67e5<\/code><code>&nbsp; &nbsp; Returns:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; bool: \u68c0\u67e5\u662f\u5426\u901a\u8fc7<\/code><code>&nbsp; &nbsp; \"\"\"<\/code><code>&nbsp; &nbsp; checks_passed =&nbsp;True<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;# 1. \u5b8c\u6574\u6027\u68c0\u67e5<\/code><code>&nbsp; &nbsp;&nbsp;if&nbsp;len(df) &lt; expected_days *&nbsp;0.9:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u8b66\u544a\uff1a\u6570\u636e\u7f3a\u5931\uff01\u5b9e\u9645{len(df)}\u5929\uff0c\u9884\u671f{expected_days}\u5929')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; checks_passed =&nbsp;False<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;# 2. \u5408\u7406\u6027\u68c0\u67e5<\/code><code>&nbsp; &nbsp;&nbsp;if&nbsp;(df&#91;'close'] &lt;=&nbsp;0).any():<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; negative_count = (df&#91;'close'] &lt;=&nbsp;0).sum()<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u9519\u8bef\uff1a\u6536\u76d8\u4ef7\u5b58\u5728{negative_count}\u6761\u5f02\u5e38\u503c')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; checks_passed =&nbsp;False<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;# 3. \u91cd\u590d\u6570\u636e\u68c0\u67e5<\/code><code>&nbsp; &nbsp; duplicates = df.duplicated(subset=&#91;'date',&nbsp;'code']).sum()<\/code><code>&nbsp; &nbsp;&nbsp;if&nbsp;duplicates &gt;&nbsp;0:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print(f'\u9519\u8bef\uff1a\u53d1\u73b0{duplicates}\u6761\u91cd\u590d\u6570\u636e')<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp; checks_passed =&nbsp;False<\/code><code>&nbsp; &nbsp;&nbsp;if&nbsp;checks_passed:<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;print('\u2705 \u6240\u6709\u68c0\u67e5\u901a\u8fc7')<\/code><code><\/code><code>&nbsp; &nbsp;&nbsp;return&nbsp;checks_passed<\/code><code><\/code><code># \u4f7f\u7528\u793a\u4f8b<\/code><code>if&nbsp;__name__ ==&nbsp;\"__main__\":<\/code><code>&nbsp; &nbsp;&nbsp;# \u521b\u5efa\u793a\u4f8b\u6570\u636e<\/code><code>&nbsp; &nbsp; sample_df = pd.DataFrame({<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'date': pd.date_range('2023-01-01', periods=200),<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'code': &#91;'000001'] *&nbsp;200,<\/code><code>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;'close':&nbsp;range(10,&nbsp;210)<\/code><code>&nbsp; &nbsp; })<\/code><code>&nbsp;<\/code><code>&nbsp; &nbsp; result = data_check(sample_df)<\/code><code>&nbsp; &nbsp;&nbsp;print(f'\u68c0\u67e5\u7ed3\u679c:&nbsp;{\"\u901a\u8fc7\"&nbsp;if&nbsp;result&nbsp;else&nbsp;\"\u4e0d\u901a\u8fc7\"}')<\/code><\/code><\/pre>\n\n\n\n<p>\u6570\u636e\u9a8c\u8bc1\u5c31\u50cf\u5403\u996d\u524d\u6d17\u624b\uff0c\u770b\u4f3c\u9ebb\u70e6\uff0c\u5374\u80fd\u907f\u514d90%\u7684\u4e0d\u5e72\u51c0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u5929\u5751\u4e94\uff1a<\/strong><strong>\u5ffd\u7565\u80a1\u7968\u4ee3\u7801\u3001\u4ea4\u6613\u6240\u3001\u65f6\u533a\u7b49\u7ec6\u8282<\/strong><\/h2>\n\n\n\n<p>\u8fd9\u4e2a\u95ee\u9898\u6700\u9690\u853d\uff0c\u5371\u5bb3\u4e5f\u6700\u5927\u3002<\/p>\n\n\n\n<p>\u540c\u6837\u662f&#8221;\u8d35\u5dde\u8305\u53f0&#8221;\uff0c\u5728\u4e0d\u540c\u6570\u636e\u5e73\u53f0\uff0c\u4ee3\u7801\u53ef\u80fd\u4e0d\u4e00\u6837\uff1a\u6709\u7684\u53eb&#8221;600519&#8243;\uff0c\u6709\u7684\u53eb&#8221;600519.SH&#8221;\uff0c\u8fd8\u6709\u7684\u53eb&#8221;SH600519&#8243;\u3002<\/p>\n\n\n\n<p>\u66f4\u9ebb\u70e6\u7684\u662f\u65f6\u533a\u95ee\u9898\u3002\u7f8e\u80a1\u4ea4\u6613\u65f6\u95f4\u662f\u5317\u4eac\u65f6\u95f4\u665a\u4e0a\uff0c\u5982\u679c\u6211\u4eec\u4e0d\u7edf\u4e00\u65f6\u533a\uff0c\u5f88\u5bb9\u6613\u628a\u6628\u5929\u7684\u6570\u636e\u5f53\u6210\u4eca\u5929\u7684\u3002<\/p>\n\n\n\n<p>\u6211\u73b0\u5728\u7684\u6807\u51c6\u5316\u505a\u6cd5\uff1a<\/p>\n\n\n\n<p><strong>\u80a1\u7968\u4ee3\u7801\u6807\u51c6\u5316<\/strong>\uff1a\u7edf\u4e00\u7528&#8221;\u4ee3\u7801.\u4ea4\u6613\u6240&#8221;\u683c\u5f0f\uff0c\u6bd4\u5982&#8221;600519.SH&#8221;\u4ee3\u8868\u4e0a\u6d77\u4ea4\u6613\u6240\uff0c&#8221;000001.SZ&#8221;\u4ee3\u8868\u6df1\u5733\u4ea4\u6613\u6240\uff0c&#8221;AAPL.US&#8221;\u4ee3\u8868\u7f8e\u56fd\u82f9\u679c\u516c\u53f8\u3002<\/p>\n\n\n\n<p><strong>\u65f6\u95f4\u7edf\u4e00\u5316<\/strong>\uff1a\u6240\u6709\u65f6\u95f4\u90fd\u8f6c\u6210\u5317\u4eac\u65f6\u95f4\uff0c\u907f\u514d\u65f6\u533a\u6df7\u4e71\u3002\u7279\u522b\u662f\u505a\u5168\u7403\u8d44\u4ea7\u914d\u7f6e\u65f6\uff0c\u8fd9\u4e2a\u6b65\u9aa4\u5fc5\u4e0d\u53ef\u5c11\u3002<\/p>\n\n\n\n<p><strong>\u5efa\u7acb\u6620\u5c04\u8868<\/strong>\uff1a\u7ef4\u62a4\u4e00\u4e2a\u80a1\u7968\u4ee3\u7801\u6620\u5c04\u8868\uff0c\u8bb0\u5f55\u4e0d\u540c\u5e73\u53f0\u7684\u4ee3\u7801\u5bf9\u5e94\u5173\u7cfb\u3002\u8fd9\u6837\u6362\u6570\u636e\u6e90\u65f6\uff0c\u4e0d\u7528\u91cd\u65b0\u6539\u4ee3\u7801\u3002<\/p>\n\n\n\n<p><strong>\u5c0f\u6280\u5de7\uff1a<\/strong>\u7528pandas\u7684tz_convert()\u51fd\u6570\uff0c\u4e00\u884c\u4ee3\u7801\u641e\u5b9a\u65f6\u533a\u8f6c\u6362\u3002\u522b\u50cf\u6211\u5f53\u5e74\u7528\u624b\u5de5\u52a0\u51cf8\u5c0f\u65f6\uff0c\u590f\u4ee4\u65f6\u4e00\u6765\u5168\u4e71\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e9b\u7ec6\u8282\u770b\u8d77\u6765\u5f88\u7410\u788e\uff0c\u4f46\u6b63\u662f\u5b83\u4eec\u51b3\u5b9a\u4e86\u4f60\u7684\u5206\u6790\u662f\u4e13\u4e1a\u8fd8\u662f\u4e1a\u4f59\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Bonus\uff1a\u6570\u636e\u6807\u51c6\u5316\uff0c\u8ba9\u6a21\u578b\u5403\u5f97\u66f4\u9999<\/strong><\/h2>\n\n\n\n<p>\u89e3\u51b3\u4e86\u4e0a\u9762\u7684\u5751\uff0c\u6570\u636e\u80fd\u7528\u4f46\u4e0d\u597d\u7528\u3002\u4e0d\u540c\u80a1\u7968\u7684\u4ef7\u683c\u5dee\u5f02\u5927\uff0c\u8305\u53f01700\u5757\uff0c\u5de5\u5546\u94f6\u884c\u624d5\u5757\u3002\u6254\u8fdb\u6a21\u578b\uff0c\u8305\u53f0\u7684\u6743\u91cd\u76f4\u63a5\u78be\u538b\u3002<\/p>\n\n\n\n<p>\u8fd9\u91cc\u8981\u7528\u5230<strong>\u6570\u636e\u6807\u51c6\u5316<\/strong>\uff0c\u8ba9\u4e0d\u540c\u91cf\u7ea7\u7684\u6570\u636e\u5728\u540c\u4e00\u4e2a\u8d77\u8dd1\u7ebf\u4e0a\u3002\u6211\u5e38\u7528\u7684\u4e09\u62db\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u65b9\u6cd5<\/th><th>\u901a\u4fd7\u89e3\u91ca<\/th><th>\u9002\u7528\u573a\u666f<\/th><th>\u4ee3\u7801\u793a\u4f8b<\/th><\/tr><tr><td><strong>min-max\u7f29\u653e<\/strong><\/td><td>\u628a\u6570\u636e\u538b\u52300-100\u5206<\/td><td>\u4ef7\u683c\u672c\u8eab\u6709\u610f\u4e49\u65f6<\/td><td>(x-min)\/(max-min)<\/td><\/tr><tr><td><strong>z-score\u6807\u51c6\u5316<\/strong><\/td><td>\u770b\u6570\u636e\u79bb\u5e73\u5747\u503c\u51e0\u4e2a\u6807\u51c6\u5dee<\/td><td>\u6570\u636e\u6709\u504f\uff08\u6bd4\u5982\u76c8\u5229\u6570\u636e\uff09<\/td><td>(x-mean)\/std<\/td><\/tr><tr><td><strong>\u7f29\u5c3e\u5904\u7406<\/strong><\/td><td>\u628a\u6781\u7aef\u503c\u6390\u5934\u53bb\u5c3e<\/td><td>\u8d22\u52a1\u6570\u636e\u5e38\u6709\u6781\u7aef\u503c<\/td><td>\u9650\u5b9a1%-99%\u5206\u4f4d<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u8fd9\u6837\u7684\u7ed3\u679c\u5c31\u662f\u56de\u6d4b\u4e0d\u518d&#8221;\u8fc7\u62df\u5408&#8221;\uff0c\u5b9e\u76d8\u8868\u73b0\u548c\u56de\u6d4b\u8d8a\u6765\u8d8a\u63a5\u8fd1\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u65f6\u95f4\u540c\u6b65\u7cbe\u5ea6\u4e0d\u591f\uff0c\u7b56\u7565\u6162\u4eba\u4e00\u62cd<\/strong><\/h2>\n\n\n\n<p>\u524d\u9762\u8bf4\u7684\u90fd\u662f\u6570\u636e\u5185\u5bb9\uff0c\u73b0\u5728\u8bf4\u4e2a\u66f4\u5e95\u5c42\u7684\uff1a<strong>\u65f6\u95f4\u6233\u4e0d\u51c6<\/strong><strong>\u3002<\/strong><\/p>\n\n\n\n<p>\u76d1\u7ba1\u673a\u6784\uff08\u7f8e\u56fdSEC\u3001\u6b27\u6d32ESMA\uff09\u89c4\u5b9a\uff0c\u9ad8\u9891\u4ea4\u6613\u7684\u65f6\u95f4\u6233\u7cbe\u5ea6\u8981\u8fbe\u5230100\u5fae\u79d2\u3002\u4ec0\u4e48\u6982\u5ff5\uff1f\u7728\u773c\u9700\u898110\u4e07\u5fae\u79d2\uff0c\u4f60\u5fc5\u987b\u5728\u5343\u5206\u4e4b\u4e00\u7728\u773c\u4e4b\u95f4\u5b8c\u6210\u8ba1\u65f6\u3002<\/p>\n\n\n\n<p>\u4f20\u7edf\u7528NTP\u534f\u8bae\u5bf9\u65f6\uff0c\u8bef\u5dee\u51e0\u5341\u6beb\u79d2\uff0c\u76f8\u5f53\u4e8e\u6162\u4e86500\u500d\u3002\u73b0\u5728\u4ea4\u6613\u6240\u90fd\u7528PTP\u534f\u8bae\uff0c\u786c\u4ef6\u7ea7\u6253\u65f6\u95f4\u6233\uff0c\u8bef\u5dee\u63a7\u5236\u57281\u5fae\u79d2\u5185\u3002<\/p>\n\n\n\n<p><strong>\u5bf9\u6211\u4eec\u6563\u6237\u91cf\u5316\u8005\u7684\u542f\u793a\uff1a<\/strong>\u867d\u7136\u4e0d\u7528\u8fbe\u5230\u5fae\u79d2\u7ea7\uff0c\u4f46\u4f60\u7684\u670d\u52a1\u5668\u65f6\u95f4\u5fc5\u987b\u51c6\u3002\u6211\u5efa\u8bae\u7528\u963f\u91cc\u4e91\/\u817e\u8baf\u4e91\u7684NTP\u670d\u52a1\uff0c\u6bcf\u5468\u5bf9\u65f6\u4e00\u6b21\uff0c\u56de\u6d4b\u548c\u5b9e\u76d8\u7684\u65f6\u95f4\u5dee\u63a7\u5236\u57281\u79d2\u5185\uff0c\u907f\u514d&#8221;\u5077\u4ef7&#8221;\uff08\u7528\u4e86\u672a\u6765\u6570\u636e\uff09\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u603b\u7ed3\uff1a<\/strong><strong>\u597d\u6570\u636e\u4e0d\u662f\u4e0b\u8f7d\u6765\u7684\uff0c\u662f\u517b\u51fa\u6765\u7684<\/strong><\/h2>\n\n\n\n<p>\u6298\u817e\u4e86\u5341\u6765\u5e74\uff0c\u6211\u53d1\u73b0\uff1a<strong>\u5199\u722c\u866b\u5199\u63a5\u53e3\u53ea\u536020%\u529f\u592b\uff0c80%\u65f6\u95f4\u5728\u4f3a\u5019\u6570\u636e<\/strong><strong>\u3002<\/strong>\u597d\u6570\u636e\u7684\u6807\u51c6\uff0c\u5c31\u4e09\u6761\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u8bf4\u5f97\u6e05\uff1a<\/strong>\u77e5\u9053\u6570\u636e\u4ece\u54ea\u6765\u3001\u4ec0\u4e48\u65f6\u95f4\u3001\u4ec0\u4e48\u53e3\u5f84\u3002<\/li>\n\n\n\n<li><strong>\u5bf9\u5f97\u4e0a\uff1a<\/strong>\u65f6\u95f4\u6233\u3001\u4ee3\u7801\u3001\u590d\u6743\uff0c\u5168\u90e8\u6574\u9f50\u5212\u4e00\u3002<\/li>\n\n\n\n<li><strong>\u4fe1\u5f97\u8fc7\uff1a<\/strong>\u6bcf\u6279\u6570\u636e\u90fd\u6709&#8221;\u4f53\u68c0\u62a5\u544a&#8221;\uff0c\u810f\u6570\u636e\u8fdb\u4e0d\u6765\u3002<\/li>\n<\/ol>\n\n\n\n<p>\u81ea\u4ece\u56e2\u961f\u5efa\u4e86\u8fd9\u5957\u6570\u636e\u6807\u51c6\u5316\uff0c\u6211\u4eec\u7684\u7b56\u7565\u56de\u6d4b\u548c\u5b9e\u76d8\u6536\u76ca\u5dee\u4ece15%\u7f29\u5c0f\u52303%\u3002\u90a33%\u662f\u624b\u7eed\u8d39\u548c\u6ed1\u70b9\uff0c\u4e0d\u662f\u6570\u636e\u5751\u3002<\/p>\n\n\n\n<p><strong>\u8bb0\u4f4f\u4e00\u53e5\u8bdd\uff1a<\/strong><strong>\u6570\u636e\u4e0d\u884c\uff0c\u7b56\u7565\u662f\u7a7a\u4e2d\u697c\u9601\uff1b\u6570\u636e\u884c\u4e86\uff0c\u7b56\u7565\u624d\u80fd\u843d\u5730\u751f\u91d1<\/strong><strong>\u3002<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><a>#Python\u722c\u866b<\/a>&nbsp;<a>#\u6570\u636e\u6e05\u6d17<\/a>&nbsp;<a>#Tushare<\/a>&nbsp;<a>#API\u8c03\u7528<\/a>&nbsp;<a>#\u56de\u6d4b<\/a>&nbsp;<a>#\u91cf\u5316\u4ea4\u6613<\/a>&nbsp;<a>#\u91cf\u5316\u6295\u8d44<\/a>&nbsp;<a>#\u91d1\u878d\u6570\u636e<\/a>&nbsp;<a>#AI\u6295\u8d44<\/a>&nbsp;<a>#\u80a1\u7968\u5206\u6790<\/a>&nbsp;<a>#\u6570\u636e\u6e05\u6d17<\/a>&nbsp;<a>#\u6295\u8d44\u7b56\u7565<\/a><\/p>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u4e3a\u60a8\u5e26\u6765\u4e86\u65b0\u7684\u542f\u53d1\u548c\u5b9e\u7528\u7684\u77e5\u8bc6\uff01\u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9\uff0c\u8bf7\u4e0d\u541d\u70b9\u8d5e\u548c\u5206\u4eab\uff0c\u60a8\u7684\u652f\u6301\u662f\u6211\u6301\u7eed\u521b\u4f5c\u7684\u52a8\u529b\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff0c\u6536\u76ca\u957f\u8679\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u7559\u8a00\uff0c\u6211\u4f1a\u5c3d\u5feb\u56de\u590d\uff01<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center\">\u98ce\u9669\u63d0\u793a\uff1a\u6295\u8d44\u6709\u98ce\u9669\uff0c\u5165\u5e02\u9700\u8c28\u614e\u3002\u672c\u6587\u4ec5\u4f9b\u5b66\u4e60\u53c2\u8003\uff0c\u4e0d\u6784\u6210\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/laoyulaoyu.com\/index.php\/2025\/11\/25\/%e9%87%8f%e5%8c%96%e6%96%b0%e6%89%8b%e5%bf%85%e7%9c%8b%ef%bc%9a%e9%87%91%e8%9e%8d%e6%95%b0%e6%8d%ae%e9%87%87%e9%9b%86%e7%9a%84%e4%ba%94%e5%a4%a7%e9%99%b7%e9%98%b1%ef%bc%8c90%e7%9a%84%e4%ba%ba%e9%83%bd\/\">Continue reading<span class=\"screen-reader-text\">\u91cf\u5316\u65b0\u624b\u5fc5\u770b\uff1a\u91d1\u878d\u6570\u636e\u91c7\u96c6\u7684\u4e94\u5927\u9677\u9631\uff0c90%\u7684\u4eba\u90fd\u8e29\u8fc7\uff01\uff08\u9644\u793a\u4f8b\u4ee3\u7801\uff09<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[17,4,5],"class_list":{"0":"post-3006","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-aiinvest","7":"tag-ai","10":"entry"},"_links":{"self":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/3006","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=3006"}],"version-history":[{"count":2,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/3006\/revisions"}],"predecessor-version":[{"id":3009,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/3006\/revisions\/3009"}],"wp:attachment":[{"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=3006"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=3006"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=3006"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}