{"id":123680,"date":"2026-11-08T01:40:42","date_gmt":"2026-11-07T17:40:42","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123680.html"},"modified":"2026-11-08T01:40:42","modified_gmt":"2026-11-07T17:40:42","slug":"%e9%87%8f%e5%8c%96%e6%95%b0%e6%8d%ae%e7%ae%a1%e9%81%93%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e%e6%8e%a5%e5%8f%a3%e8%b0%83%e7%94%a8%e5%88%b0%e7%94%9f%e4%ba%a7%e7%ba%a7%e8%90%bd%e5%ba%93%ef%bc%88%e7%ac%ac-1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123680.html","title":{"rendered":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743"},"content":{"rendered":"<h2>\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93&#xff08;\u7b2c 1 \u7bc7&#xff09;&#xff1a;\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743<\/h2>\n<p>\u7cfb\u5217\u8bf4\u660e \u672c\u7cfb\u5217\u300a\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\u300b\u805a\u7126&#034;\u6570\u636e\u63a5\u53e3\u63a5\u5165\u7684\u751f\u4ea7\u7ea7\u7ba1\u9053&#034;\u89c6\u89d2\u2014\u2014\u4e0d\u53ea\u6559\u600e\u4e48\u8c03\u63a5\u53e3&#xff0c;\u66f4\u6559\u600e\u4e48\u628a\u63a5\u53e3\u6570\u636e\u53d8\u6210\u7a33\u5b9a\u3001\u53ef\u8ffd\u6eaf\u3001\u751f\u4ea7\u53ef\u7528\u7684\u672c\u5730\u6570\u636e\u8d44\u4ea7\u3002\u4e0e\u5df2\u5b8c\u7ed3\u7684\u300a\u91cf\u5316\u6570\u636e\u5f00\u53d1\u5b9e\u6218\u7cfb\u5217\u300b\u300a\u91cf\u5316\u6570\u636e\u8fdb\u9636\u300b\u300a\u57fa\u91d1\u6570\u636e\u5b9e\u6218\u300b\u300a\u6caa\u6df1\u6e2f\u901a\u6570\u636e\u5b9e\u6218\u300b\u300aA\u80a1\u91cf\u5316\u6570\u636e\u5de5\u7a0b\u300b\u300aA\u80a1\u91cf\u5316\u7b56\u7565\u56de\u6d4b\u5b9e\u6218\u300b\u7b49\u7cfb\u5217\u76f8\u4e92\u72ec\u7acb\u3002\u672c\u7cfb\u5217\u5171 28 \u7bc7&#xff0c;\u4e3b\u63a8\u6309 14 \u7bc7\u4e00\u5468\u671f\u5207\u5206&#xff1a;\u7b2c 1 \u7bc7\u4e3b\u63a8\u5bfc\u89c8\u7b2c 1\u201314 \u7bc7\u5468\u671f&#xff0c;\u7b2c 15 \u7bc7\u4e3b\u63a8\u5bfc\u89c8\u7b2c 15\u201328 \u7bc7\u5468\u671f&#xff1b;\u4e24\u7bc7\u4e3b\u63a8\u5747\u91c7\u7528&#034;\u5f15\u5bfc\u6587 &#043; \u6280\u672f\u6587\u7ae0&#034;\u5408\u4e00\u5f62\u5f0f&#xff08;\u5468\u671f\u5730\u56fe &#043; \u6280\u672f\u7ae0 &#043; \u5f15\u5b50\u793a\u4f8b&#xff09;&#xff0c;\u5176\u4f59\u5404\u7bc7\u4e3a\u7eaf\u6280\u672f\u6df1\u5165\u6587\u3002\u5168\u7cfb\u5217\u7ea6\u5b9a&#xff1a;<\/p>\n<li>\u63a5\u53e3\u4e0e\u5b57\u6bb5\u4ec5\u53d6\u81ea\u5fc5\u76c8\u5b98\u7f51 API \u6587\u6863&#xff0c;\u96f6\u7f16\u9020&#xff1b;<\/li>\n<li>\u4ee3\u7801\u7eaf\u6807\u51c6\u5e93&#xff08;urllib&#xff09;&#xff0c;\u65e0\u7b2c\u4e09\u65b9\u4f9d\u8d56&#xff0c;\u53ef\u76f4\u63a5 ast.parse \u901a\u8fc7&#xff1b;<\/li>\n<li>\u6bcf\u7bc7\u542b\u5b8c\u6574\u53ef\u8fd0\u884c\u4ee3\u7801\u3001\u6570\u636e\u8868\u8bbe\u8ba1\u4e0e\u62d3\u5c55\u7ec3\u4e60&#xff1b;<\/li>\n<li>\u672c\u7cfb\u5217\u5404\u7bc7\u6b63\u6587\u5747\u4e3a\u6280\u672f\u5185\u5bb9&#xff1a;\u7b2c 1\u300115 \u7bc7\u4e3a\u5f15\u5bfc &#043; \u6280\u672f\u5408\u4e00&#xff0c;\u5176\u4f59\u4e3a\u6280\u672f\u6df1\u5165&#xff1b;\u9664\u7b2c 1 \u7bc7\u6587\u672b\u9644\u6570\u636e\u6e90\u4e0a\u624b\u4e0e licence \u6ce8\u518c\u6307\u5f15\u5916&#xff0c;\u5404\u7bc7\u65e0\u8425\u9500\u5185\u5bb9&#xff0c;\u4ec5\u6587\u672b\u98ce\u9669\u63d0\u793a\u3002<\/li>\n<p>\u505a\u91cf\u5316&#xff0c;\u6570\u636e\u6e90\u5148\u5206\u4e24\u7c7b&#xff1a;\u514d\u8d39\u5f00\u6e90\u63a5\u53e3\u9002\u5408\u4e2a\u4eba\u5b66\u4e60\u8dd1\u901a\u903b\u8f91&#xff0c;\u5408\u89c4\u5546\u7528\u63a5\u53e3\u624d\u625b\u5f97\u4f4f\u751f\u4ea7\u3002\u628a&#034;\u5546\u7528\u63a5\u53e3&#034;\u505a\u6210&#034;\u751f\u4ea7\u7ea7\u672c\u5730\u843d\u5e93&#034;&#xff0c;\u4e2d\u95f4\u9694\u7740\u9650\u9891\u9000\u907f\u3001\u65ad\u70b9\u7eed\u4f20\u3001\u591a\u6e90\u5bf9\u9f50\u3001\u843d\u5e93\u8303\u5f0f\u5341\u9053\u574e\u2014\u2014\u672c\u7cfb\u5217 28 \u7bc7\u9010\u73af\u6253\u901a\u3002\u5173\u6ce8\u4e0d\u8ff7\u8def&#xff0c;\u66f4\u65b0\u7b2c\u4e00\u65f6\u95f4\u63a8\u7ed9\u4f60\u3002<\/p>\n<h3>\u524d\u8a00<\/h3>\n<p>\u5f88\u591a\u91cf\u5316\u4eba\u5361\u5728&#034;\u8c03\u901a\u63a5\u53e3&#034;\u5230&#034;\u751f\u4ea7\u53ef\u7528&#034;\u7684\u9e3f\u6c9f\u91cc&#xff1a;\u9650\u9891\u8be5\u600e\u4e48\u9000\u907f\u3001\u5b57\u6bb5\u548c\u6587\u6863\u5bf9\u4e0d\u4e0a\u53bb\u54ea\u67e5\u3001\u5386\u53f2\u6570\u636e\u600e\u4e48\u56de\u586b\u3001\u591a\u63a5\u53e3\u65f6\u95f4\u8f74\u600e\u4e48\u5bf9\u9f50\u3001\u843d\u5e93\u8868\u600e\u4e48\u8bbe\u8ba1\u624d\u6491\u5f97\u4f4f\u4ebf\u7ea7\u5386\u53f2\u2026\u2026\u8fd9\u4e9b\u95ee\u9898\u5f7c\u6b64\u72ec\u7acb&#xff0c;\u5374\u53c8\u4e32\u6210\u4e00\u6761\u5b8c\u6574\u7684&#034;\u6570\u636e\u7ba1\u9053&#034;\u3002<\/p>\n<p>\u4ec0\u4e48\u662f\u751f\u4ea7\u7ea7\u6570\u636e\u7ba1\u9053&#xff1f; \u4e00\u53e5\u8bdd&#xff1a;\u4ece&#034;\u53d1\u8bf7\u6c42&#034;\u5230&#034;\u672c\u5730\u843d\u5e93\u53ef\u88ab\u7b56\u7565\u8c03\u7528&#034;&#xff0c;\u4e2d\u95f4\u6bcf\u4e00\u73af\u90fd\u7a33\u5b9a\u3001\u53ef\u89c2\u6d4b\u3001\u53ef\u91cd\u653e\u3002\u5b83\u4e0d\u662f\u628a requests.get \u5199\u8fdb\u811a\u672c\u5c31\u5b8c\u4e8b&#xff0c;\u800c\u662f\u8981\u628a\u9274\u6743\u3001\u9650\u9891\u3001\u89e3\u6790\u3001\u6821\u9a8c\u3001\u843d\u5e93\u3001\u8c03\u5ea6\u3001\u5bf9\u9f50\u3001\u76d1\u63a7\u8fd9\u4e9b&#034;\u810f\u6d3b&#034;\u90fd\u505a\u6210\u53ef\u590d\u7528\u7684\u96f6\u4ef6\u3002<\/p>\n<p>\u672c\u7cfb\u5217\u5171 28 \u7bc7&#xff0c;\u6309 14 \u7bc7\u4e00\u5468\u671f\u5206\u4e0a\u4e0b\u534a\u573a&#xff1a;\u4e0a\u534a\u573a&#xff08;\u7b2c 1\u201314 \u7bc7&#xff09;\u89e3\u51b3&#034;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u672c\u5730\u843d\u5e93&#034;&#xff0c;\u4e0b\u534a\u573a&#xff08;\u7b2c 15\u201328 \u7bc7&#xff09;\u89e3\u51b3&#034;\u843d\u5e93\u8fdb\u9636\u3001\u589e\u91cf\u8c03\u5ea6\u3001\u591a\u6e90\u5bf9\u9f50\u4e0e\u751f\u4ea7\u5316\u6536\u5b98&#034;\u3002\u672c\u7bc7\u662f\u4e0a\u534a\u573a\u7684\u4e3b\u63a8\u7bc7&#xff0c;\u65e2\u662f\u5bfc\u89c8\u4e5f\u662f\u4e00\u7bc7\u6280\u672f\u6587\u7ae0\u2014\u2014\u505a\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u7ed9\u4f60\u4e00\u5f20\u8986\u76d6\u7b2c 1\u201314 \u7bc7\u7684\u5730\u56fe&#xff1b;<\/li>\n<li>\u628a\u6574\u6761\u7ba1\u9053\u7684\u5730\u57fa\u8bb2\u900f&#xff1a;REST \u89c4\u8303\u4e0e licence \u9274\u6743&#xff08;\u8d44\u6e90\u8def\u5f84\u3001\u8fd4\u56de\u7ed3\u6784\u3001\u5b57\u6bb5\u7ea6\u5b9a\u3001\u81ea\u7814\u5c01\u88c5&#xff09;&#xff1b;<\/li>\n<li>\u7528\u4e00\u6bb5\u53ef\u8dd1\u901a\u7684\u5f15\u5b50\u793a\u4f8b&#xff0c;\u628a&#034;\u5e95\u5ea7 &#043; \u89e3\u6790 &#043; \u843d\u5e93&#034;\u4e32\u8d77\u6765&#xff0c;\u4f5c\u4e3a\u540e\u7eed\u6bcf\u7bc7\u7684\u8d77\u70b9\u3002<\/li>\n<p>\u4f60\u53ef\u4ee5\u628a\u672c\u7bc7\u5f53\u76ee\u5f55\u3001\u5730\u57fa\u548c\u8d77\u70b9&#xff0c;\u968f\u65f6\u56de\u770b&#xff1b;\u4ece\u7b2c 2 \u7bc7\u8d77\u6bcf\u7bc7\u90fd\u662f\u4e00\u7bc7\u80fd\u72ec\u7acb\u4e0a\u624b\u7684\u6280\u672f\u6587\u3002<\/p>\n<h3>\u4e00\u3001\u4e0a\u534a\u573a\u5730\u56fe&#xff08;\u7b2c 1\u201314 \u7bc7 \u00b7 4 \u5927\u6a21\u5757&#xff09;<\/h3>\n<table>\n<tr>\u7bc7\u53f7\u6a21\u5757\u4e3b\u9898\u4e00\u53e5\u8bdd\u5b9a\u4f4d<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u2014<\/td>\n<td>\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743&#xff08;\u4e3b\u63a8\u00b7\u5f15\u5bfc&#043;\u6280\u672f&#xff09;<\/td>\n<td>\u5168 14 \u7bc7\u5730\u56fe &#043; REST \u9274\u6743\u6280\u672f\u7ae0 &#043; \u5f15\u5b50\u793a\u4f8b<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u2460\u63a5\u5165\u57fa\u5efa<\/td>\n<td>\u9650\u9891\u3001\u8d85\u65f6\u4e0e\u6307\u6570\u9000\u907f\u91cd\u8bd5<\/td>\n<td>\u6296\u52a8\u7f51\u7edc\u4e0b\u7684\u5065\u58ee\u62c9\u53d6\u5c42<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u2460\u63a5\u5165\u57fa\u5efa<\/td>\n<td>licence \u914d\u989d\u4e0e\u989d\u5ea6\u7ba1\u7406<\/td>\n<td>\u6309\u63a5\u53e3\u7edf\u8ba1\u7528\u91cf\u3001\u989d\u5ea6\u9884\u8b66\u3001\u591a licence \u8f6e\u8be2<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u2460\u63a5\u5165\u57fa\u5efa<\/td>\n<td>\u8d85\u65f6\u4e0e\u5f02\u5e38\u5206\u7c7b\u4f53\u7cfb<\/td>\n<td>\u533a\u5206\u53ef\u91cd\u8bd5\u4e0e\u4e0d\u53ef\u91cd\u8bd5\u9519\u8bef&#xff0c;\u7cbe\u51c6\u544a\u8b66<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u2460\u63a5\u5165\u57fa\u5efa<\/td>\n<td>\u8bf7\u6c42\u7f16\u6392\u4e0e\u591a licence \u8c03\u5ea6<\/td>\n<td>\u5e76\u53d1\u7f16\u6392\u3001licence \u6c60\u8f6e\u6362\u3001\u914d\u989d\u81ea\u9002\u5e94\u9650\u901f<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u2461\u62c9\u53d6\u89e3\u6790<\/td>\n<td>\u6241\u5e73 JSON \u5b57\u6bb5\u89e3\u6790<\/td>\n<td>\u628a {dm,list:[&#8230;]} \u89c4\u6574\u4e3a\u8bb0\u5f55<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>\u2461\u62c9\u53d6\u89e3\u6790<\/td>\n<td>\u5206\u9875\u4e0e\u589e\u91cf\u6e38\u6807<\/td>\n<td>\u7528\u6e38\u6807\u7ffb\u9875\u3001\u907f\u514d\u5168\u91cf\u91cd\u62c9<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>\u2461\u62c9\u53d6\u89e3\u6790<\/td>\n<td>\u591a\u6807\u7684\u5e76\u53d1\u62c9\u53d6<\/td>\n<td>\u6279\u91cf\u53d6\u6570\u4e0d\u8e29\u9650\u9891<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>\u2461\u62c9\u53d6\u89e3\u6790<\/td>\n<td>\u65ad\u70b9\u7eed\u4f20\u4e0e\u5931\u8d25\u6062\u590d<\/td>\n<td>\u4e2d\u9014\u65ad\u4e86\u4ece\u54ea\u7eed\u3001\u600e\u6837\u4e0d\u91cd\u590d<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>\u2462\u5b57\u6bb5\u6821\u9a8c<\/td>\n<td>\u5b57\u6bb5\u5b57\u5178\u4e0e\u7c7b\u578b\u6620\u5c04<\/td>\n<td>\u6587\u6863\u5b57\u6bb5 \u2192 \u672c\u5730\u7c7b\u578b\u7684\u5b89\u5168\u6620\u5c04<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>\u2462\u5b57\u6bb5\u6821\u9a8c<\/td>\n<td>\u7f3a\u5931\u4e0e\u5f02\u5e38\u503c\u68c0\u6d4b<\/td>\n<td>NaN\u30010 \u6210\u4ea4\u91cf\u3001\u4ef7\u683c\u8df3\u53d8\u8bc6\u522b<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>\u2462\u5b57\u6bb5\u6821\u9a8c<\/td>\n<td>\u590d\u6743\u9664\u6743\u4e00\u81f4\u6027\u6821\u9a8c<\/td>\n<td>\u524d\u540e\u590d\u6743\u6df7\u7528\u6c61\u67d3\u6536\u76ca\u7387\u7684\u6392\u67e5<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>\u2462\u5b57\u6bb5\u6821\u9a8c<\/td>\n<td>\u6570\u636e\u8d28\u91cf\u8bc4\u5206<\/td>\n<td>\u7ed9\u6bcf\u5f20\u8868\u6253&#034;\u53ef\u4fe1\u5206&#034;<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>\u2463\u843d\u5e93\u7d22\u5f15<\/td>\n<td>SQLite \u8868\u8303\u5f0f\u8bbe\u8ba1<\/td>\n<td>\u7b2c\u4e00\u5f20\u80fd\u6491\u4f4f\u7ba1\u7ebf\u7684\u672c\u5730\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u903b\u8f91\u94fe&#xff1a;\u63a5\u5165\u57fa\u5efa&#xff08;2\u20135&#xff09;\u2192 \u62c9\u53d6\u89e3\u6790&#xff08;6\u20139&#xff09;\u2192 \u5b57\u6bb5\u6821\u9a8c&#xff08;10\u201313&#xff09;\u2192 \u843d\u5e93\u8303\u5f0f&#xff08;14&#xff09;\u3002\u524d 5 \u7bc7\u89e3\u51b3&#034;\u7a33\u7a33\u628a\u6570\u62c9\u56de\u6765&#034;&#xff0c;\u4e2d\u95f4 4 \u7bc7\u89e3\u51b3&#034;\u628a\u6570\u89e3\u6790\u5e72\u51c0&#034;&#xff0c;\u63a5\u7740 4 \u7bc7\u89e3\u51b3&#034;\u6570\u5bf9\u4e0d\u5bf9&#034;&#xff0c;\u6700\u540e 1 \u7bc7\u843d\u5730\u6210\u5e93\u3002\u672c\u7bc7\u7b2c 2 \u7ae0&#xff08;\u63a5\u53e3\u539f\u59cb\u5b57\u6bb5\u68b3\u7406&#xff09;\u8d1f\u8d23\u628a&#034;\u7a33\u7a33\u628a\u6570\u62c9\u56de\u6765&#034;\u7684\u7b2c\u4e00\u5757\u5730\u57fa&#xff08;REST \u89c4\u8303\u4e0e licence \u9274\u6743&#xff09;\u6253\u5b9e\u3002<\/p>\n<h3>\u4e8c\u3001\u63a5\u53e3\u539f\u59cb\u5b57\u6bb5\u68b3\u7406&#xff1a;REST \u89c4\u8303\u4e0e licence \u9274\u6743<\/h3>\n<p>\u524d\u9762\u662f\u5730\u56fe&#xff0c;\u8fd9\u4e00\u7ae0\u628a\u6574\u6761\u7ba1\u9053\u7684\u7b2c\u4e00\u5757\u5730\u57fa\u8bb2\u900f\u2014\u2014\u8bf7\u6c42\u600e\u4e48\u6784\u9020\u3001licence \u600e\u4e48\u9274\u6743\u3001\u8fd4\u56de\u957f\u4ec0\u4e48\u6837\u3002\u8fd9\u4e5f\u662f\u672c\u7bc7\u4f5c\u4e3a&#034;\u6280\u672f\u6587\u7ae0&#034;\u7684\u5b9e\u8d28\u5185\u5bb9&#xff1a;\u4e0d\u53ea\u7ed9\u4f60\u5730\u56fe&#xff0c;\u4e5f\u628a\u5730\u57fa\u6253\u5b9e\u3002\u5b57\u6bb5\u4e0e\u8def\u5f84\u5168\u90e8\u53d6\u81ea\u5fc5\u76c8\u5b98\u7f51&#xff08;www.biyingapi.com&#xff09;API \u6587\u6863&#xff0c;\u96f6\u7f16\u9020\u3002<\/p>\n<h4>1&#xff09;\u8d44\u6e90\u8def\u5f84\u4e0e\u9274\u6743\u7ea6\u5b9a<\/h4>\n<p>\u6570\u636e\u6e90\u7684\u884c\u60c5 \/ \u8d22\u52a1 \/ \u8d44\u91d1\u7c7b\u63a5\u53e3\u662f\u7edf\u4e00\u7684 REST \u98ce\u683c\u3002\u4ee5\u6caa\u6df1 A \u80a1\u65e5\u7ebf hsstock\/history \u4e3a\u4f8b&#xff0c;\u5b98\u7f51\u6587\u6863\u7ed9\u51fa\u7684\u771f\u5b9e\u5f62\u6001\u662f&#xff1a;<\/p>\n<p>https:\/\/api.biyingapi.com\/hsstock\/history\/\u80a1\u7968\u4ee3\u7801.\u5e02\u573a&#xff08;\u5982000001.SZ&#xff09;\/\u5206\u65f6\u7ea7\u522b&#xff08;\u5982d&#xff09;\/\u9664\u6743\u65b9\u5f0f&#xff08;\u5982n&#xff09;\/\u60a8\u7684licence?st&#061;\u5f00\u59cb\u65f6\u95f4&#038;et&#061;\u7ed3\u675f\u65f6\u95f4&#038;lt&#061;\u6700\u65b0\u6761\u6570<\/p>\n<p>\u53ef\u5f52\u7eb3\u51fa\u4e00\u6761\u8def\u5f84\u8303\u5f0f&#xff1a;<\/p>\n<p>BASE \/ {module} \/ {endpoint} \/ {path_args&#8230;} \/ {licence} ? {query}<\/p>\n<ul>\n<li>BASE&#xff1a;\u6570\u636e\u6e90\u57df\u540d https:\/\/api.biyingapi.com&#xff1b;<\/li>\n<li>{module}&#xff1a;\u6570\u636e\u5927\u7c7b&#xff0c;\u5982 hsstock&#xff08;\u6caa\u6df1\u80a1\u7968&#xff09;\u3001hsindex&#xff08;\u6307\u6570&#xff09;\u3001himk&#xff08;\u9009\u80a1\/\u57fa\u672c\u9762&#xff09;\u3001hicw&#xff08;\u8d22\u52a1&#xff09;\u3001hizj&#xff08;\u8d44\u91d1&#xff09;\u7b49&#xff1b;<\/li>\n<li>{endpoint}&#xff1a;\u5177\u4f53\u63a5\u53e3&#xff0c;\u5982 history&#xff08;\u5386\u53f2\u884c\u60c5&#xff09;\u3001latest&#xff08;\u6700\u65b0&#xff09;\u3001real\/time&#xff08;\u5b9e\u65f6&#xff09;\u3001financial\/balance&#xff08;\u8d44\u4ea7\u8d1f\u503a\u8868&#xff09;&#xff1b;<\/li>\n<li>{path_args&#8230;}&#xff1a;\u63a5\u53e3\u7279\u5b9a\u7684\u8def\u5f84\u53c2\u6570&#xff0c;\u5982 000001.SZ\u3001d&#xff08;\u65e5\u7ebf&#xff09;\u3001n&#xff08;\u4e0d\u590d\u6743&#xff09;&#xff1b;<\/li>\n<li>{licence}&#xff1a;\u6570\u636e\u6e90\u6388\u6743\u7684\u552f\u4e00\u51ed\u8bc1&#xff0c;\u591a\u6570\u63a5\u53e3\u4ee5\u8def\u5f84\u672b\u6bb5\u5f62\u5f0f\u643a\u5e26&#xff1b;<\/li>\n<li>{query}&#xff1a;\u67e5\u8be2\u53c2\u6570&#xff0c;\u5e38\u89c1 st\/et&#xff08;\u8d77\u6b62\u65f6\u95f4&#xff09;\u3001lt&#xff08;\u6700\u65b0\u6761\u6570 \/ \u6743\u9650\u6df1\u5ea6&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u9274\u6743\u5931\u8d25\u7684\u8868\u73b0&#xff1a;licence \u65e0\u6548\u6216\u8fc7\u671f\u65f6&#xff0c;\u63a5\u53e3\u4e0d\u8fd4\u56de\u6b63\u5e38\u7684 dm &#043; list \u4fe1\u5c01&#xff0c;\u800c\u662f\u8fd4\u56de\u7279\u5b9a\u9519\u8bef\u7801 \/ \u9519\u8bef\u4fe1\u606f\u3002\u7b2c 4 \u7bc7\u7684&#034;\u5f02\u5e38\u5206\u7c7b\u4f53\u7cfb&#034;\u4e13\u95e8\u8d1f\u8d23\u8bc6\u522b\u8fd9\u7c7b\u4fe1\u53f7&#xff0c;\u51b3\u5b9a&#034;\u91cd\u8bd5\u8fd8\u662f\u544a\u8b66&#034;\u3002<\/p>\n<p>\u6ce8&#xff1a;\u6df1\u5ea6\u884c\u60c5\u5305&#xff08;\u5982 1 \u5206\u949f K \u7ebf Pro \u7248&#xff09;\u8def\u5f84\u5e26 \/pro\/ \u524d\u7f00\u3001\u8d70 vip.biyingapi.com \u57df\u540d\u3001\u72ec\u7acb\u8ba1\u8d39&#xff0c;\u672c\u7cfb\u5217 13 \u7bc7\u6280\u672f\u6587\u4ee5\u901a\u7528 hsstock\/history \u65e5\u7ebf\u4e3a\u793a\u4f8b&#xff0c;\u4e0d\u5f15\u7528\u589e\u503c\u5305\u63a5\u53e3\u3002<\/p>\n<h4>2&#xff09;\u8fd4\u56de\u7ed3\u6784\u4e0e\u5b57\u6bb5\u7ea6\u5b9a<\/h4>\n<p>\u51e0\u4e4e\u6240\u6709\u63a5\u53e3\u7684\u8fd4\u56de\u90fd\u9075\u5faa\u540c\u4e00\u5957\u4fe1\u5c01\u7ed3\u6784&#xff1a;\u9876\u5c42\u5e26 dm&#xff08;\u6807\u7684\u4ee3\u7801&#xff09;\u4e0e list&#xff08;\u6570\u636e\u6570\u7ec4&#xff09;&#xff0c;list \u5185\u6bcf\u884c\u662f\u6241\u5e73\u5b57\u6bb5\u5bf9\u8c61\u3002\u8fd9\u6b63\u662f\u7b2c 6 \u7bc7&#034;\u901a\u7528\u89e3\u6790\u5668&#034;\u80fd\u901a\u5403\u6240\u6709\u63a5\u53e3\u7684\u539f\u56e0\u3002<\/p>\n<p>\u4ee5 A \u80a1\u65e5\u7ebf \/hsstock\/history \u4e3a\u4f8b&#xff0c;\u5b98\u7f51\u6587\u6863\u5217\u51fa\u7684\u5b57\u6bb5&#xff08;\u96f6\u7f16\u9020&#xff09;\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u5b57\u6bb5\u542b\u4e49\u7c7b\u578b\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>t<\/td>\n<td>\u4ea4\u6613\u65e5\u671f<\/td>\n<td>str<\/td>\n<td>\u683c\u5f0f YYYY-MM-DD<\/td>\n<\/tr>\n<tr>\n<td>o<\/td>\n<td>\u5f00\u76d8\u4ef7<\/td>\n<td>float<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>h<\/td>\n<td>\u6700\u9ad8\u4ef7<\/td>\n<td>float<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>l<\/td>\n<td>\u6700\u4f4e\u4ef7<\/td>\n<td>float<\/td>\n<td>\u2014<\/td>\n<\/tr>\n<tr>\n<td>c<\/td>\n<td>\u6536\u76d8\u4ef7<\/td>\n<td>float<\/td>\n<td>\u56de\u6d4b\u4e0e\u8ba1\u7b97\u7684\u57fa\u51c6\u4ef7<\/td>\n<\/tr>\n<tr>\n<td>v<\/td>\n<td>\u6210\u4ea4\u91cf<\/td>\n<td>float<\/td>\n<td>\u5355\u4f4d&#xff1a;\u80a1<\/td>\n<\/tr>\n<tr>\n<td>a<\/td>\n<td>\u6210\u4ea4\u989d<\/td>\n<td>float<\/td>\n<td>\u5355\u4f4d&#xff1a;\u5143<\/td>\n<\/tr>\n<tr>\n<td>pc<\/td>\n<td>\u6628\u6536\u4ef7<\/td>\n<td>float<\/td>\n<td>\u7528\u4e8e\u6da8\u8dcc\u5e45\u4e0e\u590d\u6743\u8854\u63a5<\/td>\n<\/tr>\n<tr>\n<td>sf<\/td>\n<td>\u590d\u6743\u56e0\u5b50<\/td>\n<td>float<\/td>\n<td>\u590d\u6743\u4e00\u81f4\u6027\u6821\u9a8c\u7684\u5173\u952e\u5b57\u6bb5&#xff08;\u7b2c 12 \u7bc7&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u540c\u4e00\u4fe1\u5c01&#xff08;dm &#043; list&#xff09;\u4e5f\u51fa\u73b0\u5728 hsindex\u3001himk\u3001hicw \u7b49\u51e0\u4e4e\u6240\u6709\u63a5\u53e3\u2014\u2014\u53ea\u662f list \u5185\u5b57\u6bb5\u4e0d\u540c\u3002\u8bb0\u4f4f&#034;\u4fe1\u5c01\u4e0d\u53d8\u3001\u5b57\u6bb5\u5404\u5f02&#034;\u8fd9\u4e00\u70b9&#xff0c;\u540e\u7eed\u89e3\u6790\u4e0e\u843d\u5e93\u5c31\u80fd\u505a\u6210\u7edf\u4e00\u96f6\u4ef6\u3002<\/p>\n<h4>3&#xff09;\u81ea\u7814\u5c01\u88c5&#xff1a;\u628a licence \u6ce8\u5165\u8bf7\u6c42<\/h4>\n<p>\u7531\u4e8e licence \u843d\u5728\u8def\u5f84\u672b\u6bb5\u800c\u975e\u67e5\u8be2\u53c2\u6570&#xff0c;\u5c01\u88c5\u8981\u505a\u7684\u662f&#034;\u628a licence \u62fc\u8fdb path \u672b\u6bb5\u3001\u518d\u628a\u67e5\u8be2\u53c2\u6570\u62fc\u5230 ? \u4e4b\u540e&#034;\u3002\u4e0b\u9762\u8fd9\u6bb5\u662f\u540e\u7eed\u6bcf\u7bc7\u590d\u7528\u7684\u5e95\u5ea7\u96cf\u5f62&#xff08;\u7eaf\u6807\u51c6\u5e93 urllib&#xff0c;\u4e0d\u4f9d\u8d56\u4efb\u4f55\u7b2c\u4e09\u65b9\u5305&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> urllib<span class=\"token punctuation\">.<\/span>request<br \/>\n<span class=\"token keyword\">import<\/span> urllib<span class=\"token punctuation\">.<\/span>error<br \/>\n<span class=\"token keyword\">import<\/span> urllib<span class=\"token punctuation\">.<\/span>parse<br \/>\n<span class=\"token keyword\">import<\/span> json<br \/>\n<span class=\"token keyword\">import<\/span> time<\/p>\n<p>BASE <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;https:\/\/api.biyingapi.com&#034;<\/span>          <span class=\"token comment\"># \u6570\u636e\u6e90\u57df\u540d&#xff08;\u53d6\u6570\u7aef\u70b9&#xff09;<\/span><br \/>\nLICENCE <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;YOUR_LICENCE_HERE&#034;<\/span>               <span class=\"token comment\"># \u9700\u66ff\u6362\u6210\u60a8\u81ea\u5df1\u7684\u5fc5\u76c8API licence<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">build_url<\/span><span class=\"token punctuation\">(<\/span>module<span class=\"token punctuation\">,<\/span> endpoint<span class=\"token punctuation\">,<\/span> path_args<span class=\"token punctuation\">,<\/span> licence<span class=\"token punctuation\">,<\/span> params<span class=\"token operator\">&#061;<\/span><span class=\"token boolean\">None<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u6309\u5b98\u7f51\u7ea6\u5b9a\u628a licence \u62fc\u8fdb\u8def\u5f84\u672b\u6bb5&#xff0c;\u518d\u62fc\u67e5\u8be2\u53c2\u6570\u3002&#034;&#034;&#034;<\/span><br \/>\n    segs <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span>module<span class=\"token punctuation\">,<\/span> endpoint<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token builtin\">list<\/span><span class=\"token punctuation\">(<\/span>path_args<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token punctuation\">[<\/span>licence<span class=\"token punctuation\">]<\/span><br \/>\n    q <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;&#034;<\/span> <span class=\"token keyword\">if<\/span> <span class=\"token keyword\">not<\/span> params <span class=\"token keyword\">else<\/span> <span class=\"token string\">&#034;?&#034;<\/span> <span class=\"token operator\">&#043;<\/span> urllib<span class=\"token punctuation\">.<\/span>parse<span class=\"token punctuation\">.<\/span>urlencode<span class=\"token punctuation\">(<\/span>params<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> BASE <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;\/&#034;<\/span> <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;\/&#034;<\/span><span class=\"token punctuation\">.<\/span>join<span class=\"token punctuation\">(<\/span>segs<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#043;<\/span> q<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">biying_api_get_retry<\/span><span class=\"token punctuation\">(<\/span>url<span class=\"token punctuation\">,<\/span> timeout<span class=\"token operator\">&#061;<\/span><span class=\"token number\">15<\/span><span class=\"token punctuation\">,<\/span> max_retry<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u5e26\u6307\u6570\u9000\u907f\u7684 REST \u62c9\u53d6&#xff1a;\u9650\u9891(429)\u4e0e\u7f51\u7edc\u5f02\u5e38\u81ea\u52a8\u91cd\u8bd5\u3002<br \/>\n    \u4ec5 429\/5xx\/\u7f51\u7edc\/\u8d85\u65f6\u9000\u907f\u91cd\u8bd5&#xff1b;\u5176\u4f59 4xx \u7acb\u5373\u629b&#xff0c;\u4ea4\u7ed9\u7b2c 4 \u7bc7\u5206\u7c7b\u3002&#034;&#034;&#034;<\/span><br \/>\n    last <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">None<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> i <span class=\"token keyword\">in<\/span> <span class=\"token builtin\">range<\/span><span class=\"token punctuation\">(<\/span>max_retry<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">try<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            req <span class=\"token operator\">&#061;<\/span> urllib<span class=\"token punctuation\">.<\/span>request<span class=\"token punctuation\">.<\/span>Request<span class=\"token punctuation\">(<\/span>url<span class=\"token punctuation\">,<\/span> headers<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;User-Agent&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Mozilla\/5.0&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token keyword\">with<\/span> urllib<span class=\"token punctuation\">.<\/span>request<span class=\"token punctuation\">.<\/span>urlopen<span class=\"token punctuation\">(<\/span>req<span class=\"token punctuation\">,<\/span> timeout<span class=\"token operator\">&#061;<\/span>timeout<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> resp<span class=\"token punctuation\">:<\/span><br \/>\n                <span class=\"token keyword\">return<\/span> json<span class=\"token punctuation\">.<\/span>loads<span class=\"token punctuation\">(<\/span>resp<span class=\"token punctuation\">.<\/span>read<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>decode<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;utf-8&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">except<\/span> urllib<span class=\"token punctuation\">.<\/span>error<span class=\"token punctuation\">.<\/span>HTTPError <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n            last <span class=\"token operator\">&#061;<\/span> e<br \/>\n            <span class=\"token keyword\">if<\/span> e<span class=\"token punctuation\">.<\/span>code <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">429<\/span><span class=\"token punctuation\">:<\/span><br \/>\n                time<span class=\"token punctuation\">.<\/span>sleep<span class=\"token punctuation\">(<\/span><span class=\"token builtin\">min<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">2<\/span> <span class=\"token operator\">**<\/span> i<span class=\"token punctuation\">,<\/span> <span class=\"token number\">8<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token keyword\">continue<\/span><br \/>\n            <span class=\"token keyword\">raise<\/span><br \/>\n        <span class=\"token keyword\">except<\/span> <span class=\"token punctuation\">(<\/span>urllib<span class=\"token punctuation\">.<\/span>error<span class=\"token punctuation\">.<\/span>URLError<span class=\"token punctuation\">,<\/span> TimeoutError<span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">as<\/span> e<span class=\"token punctuation\">:<\/span><br \/>\n            last <span class=\"token operator\">&#061;<\/span> e<br \/>\n            time<span class=\"token punctuation\">.<\/span>sleep<span class=\"token punctuation\">(<\/span><span class=\"token builtin\">min<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">2<\/span> <span class=\"token operator\">**<\/span> i<span class=\"token punctuation\">,<\/span> <span class=\"token number\">8<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token keyword\">continue<\/span><br \/>\n    <span class=\"token keyword\">raise<\/span> last<\/p>\n<p><span class=\"token comment\"># \u771f\u5b9e\u8c03\u7528\u5f62\u6001&#xff08;\u79bb\u7ebf\u6f14\u793a\u4e0d\u89e6\u7f51&#xff0c;\u4ec5\u5c55\u793a\u62fc\u63a5\u7ed3\u679c&#xff09;&#xff1a;<\/span><br \/>\n<span class=\"token comment\"># url &#061; build_url(&#034;hsstock&#034;, &#034;history&#034;, [&#034;000001.SZ&#034;, &#034;d&#034;, &#034;n&#034;], LICENCE,<\/span><br \/>\n<span class=\"token comment\">#                 {&#034;st&#034;: &#034;20240601&#034;, &#034;et&#034;: &#034;20250430&#034;, &#034;lt&#034;: 100})<\/span><br \/>\n<span class=\"token comment\"># payload &#061; biying_api_get_retry(url)<\/span><\/p>\n<p>build_url(&#034;hsstock&#034;, &#034;history&#034;, [&#034;000001.SZ&#034;, &#034;d&#034;, &#034;n&#034;], LICENCE, {&#034;st&#034;:&#8230;,&#034;et&#034;:&#8230;,&#034;lt&#034;:100}) \u62fc\u51fa\u7684\u5c31\u662f https:\/\/api.biyingapi.com\/hsstock\/history\/000001.SZ\/d\/n\/YOUR_LICENCE?st&#061;&#8230;&amp;et&#061;&#8230;&amp;lt&#061;100&#xff0c;\u4e0e\u5b98\u7f51\u6587\u6863\u5f62\u6001\u9010\u5b57\u4e00\u81f4\u3002<\/p>\n<h3>\u4e09\u3001\u8c03\u7528\u5e95\u5ea7\u9aa8\u67b6&#xff08;\u540e\u7eed\u6bcf\u7bc7\u590d\u7528&#xff09;<\/h3>\n<p>\u672c\u7cfb\u5217\u6240\u6709\u6280\u672f\u7bc7\u90fd\u57fa\u4e8e\u4e0a\u9762\u7b2c 2 \u7ae0\u7684 build_url &#043; biying_api_get_retry \u6269\u5c55\u3002\u5b83\u6574\u5408\u4e86&#034;\u9274\u6743\u6ce8\u5165&#034;&#xff08;\u7b2c 2 \u7ae0&#xff09;\u4e0e&#034;\u9000\u907f\u91cd\u8bd5&#034;&#xff08;\u7b2c 2 \u7bc7&#xff09;&#xff0c;\u5373\u6574\u6761\u7ba1\u9053\u7684\u5165\u53e3\u3002\u7b2c 5 \u7bc7\u4f1a\u5728\u6b64\u57fa\u7840\u4e0a\u52a0&#034;\u8bf7\u6c42\u7f16\u6392 &#043; licence \u6c60\u8f6e\u6362&#034;&#xff0c;\u7b2c 6 \u7bc7\u4f1a\u57fa\u4e8e\u8fd4\u56de\u4fe1\u5c01\u5199 to_records \u89e3\u6790\u5668\u3002<\/p>\n<h3>\u56db\u3001\u5f15\u5b50\u793a\u4f8b&#xff1a;\u4e00\u6761\u6700\u5c0f\u53ef\u8dd1\u901a\u7684\u7ba1\u9053<\/h3>\n<p>\u4e0b\u9762\u8fd9\u6bb5\u79bb\u7ebf\u793a\u4f8b&#xff08;\u96f6\u7f16\u9020\u3001\u4e0d\u89e6\u7f51&#xff09;\u628a&#034;\u5e95\u5ea7 \u2192 \u89e3\u6790 \u2192 \u843d\u5e93&#034;\u4e32\u8d77\u6765&#xff0c;\u7ed9\u51fa\u540e\u7eed\u6bcf\u7bc7\u7684\u8d77\u70b9\u3002\u5b83\u7528\u771f\u5b9e\u7684\u65e5\u7ebf\u5b57\u6bb5 t,o,h,l,c,v,a,pc,sf \u6784\u9020\u793a\u4f8b\u6570\u636e&#xff0c;\u6f14\u793a\u5982\u4f55\u89e3\u6790\u6210\u8bb0\u5f55\u5e76\u843d\u8fdb\u672c\u5730\u8868&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> sqlite3<\/p>\n<p>DB_PATH <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;pipeline_demo.db&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u793a\u4f8b\u6570\u636e&#xff1a;\u5b57\u6bb5\u7ed3\u6784\u4e0e \/hsstock\/history \u8fd4\u56de\u4e00\u81f4&#xff08;dm &#043; list&#xff0c;list \u5185 t,o,h,l,c,v,a,pc,sf&#xff09;<\/span><br \/>\nSAMPLE <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;dm&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;600000&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;list&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;t&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;2026-10-20&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;o&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;h&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.3<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;l&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;c&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.2<\/span><span class=\"token punctuation\">,<\/span><br \/>\n         <span class=\"token string\">&#034;v&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">123456<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;a&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1256000.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;pc&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;sf&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;t&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;2026-10-21&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;o&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;h&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;l&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;c&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.4<\/span><span class=\"token punctuation\">,<\/span><br \/>\n         <span class=\"token string\">&#034;v&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">130000<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;a&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1352000.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;pc&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">10.2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;sf&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">to_records<\/span><span class=\"token punctuation\">(<\/span>payload<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u7b2c 6 \u7bc7\u89e3\u6790\u5668\u7684\u96cf\u5f62&#xff1a;\u628a list \u89c4\u6574\u4e3a\u8bb0\u5f55\u3002&#034;&#034;&#034;<\/span><br \/>\n    dm <span class=\"token operator\">&#061;<\/span> payload<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;dm&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    rows <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> r <span class=\"token keyword\">in<\/span> payload<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;list&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        rows<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>dm<span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;t&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;o&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;h&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;l&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;c&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                     r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;v&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;a&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;pc&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> r<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;sf&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> rows<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">create_daily_table<\/span><span class=\"token punctuation\">(<\/span>con<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    con<span class=\"token punctuation\">.<\/span>execute<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;CREATE TABLE IF NOT EXISTS daily(<br \/>\n               dm TEXT, t TEXT, o REAL, h REAL, l REAL, c REAL,<br \/>\n               v REAL, a REAL, pc REAL, sf REAL,<br \/>\n               PRIMARY KEY(dm, t))&#034;&#034;&#034;<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">upsert<\/span><span class=\"token punctuation\">(<\/span>con<span class=\"token punctuation\">,<\/span> rows<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    con<span class=\"token punctuation\">.<\/span>executemany<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string\">&#034;INSERT OR REPLACE INTO daily(dm,t,o,h,l,c,v,a,pc,sf) VALUES(?,?,?,?,?,?,?,?,?,?)&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        rows<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n    con<span class=\"token punctuation\">.<\/span>commit<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> __name__ <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;__main__&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    con <span class=\"token operator\">&#061;<\/span> sqlite3<span class=\"token punctuation\">.<\/span>connect<span class=\"token punctuation\">(<\/span>DB_PATH<span class=\"token punctuation\">)<\/span><br \/>\n    create_daily_table<span class=\"token punctuation\">(<\/span>con<span class=\"token punctuation\">)<\/span><br \/>\n    rows <span class=\"token operator\">&#061;<\/span> to_records<span class=\"token punctuation\">(<\/span>SAMPLE<span class=\"token punctuation\">)<\/span>          <span class=\"token comment\"># \u89e3\u6790&#xff08;\u7b2c 6 \u7bc7&#xff09;<\/span><br \/>\n    upsert<span class=\"token punctuation\">(<\/span>con<span class=\"token punctuation\">,<\/span> rows<span class=\"token punctuation\">)<\/span>                  <span class=\"token comment\"># \u843d\u5e93&#xff08;\u7b2c 14 \u7bc7&#xff09;<\/span><br \/>\n    got <span class=\"token operator\">&#061;<\/span> con<span class=\"token punctuation\">.<\/span>execute<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;SELECT dm,t,c,v FROM daily ORDER BY t&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>fetchall<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u843d\u5e93\u8bb0\u5f55\u6570:&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>got<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> r <span class=\"token keyword\">in<\/span> got<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>r<span class=\"token punctuation\">)<\/span>                       <span class=\"token comment\"># \u5f15\u5b50\u6253\u901a&#xff1a;\u8bf7\u6c42\u2192\u89e3\u6790\u2192\u843d\u5e93<\/span><br \/>\n    con<span class=\"token punctuation\">.<\/span>close<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8dd1\u901a\u540e\u4f60\u4f1a\u770b\u5230\u4e24\u6761\u8bb0\u5f55\u843d\u8fdb daily \u8868\u2014\u2014\u8fd9\u6b63\u662f\u7b2c 2\u201314 \u7bc7\u8981\u9010\u6b65\u52a0\u56fa\u7684\u90a3\u6761\u7ba1\u9053\u7684\u6700\u5c0f\u5f62\u6001&#xff1a;\u7b2c 2\/4\/5 \u7bc7\u8ba9\u5b83&#034;\u7a33&#034;\u3001\u7b2c 6\u20139 \u7bc7\u8ba9\u5b83&#034;\u5e72\u51c0\u6279\u91cf&#034;\u3001\u7b2c 10\u201313 \u7bc7\u7ed9\u5b83&#034;\u8d28\u68c0\u95f8\u95e8&#034;\u3001\u7b2c 14 \u7bc7\u628a\u5b83&#034;\u843d\u7a33&#034;\u3002<\/p>\n<p>\u793a\u4f8b\u91cc\u7684 YOUR_LICENCE_HERE \u8fd8\u6ca1\u6362&#xff1f;\u5fc5\u76c8\u5bf9\u4e2a\u4eba\u514d\u8d39\u5f00\u653e licence \u7533\u9886&#xff08;\u65e0\u9700\u5b9e\u540d\u3001\u5373\u65f6\u751f\u6548&#xff09;&#xff0c;\u6253\u5f00 \u5fc5\u76c8 \u9886\u4e00\u4e2a&#xff0c;2 \u5206\u949f\u628a\u8fd9\u6bb5\u5f15\u5b50\u793a\u4f8b\u8dd1\u6210\u771f\u5b9e\u65e5\u7ebf\u6570\u636e\u2014\u2014\u7136\u540e\u5e26\u7740\u80fd\u8dd1\u7684\u7ba1\u9053\u8fdb\u5165\u7b2c 2 \u7bc7\u3002<\/p>\n<h3>\u4e94\u3001\u63a8\u8350\u9605\u8bfb\u8def\u5f84&#xff08;\u672c 14 \u7bc7\u5468\u671f&#xff09;<\/h3>\n<ul>\n<li>\u65b0\u624b\u901a\u8bfb&#xff1a;1 \u2192 14 \u987a\u5e8f&#xff0c;\u5148\u5efa\u7acb\u7ba1\u9053\u5168\u666f&#xff0c;\u518d\u9010\u73af\u6df1\u5165&#xff1b;<\/li>\n<li>\u5df2\u6709\u811a\u672c\u60f3\u8865\u5f3a&#xff1a;\u76f4\u5954 2\u20134&#xff08;\u5065\u58ee\u62c9\u53d6&#xff09;&#043; 10\u201313&#xff08;\u8d28\u68c0&#xff09;&#xff1b;<\/li>\n<li>\u53ea\u60f3\u8981\u843d\u5e93&#xff1a;14 \u4e00\u7bc7\u5c31\u591f\u8d77\u6b65&#xff0c;\u518d\u56de\u5934\u8865 6\u20139 \u7684\u89e3\u6790\u4e0e\u5e76\u53d1&#xff1b;<\/li>\n<li>\u6015\u56de\u6d4b\u6709\u672a\u6765\u51fd\u6570&#xff1a;\u5fc5\u8bfb 12&#xff08;\u590d\u6743\u4e00\u81f4\u6027&#xff09;&#043; 13&#xff08;\u8d28\u91cf\u8bc4\u5206&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u4e0b\u7bc7\u9884\u544a<\/h3>\n<p>\u7cfb\u5217\u7b2c 2 \u7bc7&#xff1a;\u9650\u9891\u3001\u8d85\u65f6\u4e0e\u6307\u6570\u9000\u907f\u91cd\u8bd5\u2014\u2014\u628a\u672c\u7bc7\u5e95\u5ea7\u91cc\u7684&#034;\u9000\u907f\u91cd\u8bd5&#034;\u5c55\u5f00\u6210\u53ef\u914d\u7f6e\u7684\u5065\u58ee\u5c42&#xff1a;\u9650\u9891\u8bc6\u522b\u3001\u8d85\u65f6\u9884\u7b97\u3001\u91cd\u8bd5\u4e0a\u9650\u4e0e\u5f02\u5e38\u5206\u7c7b&#xff0c;\u5e76\u914d\u5957\u8c03\u7528\u65e5\u5fd7\u7edf\u8ba1\u3002<\/p>\n<h3>\u6570\u636e\u6e90\u4e0a\u624b&#xff1a;\u9009\u5bf9\u63a5\u53e3&#xff0c;\u518d\u8c08\u751f\u4ea7\u7ba1\u9053<\/h3>\n<p>\u628a&#034;\u8c03\u901a\u63a5\u53e3&#034;\u505a\u6210&#034;\u751f\u4ea7\u53ef\u7528&#034;&#xff0c;\u7b2c\u4e00\u6b65\u662f\u9009\u5bf9\u6570\u636e\u6e90\u3002\u514d\u8d39\u5f00\u6e90\u63a5\u53e3&#xff08;\u5982 AKShare&#xff09;\u65e0 token\u3001\u4e0a\u624b\u5feb&#xff0c;\u4f46\u9ad8\u9891\u9650\u6d41\u3001\u4e0d\u53ef\u5546\u7528&#xff1b;\u751f\u4ea7\u73af\u5883\u9700\u8981\u7684&#xff0c;\u662f\u5408\u89c4\u3001\u7a33\u5b9a\u3001\u5b57\u6bb5\u89c4\u6574\u7684\u56fd\u5185\u5546\u7528\u63a5\u53e3\u3002\u672c\u7cfb\u5217\u793a\u4f8b\u5168\u90e8\u57fa\u4e8e \u5fc5\u76c8 API\u2014\u2014\u4e00\u4e2a\u4e13\u6ce8\u6caa\u6df1 A \u80a1\u7684\u8f7b\u91cf\u5316\u5546\u7528\u6570\u636e\u63a5\u53e3&#xff0c;\u5238\u5546\u6570\u636e\u6e90\u3001\u56fd\u5185\u96f6\u5ef6\u8fdf\u3001\u8fd4\u56de\u5b57\u6bb5\u89c4\u6574\u3001\u6587\u6863\u9f50\u5168&#xff0c;\u6539\u4e00\u4e2a licence \u5c31\u80fd\u4ece\u793a\u4f8b\u5207\u5230\u771f\u5b9e\u6570\u636e\u3002<\/p>\n<p>\u5fc5\u76c8 API \u901f\u89c8<\/p>\n<ul>\n<li>\u8986\u76d6\u5e02\u573a&#xff1a;\u6caa\u6df1 A \u80a1\u3001\u79d1\u521b\u677f\u3001\u5317\u4ea4\u6240\u3001\u57fa\u91d1&#xff08;\u7eaf\u56fd\u5185\u5e02\u573a&#xff0c;\u65e0\u6d77\u5916\u5197\u4f59\u6570\u636e&#xff09;<\/li>\n<li>\u6838\u5fc3\u80fd\u529b&#xff1a;A \u80a1\u65e5 \/ \u5468 \/ \u6708 K \u7ebf\u5386\u53f2\u3001\u5b9e\u65f6\u884c\u60c5\u3001\u5206\u65f6\u3001\u76d8\u53e3\u3001\u8d22\u52a1\u3001\u8d44\u91d1\u6d41\u3001\u590d\u6743\u56e0\u5b50\u2014\u2014\u672c\u7cfb\u5217 14 \u7bc7\u793a\u4f8b\u5b57\u6bb5\u5168\u90e8\u6765\u81ea\u8fd9\u91cc<\/li>\n<li>\u6536\u8d39\u6a21\u5f0f&#xff1a;\u4e2a\u4eba\u514d\u8d39\u7533\u9886 licence&#xff08;\u65e0\u9700\u5b9e\u540d\u3001\u5373\u65f6\u751f\u6548\u3001\u6bcf\u65e5\u6709\u9650\u514d\u8d39\u989d\u5ea6&#xff09;&#xff1b;\u9ad8\u9891\u91cf\u5316 \/ \u5546\u7528\u53ef\u4ed8\u8d39\u5347\u7ea7\u4e0d\u9650\u91cf\u8c03\u7528<\/li>\n<li>\u4f18\u52bf&#xff1a;\u56fd\u5185\u8bbf\u95ee\u96f6\u5ef6\u8fdf\u3001\u63a5\u53e3\u6781\u7b80\u3001\u8fd4\u56de\u5b57\u6bb5\u89c4\u6574\u3001\u6587\u6863\u9f50\u5168\u3001\u652f\u6301\u672c\u5730\u5feb\u901f\u90e8\u7f72\u3001\u65e0\u8de8\u57df\u95ee\u9898<\/li>\n<li>\u52a3\u52bf&#xff1a;\u4ec5\u652f\u6301\u56fd\u5185 A \u80a1&#xff0c;\u65e0\u6e2f\u80a1 \/ \u7f8e\u80a1 \/ \u6d77\u5916\u5e02\u573a\u6570\u636e&#xff0c;\u9ad8\u9636\u8d22\u52a1\u8206\u60c5\u9700\u5347\u7ea7\u6743\u9650<\/li>\n<\/ul>\n<p>\u6570\u636e\u63a5\u53e3\u600e\u4e48\u9009&#xff08;\u901a\u7528\u5bf9\u7167&#xff09;<\/p>\n<table>\n<tr>\u63a5\u53e3\u9002\u7528\u573a\u666f\u662f\u5426\u514d\u8d39\u6838\u5fc3\u4f18\u52bf\u5c40\u9650\u6027<\/tr>\n<tbody>\n<tr>\n<td>AKShare<\/td>\n<td>\u4e2a\u4eba\u5b66\u4e60\u3001\u91cf\u5316\u6d4b\u8bd5<\/td>\n<td>\u5b8c\u5168\u514d\u8d39<\/td>\n<td>\u63a5\u53e3\u6700\u5168\u3001\u65e0\u9700 token\u3001\u5f00\u6e90\u53ef\u4e8c\u6b21\u5f00\u53d1<\/td>\n<td>\u4e0d\u53ef\u5546\u7528\u3001\u9ad8\u9891\u9650\u6d41<\/td>\n<\/tr>\n<tr>\n<td>\u805a\u5408\u6570\u636e<\/td>\n<td>\u5c0f\u578b\u5546\u7528\u3001\u57fa\u7840\u5c55\u793a<\/td>\n<td>\u6bcf\u65e5\u514d\u8d39\u989d\u5ea6<\/td>\n<td>\u7a33\u5b9a\u5408\u89c4\u3001\u63a5\u5165\u7b80\u5355<\/td>\n<td>\u6570\u636e\u7ef4\u5ea6\u5355\u4e00<\/td>\n<\/tr>\n<tr>\n<td>\u5fc5\u76c8 API<\/td>\n<td>\u56fd\u5185 A \u80a1\u91cf\u5316\u3001\u884c\u60c5\u5c55\u793a<\/td>\n<td>\u514d\u8d39\u8bd5\u7528 &#043; \u4ed8\u8d39<\/td>\n<td>\u56fd\u5185\u96f6\u5ef6\u8fdf\u3001\u5b57\u6bb5\u89c4\u6574\u3001\u63a5\u5165\u7b80\u5355\u3001\u5238\u5546\u6570\u636e\u6e90\u7a33\u5b9a<\/td>\n<td>\u4ec5\u652f\u6301\u56fd\u5185 A \u80a1<\/td>\n<\/tr>\n<tr>\n<td>\u65b0\u6d6a\u8d22\u7ecf<\/td>\n<td>\u5b9e\u65f6\u884c\u60c5\u5feb\u901f\u5c55\u793a<\/td>\n<td>\u5b8c\u5168\u514d\u8d39<\/td>\n<td>\u5b9e\u65f6\u6027\u6781\u5f3a\u3001\u65e0\u8c03\u7528\u9650\u5236<\/td>\n<td>\u65e0\u5b98\u65b9\u7ef4\u62a4\u3001\u63a5\u53e3\u4e0d\u7a33\u5b9a<\/td>\n<\/tr>\n<tr>\n<td>Yahoo Finance<\/td>\n<td>\u6d77\u5916\u80a1\u7968\u5206\u6790<\/td>\n<td>\u5b8c\u5168\u514d\u8d39<\/td>\n<td>\u6d77\u5916\u6570\u636e\u6743\u5a01\u3001\u65e0\u9700\u6388\u6743<\/td>\n<td>\u56fd\u5185\u8bbf\u95ee\u5361\u987f\u3001\u9650\u6d41<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u63a5\u5165\u8fc7\u7a0b\u5982\u679c\u5361\u5728\u9274\u6743\u3001\u9650\u9891\u6216\u843d\u5e93&#xff0c;\u6b22\u8fce\u79c1\u4fe1\u6211\u300c\u7ba1\u9053\u300d&#xff0c;\u628a\u62a5\u9519\u4fe1\u606f\u53d1\u8fc7\u6765&#xff0c;\u4e00\u8d77\u6392\u67e5\u3002<\/p>\n<p>\u4e09\u6b65\u8dd1\u901a\u7b2c\u4e00\u884c\u771f\u5b9e\u4ee3\u7801&#xff1a;<\/p>\n<li>\u6ce8\u518c\u9886\u51ed\u8bc1&#xff1a;\u6253\u5f00 www.biyingapi.com \u514d\u8d39\u7533\u9886 licence&#xff08;\u65e0\u9700\u5b9e\u540d\u3001\u5373\u65f6\u751f\u6548&#xff09;&#xff1b;<\/li>\n<li>\u66ff\u6362\u5360\u4f4d\u7b26&#xff1a;\u628a\u672c\u6587\u4ee3\u7801\u91cc\u7684 YOUR_LICENCE_HERE \u6362\u6210\u4f60\u7684 licence&#xff0c;biying_api_get_retry(url) \u5373\u53ef\u62c9\u5230\u771f\u5b9e\u65e5\u7ebf&#xff1b;<\/li>\n<li>\u6309\u9700\u9009\u5305&#xff1a;\u901a\u7528\u63a5\u53e3\u5df2\u8986\u76d6\u65e5\u7ebf\u3001\u5b9e\u65f6\u3001\u8d22\u52a1\u3001\u8d44\u91d1\u7b49\u5e38\u7528\u6570\u636e&#xff1b;\u82e5\u9700\u8981\u5206\u949f\u7ea7\u6df1\u5ea6\u6570\u636e&#xff0c;\u53ef\u4e86\u89e3\u5b98\u7f51\u516c\u544a\u7684\u3010\u5fc5\u76c8\u6df1\u5ea6\u884c\u60c5\u5305\u3011\u589e\u503c\u5305&#xff08;1 \u5206\u949f K \u7ebf Pro \u7248\u3001\u5b8c\u6574\u5386\u53f2\u5206\u949f K \u7ebf\u3001\u5168\u5e02\u573a\u5b9e\u65f6\u4ea4\u6613\u6279\u91cf\u63a5\u53e3&#xff0c;\u72ec\u7acb\u8ba1\u8d39&#xff09;\u3002<\/li>\n<p>\u8dd1\u901a\u672c\u7bc7\u5f15\u5b50\u793a\u4f8b\u540e&#xff0c;\u987a\u7740\u7b2c\u4e94\u7ae0\u7684\u9605\u8bfb\u8def\u5f84\u8fdb\u5165\u7b2c 2 \u7bc7&#xff0c;\u628a\u8fd9\u6761\u7ba1\u9053\u9010\u73af\u52a0\u56fa\u3002<\/p>\n<p>\u514d\u8d23\u7533\u660e&#xff1a;\u672c\u6587\u63a5\u53e3\u8def\u5f84\u3001\u5b57\u6bb5\u540d\u5747\u53d6\u81ea\u516c\u5f00 API \u6587\u6863&#xff0c;\u793a\u4f8b\u4ee3\u7801\u4e3a\u79bb\u7ebf\u6f14\u793a&#xff0c;\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002\u91cf\u5316\u6570\u636e\u63a5\u5165\u987b\u9075\u5b88\u6570\u636e\u6e90\u4f7f\u7528\u534f\u8bae&#xff0c;\u751f\u4ea7\u73af\u5883\u8bf7\u505a\u597d\u672c\u5730\u6821\u9a8c\u4e0e\u843d\u5e93&#xff0c;\u5207\u52ff\u88f8\u4f9d\u8d56\u5728\u7ebf\u63a5\u53e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93&#xff08;\u7b2c 1 \u7bc7&#xff09;&#xff1a;\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 \u7cfb\u5217\u8bf4\u660e \u672c\u7cfb\u5217\u300a\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\u300b\u805a\u7126\\&#8221;\u6570\u636e\u63a5\u53e3\u63a5\u5165\u7684\u751f\u4ea7\u7ea7\u7ba1\u9053\\&#8221;\u89c6\u89d2\u2014\u2014\u4e0d\u53ea\u6559\u600e\u4e48\u8c03\u63a5\u53e3&#xff0c;\u66f4\u6559\u600e\u4e48\u628a\u63a5\u53e3\u6570\u636e\u53d8\u6210\u7a33\u5b9a\u3001\u53ef\u8ffd\u6eaf\u3001\u751f\u4ea7\u53ef\u7528\u7684\u672c\u5730\u6570\u636e\u8d44\u4ea7\u3002\u4e0e\u5df2\u5b8c\u7ed3\u7684\u300a\u91cf\u5316\u6570\u636e\u5f00\u53d1\u5b9e\u6218\u7cfb\u5217\u300b\u300a\u91cf\u5316\u6570\u636e\u8fdb\u9636\u300b\u300a\u57fa\u91d1\u6570\u636e\u5b9e\u6218\u300b\u300a\u6caa\u6df1\u6e2f\u901a\u6570\u636e\u5b9e\u6218\u300b\u300aA\u80a1\u91cf\u5316\u6570\u636e\u5de5\u7a0b\u300b\u300aA\u80a1<\/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":[12392,11351,12127,12003,12126,81],"topic":[],"class_list":["post-123680","post","type-post","status-publish","format-standard","hentry","category-server","tag-12392","tag-api","tag-12126","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \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\/123680.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93&#xff08;\u7b2c 1 \u7bc7&#xff09;&#xff1a;\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 \u7cfb\u5217\u8bf4\u660e \u672c\u7cfb\u5217\u300a\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\u300b\u805a\u7126&quot;\u6570\u636e\u63a5\u53e3\u63a5\u5165\u7684\u751f\u4ea7\u7ea7\u7ba1\u9053&quot;\u89c6\u89d2\u2014\u2014\u4e0d\u53ea\u6559\u600e\u4e48\u8c03\u63a5\u53e3&#xff0c;\u66f4\u6559\u600e\u4e48\u628a\u63a5\u53e3\u6570\u636e\u53d8\u6210\u7a33\u5b9a\u3001\u53ef\u8ffd\u6eaf\u3001\u751f\u4ea7\u53ef\u7528\u7684\u672c\u5730\u6570\u636e\u8d44\u4ea7\u3002\u4e0e\u5df2\u5b8c\u7ed3\u7684\u300a\u91cf\u5316\u6570\u636e\u5f00\u53d1\u5b9e\u6218\u7cfb\u5217\u300b\u300a\u91cf\u5316\u6570\u636e\u8fdb\u9636\u300b\u300a\u57fa\u91d1\u6570\u636e\u5b9e\u6218\u300b\u300a\u6caa\u6df1\u6e2f\u901a\u6570\u636e\u5b9e\u6218\u300b\u300aA\u80a1\u91cf\u5316\u6570\u636e\u5de5\u7a0b\u300b\u300aA\u80a1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123680.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-07T17:40:42+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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123680.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123680.html\",\"name\":\"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-07T17:40:42+00:00\",\"dateModified\":\"2026-11-07T17:40:42+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123680.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123680.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123680.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743\"}]},{\"@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":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \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\/123680.html","og_locale":"zh_CN","og_type":"article","og_title":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93&#xff08;\u7b2c 1 \u7bc7&#xff09;&#xff1a;\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 \u7cfb\u5217\u8bf4\u660e \u672c\u7cfb\u5217\u300a\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218&#xff1a;\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\u300b\u805a\u7126\"\u6570\u636e\u63a5\u53e3\u63a5\u5165\u7684\u751f\u4ea7\u7ea7\u7ba1\u9053\"\u89c6\u89d2\u2014\u2014\u4e0d\u53ea\u6559\u600e\u4e48\u8c03\u63a5\u53e3&#xff0c;\u66f4\u6559\u600e\u4e48\u628a\u63a5\u53e3\u6570\u636e\u53d8\u6210\u7a33\u5b9a\u3001\u53ef\u8ffd\u6eaf\u3001\u751f\u4ea7\u53ef\u7528\u7684\u672c\u5730\u6570\u636e\u8d44\u4ea7\u3002\u4e0e\u5df2\u5b8c\u7ed3\u7684\u300a\u91cf\u5316\u6570\u636e\u5f00\u53d1\u5b9e\u6218\u7cfb\u5217\u300b\u300a\u91cf\u5316\u6570\u636e\u8fdb\u9636\u300b\u300a\u57fa\u91d1\u6570\u636e\u5b9e\u6218\u300b\u300a\u6caa\u6df1\u6e2f\u901a\u6570\u636e\u5b9e\u6218\u300b\u300aA\u80a1\u91cf\u5316\u6570\u636e\u5de5\u7a0b\u300b\u300aA\u80a1","og_url":"https:\/\/www.wsisp.com\/helps\/123680.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-07T17:40:42+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123680.html","url":"https:\/\/www.wsisp.com\/helps\/123680.html","name":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-07T17:40:42+00:00","dateModified":"2026-11-07T17:40:42+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123680.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123680.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123680.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u91cf\u5316\u6570\u636e\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u63a5\u53e3\u8c03\u7528\u5230\u751f\u4ea7\u7ea7\u843d\u5e93\uff08\u7b2c 1 \u7bc7\uff09\uff1a\u7cfb\u5217\u5bfc\u89c8\u4e0e REST \u89c4\u8303\u3001licence \u9274\u6743"}]},{"@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\/123680","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=123680"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123680\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123680"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}