{"id":2126,"date":"2026-10-17T17:13:43","date_gmt":"2026-10-17T09:13:43","guid":{"rendered":"https:\/\/khsci.com\/khQuant\/quickstart\/"},"modified":"2026-10-17T17:13:43","modified_gmt":"2026-10-17T09:13:43","slug":"quickstart","status":"publish","type":"page","link":"https:\/\/khsci.com\/khQuant\/quickstart\/","title":{"rendered":"\u6559\u7a0b 0 \u00b7 khQuant \u5feb\u901f\u4e0a\u624b"},"content":{"rendered":"\r\n<style>\r\n.khq-web-manual{max-width:980px;margin:0 auto;padding:8px 0 36px;line-height:1.82;font-size:16px;color:#243042;word-break:break-word;}\r\n.khq-web-manual h2{font-size:1.45rem;line-height:1.4;margin:38px 0 14px;padding-top:8px;color:#12345f;border-top:1px solid #e7edf5;}\r\n.khq-web-manual h3{font-size:1.16rem;line-height:1.5;margin:24px 0 10px;color:#163b68;}\r\n.khq-web-manual code{background:#f3f6fa;border:1px solid #e6edf5;border-radius:5px;padding:.12em .36em;font-size:.92em;}\r\n.khq-tn .khq-tn-table{width:100%;overflow-x:auto;margin:16px 0 22px;}\r\n.khq-web-manual.khq-tn table{display:table!important;width:100%!important;max-width:100%;border-collapse:collapse!important;margin:0!important;font-size:.96em;border:1px solid #e2e8f0!important;table-layout:auto;}\r\n.khq-web-manual.khq-tn th,.khq-web-manual.khq-tn td{border:1px solid #e2e8f0!important;padding:10px 12px;vertical-align:top;}\r\n.khq-web-manual th{background:#f7fafc;color:#173b63;font-weight:600;}\r\n.khq-web-manual a{color:#1167b1;text-decoration:none;border-bottom:1px solid rgba(17,103,177,.25);}\r\n.khq-web-manual a:hover{border-bottom-color:rgba(17,103,177,.8);}\r\n.khq-tn .khq-tn-ver{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px;font-size:14px;color:#5b6b7c;}\r\n.khq-tn .ver{display:inline-block;padding:2px 10px;border-radius:999px;font-weight:600;font-size:13px;line-height:1.6;}\r\n.khq-tn .ver-v2{background:#e8f3ff;color:#0b5cad;border:1px solid #b8d8fb;}\r\n.khq-tn .ver-v3{background:#fff1e6;color:#b1520a;border:1px solid #f8cfa8;}\r\n.khq-tn .khq-tn-video{margin:6px 0 26px;border-radius:14px;overflow:hidden;background:#0f172a;box-shadow:0 10px 30px rgba(15,35,60,.12);}\r\n.khq-tn .khq-tn-video video{display:block;width:100%;aspect-ratio:16\/9;background:#000;}\r\n.khq-tn .khq-tn-callout{margin:18px 0;padding:12px 16px 4px;border-radius:12px;border:1px solid;}\r\n.khq-tn .khq-tn-callout .lbl{font-weight:700;font-size:13px;margin-bottom:4px;letter-spacing:.04em;}\r\n.khq-tn .khq-tn-callout p{margin:0 0 10px;}\r\n.khq-tn .khq-tn-callout.tip{background:#f3f9ff;border-color:#cfe3f7;}\r\n.khq-tn .khq-tn-callout.tip .lbl{color:#0b5cad;}\r\n.khq-tn .khq-tn-callout.warn{background:#fff6f5;border-color:#f3c7c2;}\r\n.khq-tn .khq-tn-callout.warn .lbl{color:#b3261e;}\r\n.khq-tn .khq-tn-nav{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:40px;padding-top:18px;border-top:1px solid #e7edf5;}\r\n.khq-tn .khq-tn-nav a{display:block;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;border-bottom:1px solid #e2e8f0;color:#163b68;font-weight:600;}\r\n.khq-tn .khq-tn-nav a:hover{border-color:#9cc3ea;background:#f7fbff;}\r\n.khq-tn .khq-tn-nav a span{display:block;font-size:12px;font-weight:400;color:#7a8a9c;margin-bottom:2px;}\r\n.khq-tn .khq-tn-nav a.next{text-align:right;}\r\n@media (max-width:768px){.khq-web-manual{font-size:15px;padding:0 2px 24px}.khq-web-manual h2{font-size:1.27rem}.khq-web-manual h3{font-size:1.08rem}.khq-tn .khq-tn-nav{grid-template-columns:1fr}.khq-tn .khq-tn-nav a.next{text-align:left}}\r\n<\/style>\r\n\r\n<div class=\"khq-web-manual khq-tn\">\r\n<div class=\"khq-tn-ver\">\u9002\u7528\u7248\u672c <span class=\"ver ver-v2\">V2<\/span><span class=\"ver ver-v3\">V3<\/span><\/div>\r\n\r\n<div class=\"khq-tn-video\" data-tn=\"0\"><video controls preload=\"none\" playsinline poster=\"\/khQuant\/media\/tutorial-new\/tn-0.jpg?v=70ef29b9\" src=\"\/khQuant\/media\/tutorial-new\/tn-0.mp4?v=70ef29b9\">\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u89c6\u9891\u64ad\u653e\uff0c\u53ef\u4ee5<a href=\"\/khQuant\/media\/tutorial-new\/tn-0.mp4?v=70ef29b9\">\u4e0b\u8f7d\u89c6\u9891<\/a>\u89c2\u770b\u3002<\/video><\/div>\r\n\r\n<p class=\"khq-tn-lead\" style=\"font-size:17px;line-height:1.75;color:#163b68;background:#f3f7fc;border-left:4px solid #2b6cb0;padding:12px 18px;border-radius:8px;margin:18px 0 26px;\"><strong>\u672c\u7bc7\u662f 3 \u5206\u949f\u5feb\u901f\u4e0a\u624b\u89c6\u9891\uff1a<\/strong>\u4ece\u88c5\u597d\u540e\u7b2c\u4e00\u6b21\u6253\u5f00\u8f6f\u4ef6\u5f00\u59cb\uff0c\u8d70\u5b8c\u300c\u9996\u6b21\u542f\u52a8\u8bbe\u7f6e \u2192 \u4e0b\u8f7d\u6570\u636e \u2192 \u52a0\u8f7d\u793a\u4f8b \u2192 \u6dfb\u52a0\u80a1\u7968 \u2192 \u5f00\u59cb\u8fd0\u884c\u300d\u6574\u6761\u8def\u5f84\uff0c\u8dd1\u51fa\u7b2c\u4e00\u4efd\u56de\u6d4b\u62a5\u544a\u3002<\/p>\r\n\r\n<h2>\u56db\u6b65\u8dd1\u901a\u7b2c\u4e00\u4e2a\u56de\u6d4b<\/h2>\r\n<p>\u7b2c\u4e00\u6b21\u542f\u52a8\u5e76\u4e0b\u5b8c\u6caa\u6df1 300 \u57fa\u51c6\u540e\uff0c\u8f6f\u4ef6\u4f1a\u81ea\u52a8\u5f39\u51fa\u300c\u65b0\u624b\u4e0a\u624b\u300d\u7a97\u53e3\uff08\u4e4b\u540e\u968f\u65f6\u53ef\u4ece\u5de5\u5177\u680f\u53f3\u4e0a\u89d2\u7684\u300c?\u300d\u518d\u6253\u5f00\uff09\u3002\u7167\u7740\u7a97\u53e3\u91cc\u7684\u56db\u6b65\u505a\uff1a<\/p>\r\n<ol>\r\n<li><strong>\u4e0b\u8f7d\u6570\u636e<\/strong>\uff1a\u70b9\u300c\u6570\u636e\u7ba1\u7406\u300d\u2192\u300cBaoStock\u5bfc\u5165\u300d\uff0c\u586b\u8981\u7814\u7a76\u7684\u80a1\u7968\u4ee3\u7801\uff0c\u4e0b\u8f7d\u65e5\u7ebf\uff08\u514d\u8d39\uff0c\u4e0d\u7528\u6ce8\u518c\uff09\u3002\u5f00\u59cb\u65e5\u671f\u8981\u65e9\u4e8e\u56de\u6d4b\u5f00\u59cb\u65e5\u671f\uff0c\u7ed9\u5747\u7ebf\u7b49\u6307\u6807\u7559\u51fa\u9884\u70ed\u671f\uff1bBaoStock \u5355\u8fde\u63a5\u5efa\u8bae\u628a\u4e0b\u8f7d\u8fdb\u7a0b\u6570\u8bbe\u4e3a 1\u3002<\/li>\r\n<li><strong>\u52a0\u8f7d\u793a\u4f8b<\/strong>\uff1a\u70b9\u5de5\u5177\u680f\u300c\u52a0\u8f7d\u914d\u7f6e\u300d\uff0c\u4ece <code>\u6587\u6863\\KhQuant_OS\\strategies<\/code>\uff08V3 \u5728 <code>\u6587\u6863\\KhQuant\\strategies<\/code>\uff09\u91cc\u9009\u4e00\u4e2a\u81ea\u5e26\u793a\u4f8b\uff0c\u4f8b\u5982\u300c\u30101-MA\u7b56\u7565\u6848\u4f8b\u3011\u53cc\u5747\u7ebf\u7cbe\u7b80_\u4f7f\u7528khMA\u51fd\u6570.kh\u300d\u3002<\/li>\r\n<li><strong>\u6dfb\u52a0\u80a1\u7968<\/strong>\uff1a\u81ea\u5e26\u793a\u4f8b\u4e0d\u9884\u586b\u80a1\u7968\uff0c\u80a1\u7968\u6c60\u9ed8\u8ba4\u662f\u7a7a\u7684\u3002\u5728\u5de6\u4fa7\u300c\u80a1\u7968\u6c60\u8bbe\u7f6e\u300d\u70b9\u300c\u6dfb\u52a0\u80a1\u7968\u300d\uff0c\u586b\u521a\u624d\u4e0b\u8f7d\u7684\u80a1\u7968\u4ee3\u7801\uff0c\u518d\u70b9\u5de5\u5177\u680f\u300c\u4fdd\u5b58\u914d\u7f6e\u300d\u3002<\/li>\r\n<li><strong>\u5f00\u59cb\u8fd0\u884c<\/strong>\uff1a\u786e\u8ba4\u56de\u6d4b\u533a\u95f4\u5728\u5df2\u4e0b\u8f7d\u7684\u6570\u636e\u8303\u56f4\u5185\uff0c\u70b9\u5de5\u5177\u680f\u7eff\u8272\u7684\u300c\u5f00\u59cb\u8fd0\u884c\u300d\uff0c\u8dd1\u5b8c\u4f1a\u81ea\u52a8\u5f39\u51fa\u300c\u56de\u6d4b\u7ed3\u679c\u5206\u6790\u300d\u7a97\u53e3\u3002<\/li>\r\n<\/ol>\r\n\r\n<div class=\"khq-tn-callout warn\"><div class=\"lbl\">\u6ce8\u610f<\/div><p>\u81ea\u5e26\u793a\u4f8b\u7684\u53c2\u6570\u6545\u610f\u52a0\u5165\u4e86\u968f\u673a\u6570\uff0c\u7528\u6765\u6f14\u793a\u5199\u6cd5\uff0c\u6bcf\u6b21\u8fd0\u884c\u7ed3\u679c\u90fd\u4f1a\u4e0d\u4e00\u6837\uff1b\u5386\u53f2\u56de\u6d4b\u4e5f\u4e0d\u4ee3\u8868\u672a\u6765\u6536\u76ca\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/p><\/div>\r\n\r\n<h2>\u63a5\u7740\u770b\u54ea\u4e9b\u7ae0\u8282<\/h2>\r\n<p>\u8dd1\u901a\u7b2c\u4e00\u904d\u4e4b\u540e\uff0c\u60f3\u5f04\u61c2\u6bcf\u4e00\u6b65\u7684\u7ec6\u8282\uff0c\u6309\u4e0b\u9762\u8fd9\u5f20\u8868\u63a5\u7740\u770b\uff1a<\/p>\r\n<div class=\"khq-tn-table\"><table>\r\n<thead>\r\n<tr>\r\n<th style=\"text-align: left;\">\u60f3\u4e86\u89e3\u7684\u5185\u5bb9<\/th>\r\n<th style=\"text-align: left;\">\u5bf9\u5e94\u7ae0\u8282<\/th>\r\n<\/tr>\r\n<\/thead>\r\n<tbody>\r\n<tr>\r\n<td style=\"text-align: left;\">\u4e0b\u8f7d\u65e5\u7ebf\u3001\u5206\u949f\u7ebf\uff0c\u914d\u7f6e Tushare Token\uff0c\u67e5\u770b\u548c\u7ba1\u7406\u672c\u5730\u6570\u636e<\/td>\r\n<td style=\"text-align: left;\"><a href=\"https:\/\/khsci.com\/khQuant\/chapter10\/\">1.4 \u6570\u636e\u7ba1\u7406\u6a21\u5757<\/a>\u3001<a href=\"https:\/\/khsci.com\/khQuant\/data-maintenance\/\">1.11 \u6570\u636e\u7ef4\u62a4<\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left;\">4 \u4e2a\u81ea\u5e26\u793a\u4f8b\u7684\u5b8c\u6574\u8bf4\u660e\u4e0e\u5e38\u89c1\u95ee\u9898<\/td>\r\n<td style=\"text-align: left;\"><a href=\"https:\/\/khsci.com\/khQuant\/chapter4\/\">1.5 \u8dd1\u901a\u7b2c\u4e00\u4e2a\u56de\u6d4b<\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left;\">\u4e3b\u754c\u9762\u5404\u533a\u57df\u3001\u56de\u6d4b\u53c2\u6570\uff08\u57fa\u51c6\u3001\u624b\u7eed\u8d39\u3001\u6ed1\u70b9\u3001\u590d\u6743\u3001\u89e6\u53d1\u65b9\u5f0f\uff09<\/td>\r\n<td style=\"text-align: left;\"><a href=\"https:\/\/khsci.com\/khQuant\/chapter5\/\">1.6 \u4e3b\u754c\u9762\u4e00\u89c8<\/a>\u3001<a href=\"https:\/\/khsci.com\/khQuant\/chapter6\/\">1.7 \u56de\u6d4b\u914d\u7f6e\u8be6\u89e3<\/a>\u3001<a href=\"https:\/\/khsci.com\/khQuant\/chapter7\/\">1.8 \u89e6\u53d1\u65b9\u5f0f\u4e0e\u76d8\u524d\u76d8\u540e<\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left;\">\u56de\u6d4b\u62a5\u544a\u91cc\u7684\u5404\u9879\u6307\u6807\u3001\u6536\u76ca\u66f2\u7ebf\u3001\u4ea4\u6613\u8bb0\u5f55\u548c\u4e2a\u80a1\u5206\u6790\u600e\u4e48\u770b<\/td>\r\n<td style=\"text-align: left;\"><a href=\"https:\/\/khsci.com\/khQuant\/chapter9\/\">1.10 \u770b\u61c2\u56de\u6d4b\u62a5\u544a<\/a><\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"text-align: left;\">\u81ea\u5df1\u5199\u7b56\u7565\uff0c\u6216\u8ba9 AI \u52a9\u624b\u5e2e\u4f60\u5199\u7b56\u7565\u3001\u8dd1\u56de\u6d4b<\/td>\r\n<td style=\"text-align: left;\"><a href=\"https:\/\/khsci.com\/khQuant\/chapter12\/\">3.1 \u6846\u67b6\u4ecb\u7ecd<\/a>\u3001<a href=\"https:\/\/khsci.com\/khQuant\/khquant-skill\/\">3.3 khQuant \u7684 Skill \u4ecb\u7ecd<\/a>\u3001<a href=\"https:\/\/khsci.com\/khQuant\/ai-strategy\/\">3.4 \u4f7f\u7528 AI \u7f16\u5199\u548c\u56de\u6d4b\u9a8c\u8bc1\u7b56\u7565<\/a>\uff08V3 \u63a8\u8350\u5148\u770b <a href=\"https:\/\/khsci.com\/khQuant\/cli\/\">2.2 \u547d\u4ee4\u884c\u6a21\u5f0f\u4e0e AI \u667a\u80fd\u7b56\u7565\u7814\u7a76<\/a>\uff09<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table><\/div>\r\n\r\n<p style=\"color:#888;font-size:.9em;\">\u672c\u7bc7\u57fa\u4e8e\u5f00\u6e90 V2.2 \u548c V3.4.1.10 \u7f16\u5199\u3002<\/p>\r\n<nav class=\"khq-tn-nav\"><a class=\"prev\" href=\"https:\/\/khsci.com\/khQuant\/guide\/\"><span>\u4e0a\u4e00\u7bc7<\/span>\u65b0\u624b\u5b66\u4e60\u8def\u7ebf\u56fe<\/a><a class=\"next\" href=\"https:\/\/khsci.com\/khQuant\/chapter1\/\"><span>\u4e0b\u4e00\u7bc7<\/span>1.1 \u8ba4\u8bc6 khQuant<\/a><\/nav>\r\n<\/div>\r\n\r\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u7248\u672c V2V3 \u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u89c6\u9891\u64ad\u653e\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u89c6\u9891\u89c2\u770b\u3002 \u672c\u7bc7\u662f 3 \u5206\u949f\u5feb\u901f\u4e0a\u624b\u89c6\u9891\uff1a\u4ece\u88c5\u597d\u540e\u7b2c\u4e00\u6b21 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template\/caidan.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2126","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages\/2126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/types\/page"}],"replies":[{"embeddable":true,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/comments?post=2126"}],"version-history":[{"count":0,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages\/2126\/revisions"}],"wp:attachment":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/media?parent=2126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}