{"id":792,"date":"2026-01-05T01:45:37","date_gmt":"2026-01-04T17:45:37","guid":{"rendered":"https:\/\/khsci.com\/khQuant\/?page_id=792"},"modified":"2026-10-11T19:40:11","modified_gmt":"2026-10-11T11:40:11","slug":"chapter2-5","status":"publish","type":"page","link":"https:\/\/khsci.com\/khQuant\/chapter2-5\/","title":{"rendered":"2.3 \u6570\u636e\u7ba1\u7406\u6a21\u5757\uff08V3\uff09"},"content":{"rendered":"\n<style>\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;}\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;}\n.khq-web-manual h3{font-size:1.16rem;line-height:1.5;margin:24px 0 10px;color:#163b68;}\n.khq-web-manual blockquote{margin:18px 0;padding:14px 18px;border-left:4px solid #1e88e5;background:#f4f9ff;color:#36506f;border-radius:0 10px 10px 0;}\n.khq-web-manual code{background:#f3f6fa;border:1px solid #e6edf5;border-radius:5px;padding:.12em .36em;font-size:.92em;}\n.khq-web-manual pre{background:#0f172a;color:#e5edf7;border-radius:12px;padding:16px;overflow:auto;line-height:1.65;border:1px solid #24324a;}\n.khq-web-manual pre code{background:transparent;border:0;color:inherit;padding:0;font-size:.93em;white-space:pre;}\n.khq-tn .khq-tn-table{width:100%;overflow-x:auto;margin:16px 0 22px;}\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;}\n.khq-web-manual.khq-tn th,.khq-web-manual.khq-tn td{border:1px solid #e2e8f0!important;padding:10px 12px;vertical-align:top;}\n.khq-web-manual th{background:#f7fafc;color:#173b63;font-weight:600;}\n.khq-web-manual img{max-width:100%;height:auto;border-radius:10px;box-shadow:0 8px 28px rgba(15,35,60,.09);}\n.khq-web-manual a{color:#1167b1;text-decoration:none;border-bottom:1px solid rgba(17,103,177,.25);}\n.khq-web-manual a:hover{border-bottom-color:rgba(17,103,177,.8);}\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;}\n.khq-tn .ver{display:inline-block;padding:2px 10px;border-radius:999px;font-weight:600;font-size:13px;line-height:1.6;}\n.khq-tn .ver-v2{background:#e8f3ff;color:#0b5cad;border:1px solid #b8d8fb;}\n.khq-tn .ver-v3{background:#fff1e6;color:#b1520a;border:1px solid #f8cfa8;}\n.khq-tn .ver-note{color:#6b7a8c;}\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);}\n.khq-tn .khq-tn-video video{display:block;width:100%;aspect-ratio:16\/9;background:#000;}\n.khq-tn .khq-tn-video .cap{padding:8px 14px;color:#cbd6e4;font-size:13px;}\n.khq-tn .khq-tn-video.empty{background:linear-gradient(135deg,#eef4fb,#f7f9fc);border:1px dashed #b9cbe0;box-shadow:none;}\n.khq-tn .khq-tn-video.empty .ph{aspect-ratio:16\/9;max-height:300px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#4d6480;text-align:center;padding:16px;box-sizing:border-box;}\n.khq-tn .khq-tn-video.empty .play{width:54px;height:54px;border-radius:50%;background:#dbe7f5;color:#7b93b0;display:flex;align-items:center;justify-content:center;font-size:22px;padding-left:4px;box-sizing:border-box;}\n.khq-tn .khq-tn-video.empty span:last-child{font-size:13px;color:#7890ab;}\n.khq-tn .khq-tn-callout{margin:18px 0;padding:12px 16px 4px;border-radius:12px;border:1px solid;}\n.khq-tn .khq-tn-callout .lbl{font-weight:700;font-size:13px;margin-bottom:4px;letter-spacing:.04em;}\n.khq-tn .khq-tn-callout p{margin:0 0 10px;}\n.khq-tn .khq-tn-callout.v3{background:#fff8f1;border-color:#f6d3b0;}\n.khq-tn .khq-tn-callout.v3 .lbl{color:#b1520a;}\n.khq-tn .khq-tn-callout.tip{background:#f3f9ff;border-color:#cfe3f7;}\n.khq-tn .khq-tn-callout.tip .lbl{color:#0b5cad;}\n.khq-tn .khq-tn-callout.warn{background:#fff6f5;border-color:#f3c7c2;}\n.khq-tn .khq-tn-callout.warn .lbl{color:#b3261e;}\n.khq-tn .khq-tn-fig{margin:18px 0 22px;text-align:center;}\n.khq-tn .khq-tn-fig figcaption{margin-top:6px;color:#66758a;font-size:.9em;}\n.khq-tn .khq-tn-fig.pending .ph{border:1px dashed #c7d3e0;border-radius:10px;background:#f7f9fb;color:#8594a6;font-size:14px;padding:34px 16px;}\n.khq-tn p.q{margin:18px 0 4px;}\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;}\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;}\n.khq-tn .khq-tn-nav a:hover{border-color:#9cc3ea;background:#f7fbff;}\n.khq-tn .khq-tn-nav a span{display:block;font-size:12px;font-weight:400;color:#7a8a9c;margin-bottom:2px;}\n.khq-tn .khq-tn-nav a.next{text-align:right;}\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-web-manual pre{padding:13px;border-radius:10px}.khq-tn .khq-tn-nav{grid-template-columns:1fr}.khq-tn .khq-tn-nav a.next{text-align:left}}\n.khq-tn .khq-tn-figrow{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin:8px 0 20px;}\n.khq-tn .khq-tn-figrow .khq-tn-fig{margin:0;}\n@media (max-width:640px){.khq-tn .khq-tn-figrow{grid-template-columns:1fr;}}\n.khq-tn .khq-tn-fig a{border:0;display:inline-block;cursor:zoom-in;}\n.khq-tn .khq-tn-fig img{max-width:100%;height:auto;border:1px solid #e2e8f0;}\n.khq-tn .khq-tn-v3{position:relative;margin:22px 0;padding:15px 18px 15px 24px;border-radius:14px;background:#fffaf5;border:1px solid #fbd9c2;overflow:hidden;}\n.khq-tn .khq-tn-v3::before{content:\"\";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#ff8a00,#e52e71);}\n.khq-tn .khq-tn-v3.promo{background:linear-gradient(135deg,#fff6ec 0%,#ffeef4 100%);border-color:#f7c6b0;box-shadow:0 8px 26px rgba(229,46,113,.10);}\n.khq-tn .v3-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:6px;}\n.khq-tn .v3-badge{display:inline-block;background:linear-gradient(90deg,#ff8a00,#e52e71);color:#fff;border-radius:999px;padding:1px 11px;font-size:12.5px;font-weight:700;letter-spacing:.5px;line-height:1.8;white-space:nowrap;}\n.khq-tn .v3-title{font-weight:700;color:#8c2d10;font-size:1.04em;}\n.khq-tn .khq-tn-v3.promo .v3-title{font-size:1.12em;background:linear-gradient(90deg,#d95f00,#c41f5f);-webkit-background-clip:text;background-clip:text;color:transparent;}\n.khq-tn .v3-body{color:#4a3a33;}\n.khq-tn .v3-body p{margin:6px 0;}\n.khq-tn .v3-body ul{margin:6px 0 6px 1.2em;padding:0;}\n.khq-tn .v3-body .khq-tn-fig{margin:12px 0 4px;}\n.khq-tn .v3-body .khq-tn-fig img{border-color:#f3d2c2;}\n.khq-tn .v3-body .khq-tn-fig img{max-height:480px;width:auto;object-fit:contain;}\n.khq-tn .v3-body .khq-tn-figrow{margin:10px 0 0;}\n.khq-tn .v3-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}\n.khq-tn .v3-btn{display:inline-block;border-radius:999px;padding:7px 18px;font-weight:700;font-size:14.5px;line-height:1.5;text-decoration:none!important;border-bottom:0!important;}\n.khq-tn .v3-btn.primary{background:linear-gradient(90deg,#ff8a00,#e52e71);color:#fff!important;box-shadow:0 6px 16px rgba(229,46,113,.25);}\n.khq-tn .v3-btn.primary:hover{filter:brightness(1.06);}\n.khq-tn .v3-btn.ghost{background:#fff;color:#c2410c!important;border:1px solid #f5b58f!important;}\n.khq-tn .khq-tn-v3grid{margin:22px 0 26px;padding:20px;border-radius:18px;background:linear-gradient(135deg,#1d1433 0%,#3b1732 100%);color:#f4e9ef;}\n.khq-tn .v3-grid-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;}\n.khq-tn .v3-grid-head b{font-size:1.2em;color:#fff;}\n.khq-tn .v3-grid-head .v3-sub{flex-basis:100%;color:#d9c3cf;font-size:.95em;}\n.khq-tn .v3-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}\n.khq-tn .v3-tile{background:rgba(255,255,255,.06);border:1px solid rgba(255,160,120,.25);border-radius:12px;padding:14px;}\n.khq-tn .v3-ico{font-size:24px;line-height:1.2;}\n.khq-tn .v3-tt{font-weight:700;color:#ffb36b;margin:6px 0 4px;}\n.khq-tn .v3-td{font-size:.93em;color:#efe2ea;line-height:1.65;}\n.khq-tn .v3-v2{margin-top:8px;font-size:.82em;color:#a8909c;}\n.khq-tn .khq-tn-v3grid .v3-note{color:#c9aebb;font-size:.85em;margin:12px 0 0;}\n.khq-tn .khq-tn-v3grid .v3-btn.ghost{background:transparent;color:#ffcfae!important;border-color:rgba(255,190,150,.6)!important;}\n.khq-tn .khq-tn-v3end{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:34px 0 8px;padding:18px 22px;border-radius:16px;background:linear-gradient(120deg,#1d1433 0%,#4a1636 100%);color:#f4e9ef;}\n.khq-tn .v3-end-l{flex:1 1 380px;}\n.khq-tn .v3-end-t{display:inline-block;margin-left:8px;font-weight:700;font-size:1.1em;color:#fff;}\n.khq-tn .khq-tn-v3end ul{list-style:none;margin:10px 0 0;padding:0;}\n.khq-tn .khq-tn-v3end li{position:relative;padding-left:22px;margin:4px 0;color:#efe2ea;font-size:.95em;}\n.khq-tn .khq-tn-v3end li::before{content:\"\u2713\";position:absolute;left:0;color:#ffb36b;font-weight:700;}\n.khq-tn .khq-tn-v3end .v3-note{color:#c9aebb;font-size:.82em;margin:8px 0 0;}\n.khq-tn .khq-tn-v3end .v3-cta{flex-direction:column;margin:0;}\n.khq-tn .khq-tn-v3end .v3-btn{text-align:center;}\n.khq-tn .khq-tn-v3end .v3-btn.ghost{background:transparent;color:#ffcfae!important;border-color:rgba(255,190,150,.6)!important;}\n.khq-tn .v3-cases{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0 8px;}\n.khq-tn .v3-case{display:block;background:#fff;border:1px solid #f5c7ab;border-radius:12px;padding:12px 14px;text-decoration:none!important;border-bottom:1px solid #f5c7ab!important;transition:box-shadow .15s,transform .15s;}\n.khq-tn .v3-case:hover{box-shadow:0 8px 20px rgba(229,46,113,.14);transform:translateY(-1px);}\n.khq-tn .v3-case .c-t{display:flex;align-items:center;gap:8px;font-weight:700;color:#b33a12;font-size:1.02em;}\n.khq-tn .v3-case .c-tag{font-size:11.5px;font-weight:700;color:#fff;background:linear-gradient(90deg,#ff8a00,#e52e71);border-radius:999px;padding:0 8px;line-height:1.7;}\n.khq-tn .v3-case .c-d{color:#5a4a42;font-size:.92em;line-height:1.65;margin-top:4px;}\n.khq-tn .v3-case .c-go{color:#c2410c;font-size:.9em;font-weight:700;margin-top:6px;}\n.khq-tn .v3-cases > p,.khq-tn .v3-cases > br{display:none;}\n.khq-tn .v3-warn{margin:12px 0 4px;padding:10px 14px;border-radius:10px;background:#fff4e5;border:1px dashed #f0a35e;color:#8a4b12;font-size:.93em;line-height:1.7;}\n.khq-tn .v3-warn b{color:#b45309;}\n@media (max-width:640px){.khq-tn .v3-cases{grid-template-columns:1fr;}}\n@media (max-width:900px){.khq-tn .v3-tiles{grid-template-columns:repeat(2,1fr);}}\n@media (max-width:600px){.khq-tn .v3-tiles{grid-template-columns:1fr;}.khq-tn .khq-tn-v3end .v3-cta{flex-direction:row;}}\n<\/style>\n<style>.khq-tn-ver .plat{display:inline-block;margin-left:6px;padding:1px 8px;border-radius:10px;font-size:.82em;background:#eef3f9;color:#2b4a6f;border:1px solid #d7e2ef}.khq-tn-ver .plat.no{background:#f6f6f6;color:#999;text-decoration:line-through;border-color:#e5e5e5}.khq-web-manual pre{white-space:pre-wrap}<\/style>\n<div class=\"khq-web-manual khq-tn\">\n<div class=\"khq-tn-ver\">\u9002\u7528\u7248\u672c <span class=\"ver ver-v3\">V3<\/span> <span class=\"plat\">Windows<\/span><span class=\"plat\">macOS<\/span><span class=\"plat\">Linux\uff08\u547d\u4ee4\u884c\uff09<\/span><\/div>\n\n<div class=\"khq-tn-video\" data-tn=\"2.3a\"><video controls preload=\"none\" playsinline poster=\"\/khQuant\/media\/tutorial-new\/tn-2.3a.jpg?v=6413fef7\" src=\"\/khQuant\/media\/tutorial-new\/tn-2.3a.mp4?v=6413fef7\">\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u89c6\u9891\u64ad\u653e\uff0c\u53ef\u4ee5<a href=\"\/khQuant\/media\/tutorial-new\/tn-2.3a.mp4?v=6413fef7\">\u4e0b\u8f7d\u89c6\u9891<\/a>\u89c2\u770b\u3002<\/video><\/div>\n\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\u91cd\u70b9\uff1a<\/strong>\u672c\u7bc7\u8bb2 V3 \u65b0\u589e\u7684\u56db\u4e2a\u6570\u636e\u6e90\u5404\u80fd\u4e0b\u4ec0\u4e48\u3001\u600e\u4e48\u9009\uff0c\u4ee5\u53ca\u6bcf\u5929\u81ea\u52a8\u8865\u6570\u636e\u548c\u626b\u63cf\u8865\u7f3a\u53e3\u3002<\/p>\n\n<h2>1 \u6570\u636e\u6e90\u4e00\u89c8<\/h2>\n<p>\u6253\u5f00\u300c\u6570\u636e\u7ba1\u7406\u300d\uff0c\u5de5\u5177\u680f\u5de6\u8fb9\u4e00\u6392\u5c31\u662f\u5404\u4e2a\u6570\u636e\u6e90\u7684\u5165\u53e3\uff1a<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-toolbar.webp?v=ae141ee6\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-toolbar.webp?v=ae141ee6\" width=\"1600\" height=\"900\" alt=\"\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u5de5\u5177\u680f\uff1aMiniQMT\u5bfc\u5165\u3001BaoStock\u5bfc\u5165\u3001tx\u6570\u636e\u5bfc\u5165\u3001\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\u3001Tushare\u5bfc\u5165\u3001HTTP\u8fdc\u7a0b\u6865\u63a5\" loading=\"lazy\"><\/a><figcaption>\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u5de5\u5177\u680f\uff1aMiniQMT\u5bfc\u5165\u3001BaoStock\u5bfc\u5165\u3001tx\u6570\u636e\u5bfc\u5165\u3001\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\u3001Tushare\u5bfc\u5165\u3001HTTP\u8fdc\u7a0b\u6865\u63a5<\/figcaption><\/figure>\n<p>BaoStock \u548c Tushare \u7684\u7528\u6cd5\u548c V2 \u4e00\u6837\uff0c\u89c1 <a href=\"https:\/\/khsci.com\/khQuant\/chapter10\/\">1.4<\/a>\u3002\u672c\u7bc7\u8bb2\u53e6\u5916\u56db\u4e2a\u3002\u5404\u5e73\u53f0\u80fd\u7528\u54ea\u4e9b\uff1a<\/p>\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\">\u6570\u636e\u6e90<\/th><th style=\"text-align:left;\">Windows<\/th><th style=\"text-align:left;\">macOS<\/th><th style=\"text-align:left;\">Linux<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>tx\u3001\u540c\u82b1\u987a\u3001BaoStock\u3001Tushare<\/td><td>\u754c\u9762 + \u547d\u4ee4\u884c<\/td><td>\u754c\u9762 + \u547d\u4ee4\u884c<\/td><td>\u547d\u4ee4\u884c<\/td><\/tr>\n<tr><td>HTTP \u6865\u63a5\uff08\u5bfc\u5165\u6570\u636e\u7684\u4e00\u65b9\uff09<\/td><td>\u754c\u9762 + \u547d\u4ee4\u884c<\/td><td>\u754c\u9762 + \u547d\u4ee4\u884c<\/td><td>\u547d\u4ee4\u884c<\/td><\/tr>\n<tr><td>HTTP \u6865\u63a5\uff08\u63d0\u4f9b\u6570\u636e\u7684\u670d\u52a1\uff09<\/td><td>\u53ef\u4ee5\uff08\u9700 miniQMT\uff09<\/td><td>\u4e0d\u53ef\u4ee5<\/td><td>\u4e0d\u53ef\u4ee5<\/td><\/tr>\n<tr><td>miniQMT<\/td><td>\u53ef\u4ee5\uff08\u9700 miniQMT \u5df2\u767b\u5f55\uff09<\/td><td>\u4e0d\u53ef\u4ee5<\/td><td>\u4e0d\u53ef\u4ee5<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>\u5404\u6570\u636e\u6e90\u80fd\u4e0b\u4ec0\u4e48\uff1a<\/p>\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\"><\/th><th style=\"text-align:left;\">tx<\/th><th style=\"text-align:left;\">\u540c\u82b1\u987a<\/th><th style=\"text-align:left;\">HTTP \u6865\u63a5 \/ miniQMT<\/th><th style=\"text-align:left;\">BaoStock<\/th><th style=\"text-align:left;\">Tushare<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u8d26\u53f7<\/td><td>\u4e0d\u9700\u8981<\/td><td>API Key\uff08\u514d\u8d39\u7533\u9886\uff09<\/td><td>miniQMT \u5df2\u767b\u5f55<\/td><td>\u4e0d\u9700\u8981<\/td><td>Token \u548c\u79ef\u5206\u6743\u9650<\/td><\/tr>\n<tr><td>\u65e5\u7ebf<\/td><td>\u6709<\/td><td>\u6709\uff08\u53ea\u6709\u65e5\u7ebf\uff09<\/td><td>\u6709<\/td><td>\u6709<\/td><td>\u6709<\/td><\/tr>\n<tr><td>5 \u5206\u949f<\/td><td>\u7ea6\u8fd1\u534a\u5e74<\/td><td>\u65e0<\/td><td>\u6709<\/td><td>\u6709<\/td><td>\u9700\u6743\u9650<\/td><\/tr>\n<tr><td>1 \u5206\u949f<\/td><td>\u7ea6\u8fd1 1 \u4e2a\u6708<\/td><td>\u65e0<\/td><td>\u6709<\/td><td>\u65e0<\/td><td>\u9700\u6743\u9650<\/td><\/tr>\n<tr><td>tick<\/td><td>\u65e0<\/td><td>\u65e0<\/td><td>\u8fd1 31 \u5929<\/td><td>\u65e0<\/td><td>\u65e0<\/td><\/tr>\n<tr><td>\u590d\u6743<\/td><td>5 \u79cd<\/td><td>\u4e0d\u590d\u6743\u3001\u524d\u590d\u6743\u3001\u540e\u590d\u6743<\/td><td>5 \u79cd<\/td><td>\u4e0d\u590d\u6743\u3001\u524d\u590d\u6743\u3001\u540e\u590d\u6743<\/td><td>\u4e0d\u590d\u6743\u3001\u524d\u590d\u6743\u3001\u540e\u590d\u6743<\/td><\/tr>\n<tr><td>\u6df1\u5e02 ETF\u3001\u53ef\u8f6c\u503a<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u4ee5\u5b9e\u9645\u8fd4\u56de\u4e3a\u51c6<\/td><td>\u652f\u6301<\/td><td>\u4e0d\u652f\u6301<\/td><td>\u9700\u76f8\u5e94\u6743\u9650<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>\u300c5 \u79cd\u300d\u590d\u6743\u662f\u4e0d\u590d\u6743\u3001\u524d\u590d\u6743\u3001\u540e\u590d\u6743\u3001\u7b49\u6bd4\u524d\u590d\u6743\u3001\u7b49\u6bd4\u540e\u590d\u6743\u3002<\/p>\n\n<h2>2 tx\uff1a\u514d\u8d39\u3001\u4e0d\u7528\u8d26\u53f7<\/h2>\n<p>tx \u7684\u6570\u636e\u53d6\u81ea\u8d22\u7ecf\u7f51\u7ad9\u7684\u516c\u5f00\u7f51\u9875\u63a5\u53e3\uff0c\u4e0d\u9700\u8981\u6ce8\u518c\uff0c\u9002\u5408\u5148\u628a\u65e5\u7ebf\u4e0b\u8d77\u6765\u3002\u8f6f\u4ef6\u91cc\u4f1a\u663e\u793a\u4e00\u884c\u8bf4\u660e\uff1a\u6570\u636e\u4ec5\u4f9b\u4e2a\u4eba\u5b66\u4e60\u7814\u7a76\u4f7f\u7528\uff0c\u7528\u6237\u81ea\u884c\u627f\u62c5\u4f7f\u7528\u8d23\u4efb\u3002<\/p>\n<h3>2.1 \u80fd\u4e0b\u4ec0\u4e48<\/h3>\n<ul>\n<li><strong>\u5468\u671f<\/strong>\uff1a\u65e5\u7ebf\u30011 \u5206\u949f\u30015 \u5206\u949f\u30021 \u5206\u949f\u7ebf\u53ea\u6709\u7ea6\u8fd1 1 \u4e2a\u6708\uff0c5 \u5206\u949f\u7ebf\u7ea6\u8fd1\u534a\u5e74\uff0c\u4ee5\u63a5\u53e3\u5b9e\u9645\u8fd4\u56de\u4e3a\u51c6\uff0c\u957f\u5386\u53f2\u5206\u949f\u7ebf\u4e0d\u80fd\u9760\u5b83\u3002<\/li>\n<li><strong>\u54c1\u79cd<\/strong>\uff1a\u6caa\u6df1\u4eac\u80a1\u7968\u3001\u6caa\u6df1\u6307\u6570\uff08000 \u5f00\u5934\u7684\u6caa\u5e02\u6307\u6570\u3001399 \u5f00\u5934\u7684\u6df1\u5e02\u6307\u6570\uff09\u3001\u6caa\u5e02 ETF\uff085 \u5f00\u5934\uff09\u3002<strong>\u6df1\u5e02 ETF\/LOF\uff0815\u300116 \u5f00\u5934\uff09\u548c\u53ef\u8f6c\u503a\u4e0d\u652f\u6301<\/strong>\uff1b\u5317\u4ea4\u6240\u53ea\u6709\u65e5\u7ebf\u3002<\/li>\n<li><strong>\u5f53\u5929\u6570\u636e<\/strong>\uff1a\u53ea\u5bfc\u5165\u5df2\u6536\u76d8\u7684\u4ea4\u6613\u65e5\uff0c\u5f53\u5929\u7684\u6570\u636e 16:00 \u4ee5\u540e\u624d\u6709\u3002<\/li>\n<li><strong>\u6210\u4ea4\u989d<\/strong>\uff1a\u65e5\u7ebf\u6709\u6210\u4ea4\u989d\uff1b\u5206\u949f\u7ebf\u7684\u6210\u4ea4\u989d\u662f\u7a7a\u7684\u3002<\/li>\n<\/ul>\n<h3>2.2 \u5728\u754c\u9762\u91cc\u4e0b\u8f7d<\/h3>\n<p>\u70b9\u5de5\u5177\u680f\u300ctx\u6570\u636e\u5bfc\u5165\u300d\uff0c\u6253\u5f00\u300c\u4ecetx\u6570\u636e\u6e90\u5bfc\u5165\u6570\u636e\u300d\u7a97\u53e3\u3002<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-tx.webp?v=060e7634\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-tx.webp?v=060e7634\" width=\"831\" height=\"1037\" alt=\"\u300c\u4ecetx\u6570\u636e\u6e90\u5bfc\u5165\u6570\u636e\u300d\u7a97\u53e3\" loading=\"lazy\"><\/a><figcaption>\u300c\u4ecetx\u6570\u636e\u6e90\u5bfc\u5165\u6570\u636e\u300d\u7a97\u53e3<\/figcaption><\/figure>\n<ol>\n<li><strong>\u6570\u636e\u76ee\u5f55<\/strong>\uff1a\u9ed8\u8ba4\u662f\u5f53\u524d\u7684\u6570\u636e\u76ee\u5f55\uff0c\u4e0d\u8981\u6539\u3002\u6539\u6210\u522b\u7684\u76ee\u5f55\u540e\u4e0b\u8f7d\u7684\u6570\u636e\uff0c\u56de\u6d4b\u8bfb\u4e0d\u5230\uff08\u56de\u6d4b\u53ea\u8bfb\u300c\u8bbe\u7f6e \u2192 \u6570\u636e\u8bbe\u7f6e\u300d\u91cc\u7684\u8def\u5f84\uff09\u3002<\/li>\n<li><strong>\u80a1\u7968\u6c60\u9009\u62e9<\/strong>\uff1a\u548c BaoStock \u4e00\u6837\uff0c\u53ef\u4ee5\u9009\u9884\u8bbe\u677f\u5757\u3001\u4ece\u6587\u4ef6\u5bfc\u5165\u6216\u624b\u52a8\u8f93\u5165\uff08\u89c1 <a href=\"https:\/\/khsci.com\/khQuant\/chapter10\/\">1.4<\/a>\uff09\u3002\u80a1\u7968\u6c60\u91cc\u4e0d\u8981\u6709\u6df1\u5e02 ETF \u548c\u53ef\u8f6c\u503a\uff0c\u5426\u5219\u70b9\u300c\u5f00\u59cb\u4e0b\u8f7d\u300d\u4f1a\u5f39\u51fa\u300c\u65e0\u6cd5\u5f00\u59cb\u4e0b\u8f7d\u300d\uff0c\u9700\u8981\u5148\u4ece\u80a1\u7968\u6c60\u91cc\u53bb\u6389\u5b83\u4eec\u3002<\/li>\n<li><strong>\u6570\u636e\u5468\u671f\u8bbe\u7f6e<\/strong>\uff1a\u65e5\u7ebf\u9ed8\u8ba4\u52fe\u9009\u3001\u8fd1 10 \u5e74\uff1b1 \u5206\u949f\u30015 \u5206\u949f\u9ed8\u8ba4\u4e0d\u52fe\uff0c\u52fe\u4e0a\u540e\u8d77\u59cb\u65e5\u671f\u81ea\u52a8\u662f\u8fd1 1 \u4e2a\u6708\u3001\u8fd1 6 \u4e2a\u6708\u3002<\/li>\n<li><strong>\u4ef7\u683c\u5b57\u6bb5<\/strong>\uff1a\u539f\u59cb\u4ef7\u5fc5\u5b58\uff1b\u524d\u590d\u6743\u3001\u540e\u590d\u6743\u9ed8\u8ba4\u52fe\u9009\uff1b\u7b49\u6bd4\u524d\u590d\u6743\u3001\u7b49\u6bd4\u540e\u590d\u6743\u9ed8\u8ba4\u4e0d\u52fe\uff0c\u9700\u8981\u65f6\u52fe\u4e0a\u3002<\/li>\n<li>\u70b9\u300c\u5f00\u59cb\u4e0b\u8f7d\u300d\uff0c\u8fdb\u5ea6\u548c\u65e5\u5fd7\u663e\u793a\u5728\u4e0b\u65b9\u3002<\/li>\n<\/ol>\n<div class=\"khq-tn-callout warn\"><div class=\"lbl\">\u6ce8\u610f<\/div><p>\u56de\u6d4b\u8981\u7528\u6caa\u6df1 300 \u4f5c\u57fa\u51c6\u3002\u754c\u9762\u91cc\u7528 tx \u4e0b\u8f7d\u4e0d\u4f1a\u81ea\u52a8\u8865\u57fa\u51c6\uff1b\u547d\u4ee4\u884c\u4e0b\u8f7d\u4f1a\u81ea\u52a8\u8865\uff0c\u4f46\u8865\u7684\u53ea\u6709\u4e0d\u590d\u6743\u4ef7\u3002\u56de\u6d4b\u7528\u524d\u590d\u6743\u65f6\uff0c\u57fa\u51c6\u4e5f\u8981\u6709\u524d\u590d\u6743\u6570\u636e\uff0c\u5426\u5219\u5f00\u59cb\u56de\u6d4b\u524d\u4f1a\u63d0\u793a\u300c\u5173\u952e\u56de\u6d4b\u6570\u636e\u7f3a\u5931\u300d\u3002\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u5355\u72ec\u4e0b\u4e00\u6b21\uff1a\u80a1\u7968\u6c60\u624b\u52a8\u8f93\u5165 <code>000300.SH<\/code>\uff0c\u52fe\u4e0a\u524d\u590d\u6743\uff08\u547d\u4ee4\u884c <code>kh data download &#45;&#45;source tx &#45;&#45;stocks 000300.SH &#45;&#45;adj front &#45;&#45;start 20100101<\/code>\uff09\u3002<\/p><\/div>\n<h3>2.3 \u7528\u547d\u4ee4\u884c\u4e0b\u8f7d<\/h3>\n<pre><code>kh data download &#45;&#45;source tx &#45;&#45;stocks 600000.SH &#45;&#45;period 1d,5m &#45;&#45;adj front,back<\/code><\/pre>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-download.webp?v=512fb010\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-download.webp?v=512fb010\" width=\"1100\" height=\"304\" alt=\"\u5b9e\u62cd\uff1a\u6ca1\u5199 --start \u65f6\uff0c\u65e5\u7ebf\u4ece 2020 \u5e74\u521d\u5f00\u59cb\uff1b5 \u5206\u949f\u7ebf\u53ea\u62ff\u5230\u8fd1\u534a\u5e74\" loading=\"lazy\"><\/a><figcaption>\u5b9e\u62cd\uff1a\u6ca1\u5199 &#45;&#45;start \u65f6\uff0c\u65e5\u7ebf\u4ece 2020 \u5e74\u521d\u5f00\u59cb\uff1b5 \u5206\u949f\u7ebf\u53ea\u62ff\u5230\u8fd1\u534a\u5e74<\/figcaption><\/figure>\n<ul>\n<li>\u4e0d\u5199 <code>&#45;&#45;start<\/code> \u65f6\u65e5\u7ebf\u4ece 2020-01-01 \u8d77\u4e0b\u8f7d\uff1b\u5206\u949f\u7ebf\u6309\u63a5\u53e3\u80fd\u7ed9\u7684\u8303\u56f4\uff08\u4e0a\u56fe 5 \u5206\u949f\u7ebf\u662f\u8fd1\u534a\u5e74\uff09\u3002<\/li>\n<li>\u547d\u4ee4\u884c\u91cc tx \u9ed8\u8ba4<strong>\u4e0d\u590d\u6743<\/strong>\uff08\u5176\u4ed6\u6570\u636e\u6e90\u9ed8\u8ba4\u524d\u590d\u6743\uff09\uff0c\u9700\u8981\u590d\u6743\u4ef7\u8981\u5199 <code>&#45;&#45;adj<\/code>\u3002<\/li>\n<li>\u547d\u4ee4\u884c\u4e0b\u8f7d\u9ed8\u8ba4\u4f1a\u987a\u5e26\u8865\u6caa\u6df1 300 \u57fa\u51c6\uff0c\u4e0d\u9700\u8981\u53ef\u4ee5\u52a0 <code>&#45;&#45;skip-benchmark<\/code>\u3002<\/li>\n<li>\u5206\u949f\u7ebf\u7684\u8d77\u59cb\u65e5\u671f\u65e9\u4e8e\u63a5\u53e3\u80fd\u7ed9\u7684\u6700\u65e9\u65e5\u671f\u65f6\uff0c\u4f1a\u62a5 <code>RETENTION_EXCEEDED<\/code>\uff0c\u7f29\u77ed\u533a\u95f4\uff0c\u6216\u8005\u52a0 <code>&#45;&#45;allow-gaps<\/code> \u53ea\u4e0b\u80fd\u62ff\u5230\u7684\u90e8\u5206\u3002<\/li>\n<li><code>&#45;&#45;data-root &lt;\u76ee\u5f55&gt;<\/code> \u53ef\u4ee5\u4e0b\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\uff08\u4e0d\u6539\u5168\u5c40\u8bbe\u7f6e\uff09\uff0c\u9002\u5408\u548c\u5df2\u6709\u6570\u636e\u5bf9\u6bd4\u3002<\/li>\n<\/ul>\n<h3>2.4 \u5e38\u89c1\u62a5\u9519<\/h3>\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\">\u62a5\u9519<\/th><th style=\"text-align:left;\">\u539f\u56e0\u548c\u5904\u7406<\/th><\/tr><\/thead>\n<tbody>\n<tr><td><code>UNSUPPORTED_SYMBOL<\/code><\/td><td>\u4ee3\u7801\u4e0d\u5728\u652f\u6301\u8303\u56f4\uff08\u6df1\u5e02 ETF\u3001\u53ef\u8f6c\u503a\u7b49\uff09\uff0c\u6362\u6570\u636e\u6e90<\/td><\/tr>\n<tr><td><code>NO_CLOSED_SESSION<\/code><\/td><td>\u533a\u95f4\u91cc\u6ca1\u6709\u5df2\u6536\u76d8\u7684\u4ea4\u6613\u65e5\uff0c\u6bd4\u5982 16:00 \u524d\u53ea\u4e0b\u5f53\u5929<\/td><\/tr>\n<tr><td><code>RETENTION_EXCEEDED<\/code><\/td><td>\u5206\u949f\u7ebf\u8d85\u51fa\u4fdd\u7559\u671f\uff0c\u7f29\u77ed\u533a\u95f4\u6216\u52a0 <code>&#45;&#45;allow-gaps<\/code><\/td><\/tr>\n<tr><td><code>NO_DATA<\/code><\/td><td>\u6ca1\u6709\u8fd4\u56de\u6570\u636e\uff1a\u8d85\u51fa\u4fdd\u7559\u671f\u3001\u8fd8\u6ca1\u4e0a\u5e02\u6216\u54c1\u79cd\u4e0d\u53ef\u7528<\/td><\/tr>\n<tr><td><code>RAW_PRICE_CONFLICT<\/code><\/td><td>\u5e93\u91cc\u5df2\u6709\u7684\u539f\u59cb\u4ef7\u548c tx \u4e0d\u4e00\u81f4\uff0c\u4e0d\u80fd\u76f4\u63a5\u7ed9\u5b83\u914d\u590d\u6743\u5217\u3002\u7528 <code>&#45;&#45;data-root<\/code> \u4e0b\u5230\u72ec\u7acb\u76ee\u5f55<\/td><\/tr>\n<tr><td><code>VOLUME_UNIT_CONFLICT<\/code><\/td><td>\u8981\u5199\u5165\u7684\u6570\u636e\u58f0\u660e\u7684\u6210\u4ea4\u91cf\u5355\u4f4d\u4e0d\u662f\u300c\u624b\u300d\u6216\u6210\u4ea4\u989d\u5355\u4f4d\u4e0d\u662f\u300c\u5143\u300d\uff0c\u62d2\u7edd\u5199\u5165\uff08\u65e7\u5e93\u7eed\u5199\u4e0d\u4f1a\u62a5\u8fd9\u4e2a\u9519\uff0c\u53ea\u4f1a\u6807\u8bb0\u300c\u5386\u53f2\u5355\u4f4d\u672a\u6838\u9a8c\u300d\uff09\uff0c\u89c1\u7b2c 7.1 \u8282<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n\n<h2>3 \u540c\u82b1\u987a\uff1a\u5b98\u65b9\u5f00\u653e\u5e73\u53f0\uff0c\u9700\u8981 API Key<\/h2>\n<p>\u540c\u82b1\u987a\u6570\u636e\u8d70\u540c\u82b1\u987a\u5b98\u65b9\u7684\u91d1\u878d\u6570\u636e\u5f00\u653e\u5e73\u53f0\uff08\u6276\u6447\uff09\uff0c\u9700\u8981\u5148\u514d\u8d39\u7533\u9886\u4e00\u4e2a API Key\u3002\u76ee\u524d\u53ea\u63d0\u4f9b A \u80a1\u548c\u6307\u6570\u7684<strong>\u65e5\u7ebf<\/strong>\uff0c\u590d\u6743\u6709\u4e0d\u590d\u6743\u3001\u524d\u590d\u6743\u3001\u540e\u590d\u6743\u4e09\u79cd\u3002<\/p>\n<h3>3.1 \u914d\u7f6e API Key<\/h3>\n<p>\u70b9\u5de5\u5177\u680f\u300c\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\u300d\uff0c\u6253\u5f00\u300c\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\uff08\u6276\u6447\u5f00\u653e\u5e73\u53f0\uff09\u300d\u7a97\u53e3\u3002\u9876\u90e8\u300c\u540c\u82b1\u987a\uff08\u6276\u6447\uff09API Key \u914d\u7f6e\u300d\uff1a<\/p>\n<ol>\n<li>\u70b9\u300c\u514d\u8d39\u7533\u9886 API Key \u2197\u300d\uff0c\u5728\u6253\u5f00\u7684\u5e73\u53f0\u9875\u9762\u6ce8\u518c\u5e76\u7533\u9886 Key\u3002<\/li>\n<li>\u628a Key \u7c98\u8d34\u5230\u300cAPI Key:\u300d\u8f93\u5165\u6846\uff0c\u70b9\u300c\u4fdd\u5b58\u300d\uff0c\u518d\u70b9\u300c\u6d4b\u8bd5\u8fde\u63a5\u300d\u786e\u8ba4\u53ef\u7528\u3002<\/li>\n<\/ol>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-ths.webp?v=641f5aa3\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-ths.webp?v=641f5aa3\" width=\"893\" height=\"1045\" alt=\"\u300c\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\uff08\u6276\u6447\u5f00\u653e\u5e73\u53f0\uff09\u300d\u7a97\u53e3\uff0c\u9876\u90e8\u662f API Key \u914d\u7f6e\" loading=\"lazy\"><\/a><figcaption>\u300c\u540c\u82b1\u987a\u6570\u636e\u5bfc\u5165\uff08\u6276\u6447\u5f00\u653e\u5e73\u53f0\uff09\u300d\u7a97\u53e3\uff0c\u9876\u90e8\u662f API Key \u914d\u7f6e<\/figcaption><\/figure>\n<p>\u4e5f\u53ef\u4ee5\u5728\u300c\u8bbe\u7f6e \u2192 \u6570\u636e\u8bbe\u7f6e \u2192 \u540c\u82b1\u987a\uff08\u6276\u6447\uff09\u63a5\u53e3\u914d\u7f6e\u300d\u91cc\u586b\uff0c\u6216\u8005\u7528\u547d\u4ee4 <code>kh config set ths_api_key &lt;\u4f60\u7684Key&gt;<\/code>\u3002\u4e09\u5904\u4fdd\u5b58\u7684\u662f\u540c\u4e00\u4e2a\u8bbe\u7f6e\u3002\u6ca1\u914d Key \u5c31\u70b9\u300c\u5f00\u59cb\u5bfc\u5165\u300d\uff0c\u4f1a\u5f39\u51fa\u300c\u672a\u914d\u7f6e\u540c\u82b1\u987a API Key\u300d\uff0c\u95ee\u4f60\u662f\u5426\u53bb\u7533\u9886\u3002\u8c03\u7528\u6b21\u6570\u7b49\u9650\u5236\u4ee5\u5e73\u53f0\u89c4\u5219\u4e3a\u51c6\u3002<\/p>\n<h3>3.2 \u4e0b\u8f7d<\/h3>\n<p>\u80a1\u7968\u6c60\u3001\u590d\u6743\u7684\u7528\u6cd5\u548c tx \u76f8\u540c\uff1b\u5468\u671f\u53ea\u6709\u65e5\u7ebf\uff0c\u7070\u8272\u5f3a\u5236\u52fe\u9009\u3002\u6ce8\u610f\u4e24\u70b9\uff1a<\/p>\n<ul>\n<li><strong>\u6307\u6570\u8981\u5199\u5168\u540e\u7f00<\/strong>\uff1a\u53ea\u5199 6 \u4f4d\u6570\u5b57\u65f6\uff0c00 \u5f00\u5934\u4f1a\u88ab\u5f53\u6210\u6df1\u5e02\u80a1\u7968\u3002\u6caa\u6df1 300 \u8981\u5199 <code>000300.SH<\/code>\uff0c\u4e0d\u80fd\u53ea\u5199 <code>000300<\/code>\u3002<\/li>\n<li><strong>\u589e\u91cf\u53ea\u5f80\u540e\u8865<\/strong>\uff1a\u4e0d\u52fe\u300c\u5f3a\u5236\u8986\u5199\u300d\u65f6\uff0c\u53ea\u8865\u5e93\u91cc\u6700\u65b0\u65e5\u671f\u4e4b\u540e\u7684\u6570\u636e\uff0c\u4e2d\u95f4\u7f3a\u7684\u4e0d\u56de\u8865\u3002\u8981\u8865\u4e2d\u95f4\u7684\u7f3a\u53e3\uff0c\u52fe\u300c\u5f3a\u5236\u8986\u5199\u300d\u6309\u533a\u95f4\u91cd\u4e0b\u3002<\/li>\n<\/ul>\n<p>\u547d\u4ee4\u884c\uff1a<\/p>\n<pre><code>kh data download &#45;&#45;source ths &#45;&#45;stocks 600000.SH,000300.SH &#45;&#45;period 1d &#45;&#45;adj front<\/code><\/pre>\n<p>\u547d\u4ee4\u884c\u4e0d\u5199 <code>&#45;&#45;start<\/code> \u65f6\u9ed8\u8ba4\u53d6\u8fd1 3 \u5e74\u3002Key \u65e0\u6548\u65f6\u62a5 <code>AUTH_FAILED<\/code>\uff08\u300cAPI Key \u9274\u6743\u5931\u8d25\uff0c\u8bf7\u68c0\u67e5\u5bc6\u94a5\u662f\u5426\u6709\u6548\u300d\uff09\uff1b\u8bbf\u95ee\u592a\u9891\u7e41\u65f6\u8f6f\u4ef6\u4f1a\u81ea\u52a8\u7b49\u5f85\u91cd\u8bd5\u3002<\/p>\n\n<h2 id=\"bridge\">4 HTTP \u6865\u63a5\uff1a\u5728 Mac\u3001Linux \u4e0a\u7528 miniQMT \u7684\u6570\u636e<\/h2>\n<p>miniQMT \u53ea\u6709 Windows \u7248\u3002HTTP \u6865\u63a5\u7684\u505a\u6cd5\u662f\uff1a\u5728\u4e00\u53f0\u88c5\u4e86 miniQMT \u7684 Windows \u7535\u8111\u4e0a\u5f00\u4e00\u4e2a\u884c\u60c5\u670d\u52a1\uff0cMac\u3001Linux \u6216\u5c40\u57df\u7f51\u91cc\u7684\u5176\u4ed6\u7535\u8111\u901a\u8fc7\u7f51\u7edc\u4ece\u5b83\u53d6\u6570\u636e\uff0c\u5199\u8fdb\u81ea\u5df1\u672c\u673a\u7684\u6570\u636e\u5e93\u3002\u8fd9\u4e2a\u670d\u52a1\u53ea\u63d0\u4f9b\u884c\u60c5\u6570\u636e\uff0c\u4e0d\u542b\u4efb\u4f55\u4ea4\u6613\u529f\u80fd\u3002<\/p>\n<div class=\"khq-tn-callout tip\"><div class=\"lbl\">\u793a\u610f<\/div><p>Windows \u7535\u8111\uff08miniQMT \u5df2\u767b\u5f55\uff09\u2192 \u6865\u63a5\u670d\u52a1\uff08\u9ed8\u8ba4\u7aef\u53e3 8001\uff09\u2192 \u5c40\u57df\u7f51 \u2192 Mac \/ Linux \u4e0a\u7684 V3 \u2192 \u672c\u673a DuckDB<\/p><\/div>\n<h3>4.1 \u5728 Windows \u4e0a\u5f00\u670d\u52a1<\/h3>\n<p>\u786e\u4fdd miniQMT \u5df2\u542f\u52a8\u5e76\u767b\u5f55\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u8fd0\u884c\uff1a<\/p>\n<pre><code>kh bridge serve &#45;&#45;host 0.0.0.0<\/code><\/pre>\n<ul>\n<li>\u9ed8\u8ba4\u53ea\u76d1\u542c <code>127.0.0.1<\/code>\uff0c\u53ea\u6709\u672c\u673a\u80fd\u8bbf\u95ee\u3002\u8981\u8ba9\u5c40\u57df\u7f51\u91cc\u7684\u5176\u4ed6\u7535\u8111\u8bbf\u95ee\uff0c\u5fc5\u987b\u52a0 <code>&#45;&#45;host 0.0.0.0<\/code>\u3002<\/li>\n<li>\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u81ea\u52a8\u751f\u6210\u4e00\u4e2a\u968f\u673a API Key \u5e76\u6253\u5370\u51fa\u6765\uff0c\u628a\u5b83\u590d\u5236\u7ed9\u5ba2\u6237\u7aef\u3002\u4e4b\u540e\u4f1a\u6cbf\u7528\u8fd9\u4e2a Key\u3002<\/li>\n<li>\u8f93\u51fa\u91cc\u7684\u300c\u5ba2\u6237\u7aef\u53ef\u7528\u5730\u5740\u300d\u5c31\u662f\u5ba2\u6237\u7aef\u8981\u586b\u7684\u670d\u52a1\u5730\u5740\uff0c\u5f62\u5982 <code>http:\/\/192.168.x.x:8001<\/code>\u3002<\/li>\n<li>Windows \u9632\u706b\u5899\u5f39\u7a97\u65f6\uff0c\u5141\u8bb8\u4e13\u7528\u7f51\u7edc\u8bbf\u95ee\uff1b\u6ca1\u5f39\u7684\u8bdd\uff0c\u9700\u8981\u624b\u52a8\u653e\u884c 8001 \u7aef\u53e3\u3002<\/li>\n<li>\u6309 Ctrl+C \u6216\u5173\u6389\u7ec8\u7aef\u7a97\u53e3\uff0c\u670d\u52a1\u5c31\u505c\u4e86\u3002\u67e5\u770b\u670d\u52a1\u72b6\u6001\u7528 <code>kh bridge status<\/code>\u3002<\/li>\n<\/ul>\n<h3>4.2 \u5728\u5ba2\u6237\u7aef\u5bfc\u5165<\/h3>\n<p>Mac \u6216 Windows \u4e0a\uff1a\u6570\u636e\u7ba1\u7406\u5de5\u5177\u680f\u70b9\u300cHTTP\u8fdc\u7a0b\u6865\u63a5\u300d\uff0c\u6253\u5f00\u300c\u4ece\u6865\u63a5\u5bfc\u5165\u6570\u636e &#45; miniQMT \u6865\u63a5\u300d\u7a97\u53e3\u3002<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-http.webp?v=d3bd8dc4\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-http.webp?v=d3bd8dc4\" width=\"831\" height=\"870\" alt=\"\u300c\u4ece\u6865\u63a5\u5bfc\u5165\u6570\u636e &#45; miniQMT \u6865\u63a5\u300d\u7a97\u53e3\" loading=\"lazy\"><\/a><figcaption>\u300c\u4ece\u6865\u63a5\u5bfc\u5165\u6570\u636e &#45; miniQMT \u6865\u63a5\u300d\u7a97\u53e3<\/figcaption><\/figure>\n<ol>\n<li>\u300c\u6865\u63a5\u670d\u52a1\u914d\u7f6e\u300d\u91cc\u586b\u670d\u52a1\u5730\u5740\uff08\u4f8b\u5982 <code>http:\/\/192.168.1.10:8001<\/code>\uff09\u548c API Key\uff0c\u70b9\u300c\u6d4b\u8bd5\u8fde\u63a5\u300d\u3002<\/li>\n<li>\u9009\u80a1\u7968\u6c60\uff1b\u5468\u671f\u53ef\u4ee5\u591a\u9009\uff0c\u65e5\u7ebf\u9ed8\u8ba4\u8fd1 3 \u5e74\uff0c1 \u5206\u949f\u30015 \u5206\u949f\u9ed8\u8ba4\u8fd1 1 \u5e74\uff0ctick \u9ed8\u8ba4\u8fd1 1 \u4e2a\u6708\u3002<\/li>\n<li>\u9009\u590d\u6743\u65b9\u5f0f\uff08\u9ed8\u8ba4\u53ea\u52fe\u4e0d\u590d\u6743\uff0c\u53ef\u591a\u9009\uff09\uff0c\u70b9\u300c\u5f00\u59cb\u5bfc\u5165\u300d\u3002\u5f00\u59cb\u524d\u4f1a\u5148\u6d4b\u4e00\u6b21\u8fde\u63a5\uff0c\u8fde\u4e0d\u4e0a\u5c31\u4e0d\u4f1a\u5f00\u59cb\u3002<\/li>\n<\/ol>\n<p>Linux \u6216\u547d\u4ee4\u884c\uff1a<\/p>\n<pre><code>kh config set http_base_url http:\/\/192.168.1.10:8001\nkh config set http_api_key &lt;\u670d\u52a1\u7aef\u6253\u5370\u7684Key&gt;\nkh data download &#45;&#45;source http &#45;&#45;stocks 000001.SZ &#45;&#45;period 1d,5m &#45;&#45;adj none,front<\/code><\/pre>\n<h3>4.3 \u8fde\u4e0d\u4e0a\u65f6<\/h3>\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\">\u73b0\u8c61<\/th><th style=\"text-align:left;\">\u5904\u7406<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u300c\u65e0\u6cd5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u300d\u300c\u8fde\u63a5\u8d85\u65f6\u300d<\/td><td>\u670d\u52a1\u7aef\u662f\u5426\u5728\u8fd0\u884c\u3001\u662f\u5426\u7528\u4e86 <code>&#45;&#45;host 0.0.0.0<\/code>\u3001\u9632\u706b\u5899\u662f\u5426\u653e\u884c 8001\u3001\u4e24\u53f0\u7535\u8111\u662f\u5426\u5728\u540c\u4e00\u5c40\u57df\u7f51<\/td><\/tr>\n<tr><td>\u300c\u8fde\u63a5\u5931\u8d25: 403 Client Error: Forbidden\u300d<\/td><td>API Key \u4e0d\u5bf9\uff0c\u91cd\u65b0\u590d\u5236\u670d\u52a1\u7aef\u7684 Key<\/td><\/tr>\n<tr><td>\u300c\u670d\u52a1\u5730\u5740\u683c\u5f0f\u65e0\u6548\u300d<\/td><td>\u5730\u5740\u8981\u5e26 <code>http:\/\/<\/code> \u548c\u7aef\u53e3\u53f7<\/td><\/tr>\n<tr><td><code>kh bridge status<\/code> \u63d0\u793a\u300c\u8fd4\u56de\u7684\u4e0d\u662f\u6865\u63a5\u670d\u52a1\u7684\u6570\u636e\u300d<\/td><td>8001 \u7aef\u53e3\u88ab\u522b\u7684\u7a0b\u5e8f\u5360\u7528\uff0c\u7528 <code>&#45;&#45;port<\/code> \u6362\u4e00\u4e2a\u7aef\u53e3\uff0c\u5ba2\u6237\u7aef\u5730\u5740\u4e5f\u8ddf\u7740\u6539<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n\n<h2>5 miniQMT\uff08Windows\uff09<\/h2>\n<p>miniQMT \u662f\u5238\u5546\u63d0\u4f9b\u7684\u91cf\u5316\u5ba2\u6237\u7aef\u3002\u5728 Windows \u4e0a\uff0c\u7535\u8111\u91cc\u88c5\u6709 miniQMT \u5e76\u5df2\u767b\u5f55\u65f6\uff0cV3 \u53ef\u4ee5\u76f4\u63a5\u4ece\u5b83\u4e0b\u8f7d\u6570\u636e\uff0c\u5468\u671f\u6709\u65e5\u7ebf\u30011 \u5206\u949f\u30015 \u5206\u949f\u548c tick\uff0c\u590d\u6743 5 \u79cd\u90fd\u6709\u3002tick \u53ea\u80fd\u53d6\u8fd1 31 \u5929\u3002<\/p>\n<h3>5.1 \u5728\u754c\u9762\u91cc\u4e0b\u8f7d<\/h3>\n<p>\u5de5\u5177\u680f\u300cMiniQMT\u5bfc\u5165\u300d\u6253\u5f00\u300cMiniQMT\u5386\u53f2\u884c\u60c5\u5bfc\u5165\u300d\u7a97\u53e3\uff0c\u9876\u90e8\u663e\u793a xtquant \u7684\u8fde\u63a5\u72b6\u6001\uff0c\u672a\u8fde\u63a5\u65f6\u5148\u68c0\u67e5 miniQMT \u662f\u5426\u5df2\u542f\u52a8\u5e76\u767b\u5f55\u3002\u7a97\u53e3\u6709\u4e24\u4e2a\u9875\u7b7e\uff1a<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-miniqmt.webp?v=ff05b1f6\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-ds-miniqmt.webp?v=ff05b1f6\" width=\"1100\" height=\"1176\" alt=\"\u300cMiniQMT\u5386\u53f2\u884c\u60c5\u5bfc\u5165\u300d\u7a97\u53e3\u7684\u300c\u5168\u91cf\u589e\u91cf\u8865\u5145\u300d\u9875\uff08\u622a\u56fe\u7684\u7535\u8111\u6ca1\u88c5 miniQMT\uff0c\u6240\u4ee5\u663e\u793a\u672a\u8fde\u63a5\uff09\" loading=\"lazy\"><\/a><figcaption>\u300cMiniQMT\u5386\u53f2\u884c\u60c5\u5bfc\u5165\u300d\u7a97\u53e3\u7684\u300c\u5168\u91cf\u589e\u91cf\u8865\u5145\u300d\u9875\uff08\u622a\u56fe\u7684\u7535\u8111\u6ca1\u88c5 miniQMT\uff0c\u6240\u4ee5\u663e\u793a\u672a\u8fde\u63a5\uff09<\/figcaption><\/figure>\n<ul>\n<li><strong>\u5168\u91cf\u589e\u91cf\u8865\u5145<\/strong>\uff1a\u626b\u63cf 13 \u4e2a\u9884\u8bbe\u677f\u5757\uff0c\u7f3a\u4ec0\u4e48\u8865\u4ec0\u4e48\u3002\u65e5\u7ebf\u9ed8\u8ba4\u8fd1 10 \u5e74\uff0c1 \u5206\u949f\u30015 \u5206\u949f\u9ed8\u8ba4\u8fd1 1 \u5e74\uff0c\u4e09\u8005\u9ed8\u8ba4\u90fd\u52fe\uff1btick \u9ed8\u8ba4\u4e0d\u52fe\u3002\u70b9\u300c\u5f00\u59cb\u626b\u63cf\u5e76\u8865\u5145\u300d\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49\u8865\u5145\u6570\u636e<\/strong>\uff1a\u81ea\u5df1\u9009\u80a1\u7968\u6c60\u3001\u5468\u671f\u548c\u590d\u6743\uff0c\u8fd8\u53ef\u4ee5\u52fe\u300c\u540c\u65f6\u8865\u5145\u65e5\u7ebf\u6307\u6807\uff08\u6570\u636e\u7531 BaoStock \u63d0\u4f9b\uff09\u300d\uff08\u300c\u5168\u91cf\u589e\u91cf\u8865\u5145\u300d\u9875\u4e5f\u6709\u8fd9\u4e2a\u9009\u9879\uff09\u3002\u6309\u94ae\u540c\u6837\u662f\u300c\u5f00\u59cb\u626b\u63cf\u5e76\u8865\u5145\u300d\u3002<\/li>\n<\/ul>\n<p>\u590d\u6743\u4e0b\u65b9\u6709\u4e00\u53e5\u63d0\u793a\uff1a\u4e0d\u540c\u590d\u6743\u65e0\u6cd5\u589e\u91cf\u4e0b\u8f7d\uff0c\u9700\u8981\u65b0\u7684\u590d\u6743\u65b9\u5f0f\u65f6\uff0c\u52fe\u300c\u5f3a\u5236\u8986\u5199\u300d\u91cd\u65b0\u4e0b\u8f7d\u3002<\/p>\n<h3>5.2 \u4ece miniQMT \u672c\u5730\u6570\u636e\u5bfc\u5165<\/h3>\n<p>\u5982\u679c miniQMT \u91cc\u65e9\u5c31\u4e0b\u597d\u4e86\u5386\u53f2\u6570\u636e\uff0c\u53ef\u4ee5\u70b9\u300c\u5168\u91cf\u589e\u91cf\u8865\u5145\u300d\u9875\u5e95\u90e8\u84dd\u8272\u7684\u300c\u4ece\u672c\u5730miniQMT\u6570\u636e\u5bfc\u5165\u300d\uff1a\u4e0d\u8054\u7f51\u4e0b\u8f7d\uff0c\u76f4\u63a5\u8bfb miniQMT \u672c\u5730\u7f13\u5b58\u5199\u8fdb DuckDB\uff0c\u901f\u5ea6\u5feb\u3002\u8bfb\u53d6\u7684\u8303\u56f4\u6309\u9875\u9762\u4e0a\u52fe\u9009\u7684\u5468\u671f\u3001\u65e5\u671f\u548c\u590d\u6743\uff0c\u6807\u7684\u662f 13 \u4e2a\u9884\u8bbe\u677f\u5757\u3002\u7f13\u5b58\u91cc\u6ca1\u6709\u7684\u90e8\u5206\u4e0d\u4f1a\u88ab\u5bfc\u5165\uff0c\u4e4b\u540e\u518d\u7528\u300c\u5f00\u59cb\u626b\u63cf\u5e76\u8865\u5145\u300d\u8865\u9f50\u3002\u8fd9\u4e2a\u529f\u80fd\u4ecd\u9700\u8981 miniQMT \u80fd\u8fde\u4e0a\uff0c\u53ea\u80fd\u5728 Windows \u4e0a\u7528\uff0c\u547d\u4ee4\u884c\u6ca1\u6709\u5bf9\u5e94\u547d\u4ee4\u3002<\/p>\n<h3>5.3 \u7528\u547d\u4ee4\u884c\u4e0b\u8f7d<\/h3>\n<pre><code>kh data download &#45;&#45;source miniqmt &#45;&#45;pool hs300 &#45;&#45;period 1d,5m &#45;&#45;adj front,back<\/code><\/pre>\n<p>miniQMT \u6ca1\u8fde\u4e0a\u65f6\u62a5 <code>CLIENT_NOT_CONNECTED<\/code>\uff08\u300cMiniQMT \u5ba2\u6237\u7aef\u672a\u5c31\u7eea\u300d\uff09\u3002<\/p>\n\n<h2>6 \u600e\u4e48\u9009\u6570\u636e\u6e90<\/h2>\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\">\u9700\u6c42<\/th><th style=\"text-align:left;\">\u9996\u9009<\/th><th style=\"text-align:left;\">\u5907\u9009<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u96f6\u95e8\u69db\uff0c\u53ea\u8981\u65e5\u7ebf<\/td><td>tx<\/td><td>BaoStock<\/td><\/tr>\n<tr><td>\u8981\u8fd1\u671f\u7684 1 \u5206\u949f\u30015 \u5206\u949f\u7ebf<\/td><td>tx<\/td><td>Tushare\uff08\u9700\u6743\u9650\uff09<\/td><\/tr>\n<tr><td>\u8981 tick \u6216\u957f\u5386\u53f2\u5206\u949f\u7ebf<\/td><td>miniQMT\uff08Windows\uff09<\/td><td>HTTP \u6865\u63a5\uff08Mac\u3001Linux\uff09<\/td><\/tr>\n<tr><td>\u60f3\u8981\u5b98\u65b9\u5f00\u653e\u5e73\u53f0\u7684\u65e5\u7ebf<\/td><td>\u540c\u82b1\u987a<\/td><td>Tushare<\/td><\/tr>\n<tr><td>ETF\u3001\u53ef\u8f6c\u503a<\/td><td>miniQMT \/ HTTP \u6865\u63a5<\/td><td>tx\uff08\u53ea\u6709\u6caa\u5e02 ETF\uff09\u3001Tushare<\/td><\/tr>\n<tr><td>miniQMT \u91cc\u5df2\u7ecf\u6709\u5386\u53f2\u6570\u636e<\/td><td>\u4ece miniQMT \u672c\u5730\u6570\u636e\u5bfc\u5165<\/td><td>\u2014<\/td><\/tr>\n<tr><td>\u8981\u7b49\u6bd4\u524d\u590d\u6743\u3001\u7b49\u6bd4\u540e\u590d\u6743<\/td><td>miniQMT \/ HTTP \u6865\u63a5 \/ tx<\/td><td>\u2014<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n<p>\u60f3\u5148\u786e\u8ba4\u67d0\u4e2a\u6570\u636e\u6e90\u80fd\u4e0d\u80fd\u7528\uff0c\u8fd0\u884c <code>kh data source test &#45;&#45;source tx<\/code>\uff08\u628a tx \u6362\u6210\u8981\u6d4b\u7684\u6570\u636e\u6e90\uff09\u3002<\/p>\n\n<h2>7 \u6df7\u7528\u6570\u636e\u6e90\u65f6\u8981\u6ce8\u610f<\/h2>\n<h3>7.1 \u6210\u4ea4\u91cf\u7edf\u4e00\u6309\u300c\u624b\u300d<\/h3>\n<p>\u5404\u6570\u636e\u6e90\u539f\u672c\u7684\u6210\u4ea4\u91cf\u5355\u4f4d\u4e0d\u540c\uff08\u6709\u7684\u662f\u80a1\uff0c\u6709\u7684\u662f\u624b\uff09\uff0c\u6210\u4ea4\u989d\u6709\u7684\u662f\u5143\u3001\u5343\u5143\u3001\u4e07\u5143\u3002V3 \u5728\u5199\u5165\u65f6\u7edf\u4e00\u6362\u7b97\u6210\u300c\u624b\u300d\u548c\u300c\u5143\u300d\u3002\u5199\u5165\u524d\u8fd8\u4f1a\u68c0\u67e5\u6570\u636e\u58f0\u660e\u7684\u5355\u4f4d\uff1a\u6210\u4ea4\u91cf\u4e0d\u662f\u300c\u624b\u300d\u6216\u6210\u4ea4\u989d\u4e0d\u662f\u300c\u5143\u300d\u65f6\u62d2\u7edd\u5199\u5165\uff0c\u62a5 <code>VOLUME_UNIT_CONFLICT<\/code>\u3002\u65e7\u5e93\u7684\u5355\u4f4d\u6807\u8bb0\u7f3a\u5931\u6216\u4e0d\u4e00\u81f4\u65f6\u7167\u5e38\u7eed\u5199\uff0c\u4f46\u4f1a\u6807\u8bb0\u300c\u5386\u53f2\u5355\u4f4d\u672a\u6838\u9a8c\u300d\uff0c\u89c1 <a href=\"https:\/\/khsci.com\/khQuant\/chapter10\/\">1.4<\/a>\u3002<\/p>\n<h3>7.2 \u590d\u6743\u4ef7\u53ef\u80fd\u5bf9\u4e0d\u4e0a<\/h3>\n<p>\u5e93\u91cc\u6bcf\u4e00\u884c\u90fd\u5b58\u539f\u59cb\u4ef7\uff0c\u590d\u6743\u4ef7\u653e\u5728\u9644\u52a0\u5217\u91cc\u3002\u4e0d\u540c\u6570\u636e\u6e90\u8ba1\u7b97\u590d\u6743\u7684\u65b9\u6cd5\u548c\u53d6\u6574\u65b9\u5f0f\u4e0d\u540c\uff0c\u540c\u4e00\u53ea\u80a1\u7968\u7684\u524d\u590d\u6743\u4ef7\uff0c\u7528 tx \u4e0b\u7684\u548c\u7528 miniQMT \u4e0b\u7684\u53ef\u80fd\u6709\u7ec6\u5fae\u5dee\u522b\u3002\u540c\u4e00\u5217\u5982\u679c\u524d\u4e00\u6bb5\u7531 A \u6e90\u5199\u3001\u540e\u4e00\u6bb5\u7531 B \u6e90\u5199\uff0c\u53e3\u5f84\u5c31\u53ef\u80fd\u4e0d\u4e00\u81f4\uff0c\u56de\u6d4b\u7ed3\u679c\u4f1a\u53d7\u5f71\u54cd\u3002<\/p>\n<h3>7.3 \u589e\u91cf\u8865\u5145\u4e0d\u4f1a\u6539\u5df2\u6709\u7684\u6570\u636e<\/h3>\n<p>\u4e0d\u52fe\u300c\u5f3a\u5236\u8986\u5199\u300d\u65f6\uff0c\u4e0b\u8f7d\u53ea\u63d2\u5165\u5e93\u91cc\u6ca1\u6709\u7684\u65f6\u95f4\u70b9\uff0c\u6216\u8005\u586b\u8865\u7a7a\u503c\uff0c\u4e0d\u4f1a\u4fee\u6539\u5df2\u6709\u7684\u6570\u636e\u3002\u6240\u4ee5\u5148\u7528 A \u6e90\u4e0b\u4e86\u6570\u636e\uff0c\u518d\u7528 B \u6e90\u589e\u91cf\u8865\uff0c\u91cd\u53e0\u90e8\u5206\u4fdd\u7559\u7684\u4ecd\u662f A \u7684\u503c\u3002<\/p>\n<h3>7.4 \u5efa\u8bae\u505a\u6cd5<\/h3>\n<ol>\n<li>\u540c\u4e00\u53ea\u80a1\u7968\u3001\u540c\u4e00\u4e2a\u5468\u671f\uff0c\u8ba4\u51c6\u4e00\u4e2a\u4e3b\u6570\u636e\u6e90\u3002<\/li>\n<li>\u8981\u6362\u6570\u636e\u6e90\u65f6\uff0c\u52fe\u300c\u5f3a\u5236\u8986\u5199\u300d\uff08\u547d\u4ee4\u884c\u52a0 <code>&#45;&#45;force<\/code>\uff09\u628a\u6574\u6bb5\u91cd\u65b0\u4e0b\u8f7d\uff0c\u4e0d\u8981\u4e24\u4e2a\u6e90\u4ea4\u66ff\u589e\u91cf\u5199\u3002<\/li>\n<li>\u60f3\u6bd4\u8f83\u4e24\u4e2a\u6570\u636e\u6e90\u7684\u5dee\u522b\uff0c\u7528 tx \u6216\u540c\u82b1\u987a\u7684\u72ec\u7acb\u6570\u636e\u76ee\u5f55\uff08\u547d\u4ee4\u884c <code>&#45;&#45;data-root<\/code>\uff09\u4e0b\u5230\u53e6\u4e00\u4e2a\u76ee\u5f55\uff0c\u518d\u7528\u6570\u636e\u7ba1\u7406\u7684\u300c\u67e5\u8be2\u300d\u6216\u300c\u5bfc\u51faCSV\u300d\u5bf9\u6bd4\u3002<\/li>\n<\/ol>\n\n<h2>8 \u6bcf\u5929\u81ea\u52a8\u8865\u6570\u636e\uff1a\u5148\u9009\u54ea\u4e00\u79cd<\/h2>\n<p class=\"khq-tn-vcap\" style=\"margin:22px 0 6px;font-weight:600;color:#163b68;\">\u25b6 \u672c\u8282\u89c6\u9891\uff1a2.3\uff08\u4e0b\uff09\u00b7 \u5b9a\u65f6\u8865\u5145\u6570\u636e<\/p><div class=\"khq-tn-video\" data-tn=\"2.3b\"><video controls preload=\"none\" playsinline poster=\"\/khQuant\/media\/tutorial-new\/tn-2.3b.jpg?v=c03398e0\" src=\"\/khQuant\/media\/tutorial-new\/tn-2.3b.mp4?v=c03398e0\">\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u89c6\u9891\u64ad\u653e\uff0c\u53ef\u4ee5<a href=\"\/khQuant\/media\/tutorial-new\/tn-2.3b.mp4?v=c03398e0\">\u4e0b\u8f7d\u89c6\u9891<\/a>\u89c2\u770b\u3002<\/video><\/div>\n\n\n<div class=\"khq-tn-table\"><table>\n<thead><tr><th style=\"text-align:left;\"><\/th><th style=\"text-align:left;\">\u300c\u5b9a\u65f6\u8865\u5145\u300d\u7a97\u53e3<\/th><th style=\"text-align:left;\"><code>kh data sync<\/code><\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\u5e73\u53f0<\/td><td>\u4ec5 Windows<\/td><td>Windows\u3001macOS\u3001Linux<\/td><\/tr>\n<tr><td>\u6570\u636e\u6e90<\/td><td>\u4ec5 miniQMT\uff08\u672c\u673a\u8fd0\u884c\u5e76\u767b\u5f55\uff09<\/td><td>tx\u3001BaoStock\u3001Tushare\u3001\u540c\u82b1\u987a\u3001HTTP \u6865\u63a5\u3001miniQMT \u4efb\u9009<\/td><\/tr>\n<tr><td>\u8865\u54ea\u4e9b\u80a1\u7968<\/td><td>\u81ea\u5df1\u52fe\u9009\u677f\u5757\uff0c\u6216\u5bfc\u5165 CSV<\/td><td>\u6570\u636e\u76ee\u5f55\u91cc\u5df2\u6709\u7684\u5168\u90e8\u80a1\u7968<\/td><\/tr>\n<tr><td>\u5468\u671f<\/td><td>\u65e5\u7ebf\u30011 \u5206\u949f\u30015 \u5206\u949f\u3001Tick \u53ef\u9009<\/td><td><code>&#45;&#45;period<\/code> \u6307\u5b9a\uff0c\u53ef\u5199\u591a\u4e2a<\/td><\/tr>\n<tr><td>\u590d\u6743<\/td><td>\u4e0d\u590d\u6743\u5fc5\u5199\uff0c\u53ef\u9009\u56db\u79cd\u590d\u6743<\/td><td>\u56fa\u5b9a\uff1atx \u53ea\u5199\u4e0d\u590d\u6743\uff0c\u5176\u4ed6\u6570\u636e\u6e90\u53ea\u5199\u524d\u590d\u6743<\/td><\/tr>\n<tr><td>\u5e38\u9a7b\u65b9\u5f0f<\/td><td>\u7a97\u53e3\u6216\u7cfb\u7edf\u6258\u76d8<\/td><td>\u7ec8\u7aef\u4e00\u76f4\u5f00\u7740\uff0c\u6216\u4ea4\u7ed9\u7cfb\u7edf\u7684\u8ba1\u5212\u4efb\u52a1<\/td><\/tr>\n<tr><td>\u5931\u8d25\u91cd\u8bd5<\/td><td>\u6bcf\u53ea\u80a1\u7968\u6700\u591a\u518d\u8bd5 3 \u6b21<\/td><td>\u6ca1\u6709\u6574\u4f53\u91cd\u8bd5\uff0c\u770b\u9000\u51fa\u7801<\/td><\/tr>\n<\/tbody>\n<\/table><\/div>\n\n<h2>9 \u300c\u5b9a\u65f6\u8865\u5145\u300d\u7a97\u53e3\uff08Windows + miniQMT\uff09<\/h2>\n<h3>9.1 \u6253\u5f00<\/h3>\n<p>\u4e3b\u754c\u9762\u300c\u6570\u636e\u7ba1\u7406\u300d\u2192 \u5de5\u5177\u680f\u53f3\u4fa7\u6a59\u8272\u7684\u300c\u5b9a\u65f6\u8865\u5145\u300d\u6309\u94ae\uff0c\u6253\u5f00\u300c\u5b9a\u65f6\u6570\u636e\u8865\u5145 &#45; \u770b\u6d77\u91cf\u5316\u300d\u7a97\u53e3\u3002\u5b83\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u7a0b\u5e8f\uff1a<\/p>\n<ul>\n<li>\u6253\u5f00\u524d\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u4f1a\u5148\u91ca\u653e\u6570\u636e\u5e93\u8fde\u63a5\uff1b\u5b9a\u65f6\u8865\u5145\u8fd0\u884c\u671f\u95f4\uff0c\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u4e0d\u4f1a\u91cd\u65b0\u8fde\u63a5\uff0c\u4ee5\u514d\u5199\u5e93\u51b2\u7a81\u3002\u9000\u51fa\u5b9a\u65f6\u8865\u5145\u540e\uff0c\u5728\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u70b9\u5237\u65b0\u6062\u590d\u3002<\/li>\n<li>\u5173\u6389\u4e3b\u7a0b\u5e8f\u6216\u6570\u636e\u7ba1\u7406\u7a97\u53e3\uff0c\u5b83\u7167\u6837\u8fd0\u884c\u3002<\/li>\n<li>\u540c\u4e00\u65f6\u95f4\u53ea\u80fd\u5f00\u4e00\u4e2a\u3002<\/li>\n<\/ul>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-sched-window.webp?v=303acc9d\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-sched-window.webp?v=303acc9d\" width=\"1600\" height=\"858\" alt=\"\u300c\u5b9a\u65f6\u6570\u636e\u8865\u5145\u300d\u7a97\u53e3\uff08\u622a\u56fe\u7684\u7535\u8111\u6ca1\u88c5 miniQMT\uff0c\u6240\u4ee5\u5386\u53f2\u884c\u60c5\u6e90\u65c1\u663e\u793a\u300c\u4e0d\u53ef\u7528\u300d\uff09\" loading=\"lazy\"><\/a><figcaption>\u300c\u5b9a\u65f6\u6570\u636e\u8865\u5145\u300d\u7a97\u53e3\uff08\u622a\u56fe\u7684\u7535\u8111\u6ca1\u88c5 miniQMT\uff0c\u6240\u4ee5\u5386\u53f2\u884c\u60c5\u6e90\u65c1\u663e\u793a\u300c\u4e0d\u53ef\u7528\u300d\uff09<\/figcaption><\/figure>\n<div class=\"khq-tn-callout tip\"><div class=\"lbl\">\u63d0\u793a<\/div><p>\u7a97\u53e3\u9ed8\u8ba4\u5c3a\u5bf8\u8f83\u5c0f\uff0c\u63a7\u4ef6\u53ef\u80fd\u6324\u5728\u4e00\u8d77\uff0c\u70b9\u6807\u9898\u680f\u7684\u6700\u5927\u5316\u6309\u94ae\u5373\u53ef\u6b63\u5e38\u663e\u793a\u3002<\/p><\/div>\n\n<h3>9.2 \u8bbe\u7f6e<\/h3>\n<ul>\n<li><strong>\u80a1\u7968\u6c60\u9009\u62e9<\/strong>\uff1a13 \u4e2a\u677f\u5757\u590d\u9009\u6846\uff0c<strong>\u9ed8\u8ba4\u4e00\u4e2a\u90fd\u6ca1\u52fe<\/strong>\uff0c\u5fc5\u987b\u81ea\u5df1\u9009\uff1b\u4e5f\u53ef\u4ee5\u7528\u300c\u81ea\u5b9a\u4e49CSV\u300d\u5bfc\u5165\u80a1\u7968\u5217\u8868\uff08\u7b2c\u4e00\u5217\u662f\u4ee3\u7801\uff09\uff0c\u548c\u677f\u5757\u5408\u5e76\u53bb\u91cd\u3002<\/li>\n<li><strong>\u5468\u671f\u9009\u62e9<\/strong>\uff1a\u65e5\u7ebf\u30011\u5206\u949f\u30015\u5206\u949f\u3001Tick\uff0c\u9ed8\u8ba4\u53ea\u52fe\u65e5\u7ebf\u3002<\/li>\n<li><strong>\u6267\u884c\u65f6\u95f4<\/strong>\uff1a\u9ed8\u8ba4 15:30\u3002<strong>\u5e76\u53d1\u6570<\/strong>\uff1a\u9ed8\u8ba4 2\uff0c\u8c03\u592a\u9ad8\u4f1a\u52a0\u5927 miniQMT \u7684\u538b\u529b\u3002<\/li>\n<li><strong>\u5386\u53f2\u884c\u60c5\u6e90<\/strong>\uff1a\u53ea\u6709\u300cMiniQMT\uff08xtdata\uff09\u300d\u3002\u65c1\u8fb9\u7684\u72b6\u6001\u663e\u793a miniQMT \u662f\u5426\u53ef\u7528\uff0c\u53ef\u4ee5\u70b9\u300c\u91cd\u65b0\u68c0\u6d4b\u300d\u3002<\/li>\n<li><strong>\u590d\u6743\u65b9\u5f0f<\/strong>\uff1a\u4e0d\u590d\u6743\u6570\u636e\u603b\u4f1a\u5199\u5165\uff1b\u53e6\u5916\u9ed8\u8ba4\u5199\u524d\u590d\u6743\u3001\u540e\u590d\u6743\uff0c\u53ef\u52a0\u9009\u7b49\u6bd4\u524d\u590d\u6743\u3001\u7b49\u6bd4\u540e\u590d\u6743\u3002Tick \u4e0d\u5199\u590d\u6743\u3002<\/li>\n<li><strong>\u542f\u52a8\u8bbe\u7f6e<\/strong>\uff1a\u300c\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u672c\u6a21\u5757\u300d\u53ea\u662f\u5f00\u673a\u65f6\u6253\u5f00\u8fd9\u4e2a\u7a97\u53e3\uff1b\u8981\u5f00\u673a\u540e\u81ea\u52a8\u8fdb\u5165\u5b9a\u65f6\u72b6\u6001\uff0c\u8fd8\u8981\u52fe\u300c\u6a21\u5757\u542f\u52a8\u540e\u81ea\u52a8\u5f00\u542f\u5b9a\u65f6\u4e0b\u8f7d\u300d\u3002<\/li>\n<\/ul>\n<div class=\"khq-tn-callout warn\"><div class=\"lbl\">\u6ce8\u610f<\/div><p>\u72b6\u6001\u663e\u793a\u300c\u4e0d\u53ef\u7528\u300d\u65f6\uff0c\u4efb\u52a1\u7167\u6837\u80fd\u5f00\u59cb\uff0c\u4f46\u6bcf\u53ea\u80a1\u7968\u90fd\u4f1a\u5931\u8d25\u5e76\u53cd\u590d\u91cd\u8bd5\uff08\u95f4\u9694 30 \u79d2\u30012 \u5206\u949f\u30015 \u5206\u949f\uff09\uff0c\u975e\u5e38\u8017\u65f6\u3002\u8bf7\u5148\u542f\u52a8\u5e76\u767b\u5f55 miniQMT\u3002<\/p><\/div>\n\n<h3>9.3 \u8fd0\u884c<\/h3>\n<ul>\n<li>\u300c<strong>\u5f00\u59cb\u5b9a\u65f6<\/strong>\u300d\uff1a\u8fdb\u5165\u5b9a\u65f6\u72b6\u6001\uff08\u6309\u94ae\u53d8\u6210\u300c\u505c\u6b62\u5b9a\u65f6\u300d\uff09\uff0c<strong>\u4e0d\u4f1a\u7acb\u523b\u4e0b\u8f7d<\/strong>\uff0c\u6bcf 30 \u79d2\u68c0\u67e5\u4e00\u6b21\uff0c\u5230\u4e86\u6267\u884c\u65f6\u95f4\u624d\u8865\u5f53\u5929\u7684\u6570\u636e\u3002\u975e\u4ea4\u6613\u65e5\u5230\u70b9\u4f1a\u5728\u65e5\u5fd7\u91cc\u5199\u300c\u4e0d\u662f\u4ea4\u6613\u65e5\uff0c\u8df3\u8fc7\u6267\u884c\u300d\u3002<\/li>\n<li>\u300c<strong>\u8865\u5145\u4e00\u6b21<\/strong>\u300d\uff1a\u9a6c\u4e0a\u8865\u4e00\u6b21\u3002\u4ea4\u6613\u65e5 15:00 \u4ee5\u540e\u8865\u5f53\u5929\uff1b\u4ea4\u6613\u65e5 15:00 \u4ee5\u524d\u8865\u4e0a\u4e00\u4e2a\u4ea4\u6613\u65e5\uff1b\u975e\u4ea4\u6613\u65e5\u8865\u6700\u8fd1\u4e00\u4e2a\u4ea4\u6613\u65e5\u3002<\/li>\n<li>\u300c<strong>\u505c\u6b62\u8865\u5145<\/strong>\u300d\uff1a\u4e2d\u6b62\u5f53\u524d\u8fd9\u4e00\u8f6e\uff0c\u5df2\u7ecf\u4e0b\u597d\u7684\u90e8\u5206\u7167\u6837\u5199\u5165\u3002<\/li>\n<\/ul>\n<p>\u53f3\u8fb9\u4e0a\u65b9\u663e\u793a\u72b6\u6001\u3001\u5269\u4f59\u65f6\u95f4\u548c\u4e0b\u6b21\u6267\u884c\u65f6\u95f4\uff1b\u300c\u6bcf\u65e5\u6570\u636e\u8865\u5145\u60c5\u51b5\u300d\u7528\u65e5\u5386\u65b9\u5757\u663e\u793a\u6700\u8fd1\u4e00\u5e74\u6bcf\u5929\u7684\u8865\u5145\u7ed3\u679c\uff08\u5b8c\u6574\u3001\u4e0d\u5b8c\u6574\u3001\u7f3a\u5931\u3001\u4f11\u5e02\/\u672a\u8bb0\u5f55\uff09\uff0c\u9f20\u6807\u60ac\u505c\u53ef\u4ee5\u770b\u8be6\u60c5\uff1b\u4e0b\u65b9\u300c\u8fd0\u884c\u65e5\u5fd7\u300d\u663e\u793a\u6bcf\u53ea\u80a1\u7968\u7684\u7ed3\u679c\uff0c\u53ea\u4fdd\u7559\u6700\u8fd1 100 \u884c\u3002\u5b8c\u6574\u65e5\u5fd7\u5728 <code>\u5b89\u88c5\u76ee\u5f55\\logs\\scheduled_sync.log<\/code>\u3002<\/p>\n\n<h3>9.4 \u6258\u76d8\u4e0e\u5173\u95ed<\/h3>\n<p>\u70b9\u7a97\u53e3\u53f3\u4e0a\u89d2\u7684\u5173\u95ed\uff0c\u4f1a\u95ee\u4f60\u662f\u300c\u6700\u5c0f\u5316\u5230\u6258\u76d8\u300d\u300c\u9000\u51fa\u5b9a\u65f6\u8865\u5145\u300d\u8fd8\u662f\u300c\u53d6\u6d88\u300d\u3002\u9009\u6700\u5c0f\u5316\u540e\uff0c\u5b9a\u65f6\u4efb\u52a1\u5728\u7cfb\u7edf\u6258\u76d8\u91cc\u7ee7\u7eed\u8fd0\u884c\uff1a\u5de6\u952e\u5355\u51fb\u56fe\u6807\u663e\u793a\u6216\u9690\u85cf\u7a97\u53e3\uff0c\u53f3\u952e\u83dc\u5355\u91cc\u80fd\u770b\u72b6\u6001\u3001\u5f00\u59cb\u6216\u505c\u6b62\u5b9a\u65f6\u3001\u8865\u5145\u4e00\u6b21\u3001\u9000\u51fa\u3002<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-sched-close.webp?v=bec37f47\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-sched-close.webp?v=bec37f47\" width=\"712\" height=\"209\" alt=\"\u5173\u95ed\u7a97\u53e3\u65f6\u7684\u9009\u62e9\" loading=\"lazy\"><\/a><figcaption>\u5173\u95ed\u7a97\u53e3\u65f6\u7684\u9009\u62e9<\/figcaption><\/figure>\n\n<h3>9.5 \u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u5230\u70b9\u90a3\u4e00\u5206\u949f\u7535\u8111\u5728\u7761\u7720\u6216\u5173\u673a\uff0c\u5f53\u5929\u5c31\u4e0d\u4f1a\u6267\u884c\u3002\u8bf7\u5728\u7535\u6e90\u8bbe\u7f6e\u91cc\u907f\u514d\u6536\u76d8\u540e\u81ea\u52a8\u7761\u7720\u3002<\/li>\n<li>\u6bcf\u5929\u53ea\u5728\u5230\u70b9\u65f6\u5c1d\u8bd5\u4e00\u6b21\uff0c\u5931\u8d25\uff08\u6bd4\u5982\u6570\u636e\u5e93\u88ab\u5360\u7528\uff09\u540e\u5f53\u5929\u4e0d\u4f1a\u518d\u8bd5\uff0c\u53ef\u4ee5\u624b\u52a8\u70b9\u300c\u8865\u5145\u4e00\u6b21\u300d\u3002<\/li>\n<li>\u5230\u70b9\u6267\u884c\u65f6\uff0c\u4e0d\u8981\u540c\u65f6\u5f00\u7740\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u5199\u6570\u636e\u6216\u8dd1\u56de\u6d4b\uff0c\u4ee5\u514d\u6570\u636e\u5e93\u88ab\u5360\u7528\u3002<\/li>\n<\/ul>\n\n<h2>10 \u547d\u4ee4\u884c\u5b9a\u65f6\uff1a<code>kh data sync<\/code><\/h2>\n<h3>10.1 \u5148\u624b\u52a8\u6267\u884c\u4e00\u6b21<\/h3>\n<pre><code>kh data sync &#45;&#45;source tx<\/code><\/pre>\n<p>\u5b83\u4f1a\u7ed9\u6570\u636e\u76ee\u5f55\u91cc\u5df2\u6709\u7684\u5168\u90e8\u80a1\u7968\u8865\u4eca\u5929\u7684\u6570\u636e\uff08\u5468\u671f\u9ed8\u8ba4\u65e5\u7ebf\uff0c\u53ef\u4ee5\u7528 <code>&#45;&#45;period 1d,5m<\/code> \u6307\u5b9a\u591a\u4e2a\uff09\u3002\u975e\u4ea4\u6613\u65e5\u8fd0\u884c\u4f1a\u663e\u793a\u300c\u4eca\u5929\u4e0d\u662f\u4ea4\u6613\u65e5\uff0c\u8df3\u8fc7\u540c\u6b65\u300d\uff0c\u7136\u540e\u6b63\u5e38\u9000\u51fa\uff1a<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-sync.webp?v=b2e6b47d\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-sync.webp?v=b2e6b47d\" width=\"700\" height=\"110\" alt=\"\u5b9e\u62cd\uff1a\u5468\u516d\u8fd0\u884c kh data sync\uff0c\u63d0\u793a\u300c\u4eca\u5929\u4e0d\u662f\u4ea4\u6613\u65e5\uff0c\u8df3\u8fc7\u540c\u6b65\u300d\" loading=\"lazy\"><\/a><figcaption>\u5b9e\u62cd\uff1a\u5468\u516d\u8fd0\u884c kh data sync\uff0c\u63d0\u793a\u300c\u4eca\u5929\u4e0d\u662f\u4ea4\u6613\u65e5\uff0c\u8df3\u8fc7\u540c\u6b65\u300d<\/figcaption><\/figure>\n<ul>\n<li>\u4e0d\u5199 <code>&#45;&#45;source<\/code> \u65f6\uff0c\u6309\u8bbe\u7f6e\u81ea\u52a8\u9009\u62e9\uff1a\u914d\u7f6e\u4e86 Tushare Token \u5c31\u7528 Tushare\uff1b\u5426\u5219\u5f00\u542f\u4e86 BaoStock \u5c31\u7528 BaoStock\uff1bBaoStock \u672a\u542f\u7528\u65f6\uff0cWindows \u5b89\u88c5\u7248\u4f1a\u9009 miniQMT\uff08\u5b89\u88c5\u7248\u603b\u5e26\u7740 miniQMT \u7684\u63a5\u53e3\u5e93\uff09\u2014\u2014\u8fd9\u65f6 miniQMT \u6ca1\u6709\u8fd0\u884c\u5c31\u4f1a\u62a5\u9519\uff0c\u4e0d\u4f1a\u9000\u56de BaoStock\uff0c\u8bf7\u5199\u660e <code>&#45;&#45;source<\/code>\u3002\u9009\u5b9a\u540e\u4e0d\u4f1a\u81ea\u52a8\u6362\u5230\u522b\u7684\u6570\u636e\u6e90\uff1b\u5199\u4e86 <code>&#45;&#45;source<\/code> \u5c31\u53ea\u7528\u6307\u5b9a\u7684\u90a3\u4e2a\u3002tx \u548c\u540c\u82b1\u987a\u4e0d\u4f1a\u88ab\u81ea\u52a8\u9009\u4e2d\uff0c\u8981\u7528\u8bf7\u660e\u786e\u5199\u51fa\u6765\u3002<\/li>\n<li>\u4e0d\u540c\u6570\u636e\u6e90\u5f53\u5929\u6570\u636e\u7684\u5f00\u653e\u65f6\u95f4\u4e0d\u540c\uff1atx \u8981 16:00 \u4ee5\u540e\u624d\u6709\u5f53\u5929\u6570\u636e\uff0cBaoStock \u4e00\u822c\u66f4\u665a\uff0c\u5efa\u8bae\u665a\u4e0a\u518d\u8865\u3002<\/li>\n<li>\u590d\u6743\u65b9\u5f0f\u56fa\u5b9a\uff1a\u7528 tx \u65f6\u53ea\u5199\u4e0d\u590d\u6743\u4ef7\uff0c\u5176\u4ed6\u6570\u636e\u6e90\u53ea\u5199\u524d\u590d\u6743\u4ef7\u3002\u9700\u8981 tx \u7684\u590d\u6743\u4ef7\u65f6\uff0c\u8865\u5b8c\u518d\u8fd0\u884c\u4e00\u6b21 <code>kh data download &#45;&#45;source tx &#45;&#45;stocks \u2026 &#45;&#45;adj front<\/code>\u3002<\/li>\n<li>\u5e93\u91cc\u53ea\u8981\u6709\u4e00\u53ea tx \u4e0d\u652f\u6301\u7684\u54c1\u79cd\uff08\u6df1\u5e02 ETF\u3001\u53ef\u8f6c\u503a\u7b49\uff09\uff0c<code>&#45;&#45;source tx<\/code> \u4f1a\u6574\u6279\u5931\u8d25\uff0c\u8fd9\u65f6\u8bf7\u6362\u6570\u636e\u6e90\u3002<\/li>\n<\/ul>\n<h3>10.2 \u8ba9\u5b83\u6bcf\u5929\u81ea\u52a8\u8dd1<\/h3>\n<pre><code>kh data sync &#45;&#45;schedule 16:30 &#45;&#45;source tx<\/code><\/pre>\n<p>\u7ec8\u7aef\u663e\u793a\u300c\u5b9a\u65f6\u540c\u6b65\u6a21\u5f0f: \u6bcf\u4e2a\u4ea4\u6613\u65e5 16:30 \u6267\u884c\u300d\u300c\u6309 Ctrl+C \u9000\u51fa\u300d\u540e\u4e00\u76f4\u6302\u7740\uff0c\u5468\u4e00\u5230\u5468\u4e94\u5230\u70b9\u6267\u884c\u4e00\u6b21\u3002\u65f6\u95f4\u8981\u5199\u6210\u4e24\u4f4d\u6570\u7684 <code>HH:MM<\/code>\uff08\u5199 <code>9:30<\/code> \u4f1a\u62a5\u9519\uff09\u3002\u7ec8\u7aef\u5173\u6389\u5c31\u505c\u4e86\uff0c\u4e5f\u4e0d\u4f1a\u8865\u8dd1\u9519\u8fc7\u7684\u65e5\u5b50\u3002<\/p>\n<p>Windows \u5b89\u88c5\u7248\u5df2\u7ecf\u5e26\u4e86\u9700\u8981\u7684 <code>schedule<\/code> \u5e93\u3002\u7528 pip \u6216 pipx \u5b89\u88c5\u7684\uff08Linux\uff09\u9700\u8981\u53e6\u5916\u88c5\uff1a<code>pipx inject khquant schedule<\/code>\u3002<\/p>\n\n<h2>11 \u7528\u7cfb\u7edf\u8ba1\u5212\u4efb\u52a1\u4ee3\u66ff\u5e38\u9a7b\u7ec8\u7aef\uff08\u63a8\u8350\uff09<\/h2>\n<p>\u6bd4\u8d77\u4e00\u76f4\u5f00\u7740\u4e00\u4e2a\u7ec8\u7aef\uff0c\u66f4\u7a33\u59a5\u7684\u505a\u6cd5\u662f\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u6bcf\u5929\u5b9a\u65f6\u8fd0\u884c\u4e00\u6b21 <code>kh data sync<\/code>\u3002<code>kh<\/code> \u5168\u7a0b\u4e0d\u9700\u8981\u4ea4\u4e92\uff0c\u6210\u529f\uff08\u6216\u975e\u4ea4\u6613\u65e5\u8df3\u8fc7\uff09\u9000\u51fa\u7801\u4e3a 0\uff0c\u5931\u8d25\u4e3a 1\u3002<\/p>\n<h3>11.1 Windows \u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f<\/h3>\n<p>\u5728\u300c\u547d\u4ee4\u63d0\u793a\u7b26\u300d\uff08cmd\uff0c\u4e0d\u662f PowerShell\uff09\u91cc\u8fd0\u884c\uff08\u6bcf\u4e2a\u5de5\u4f5c\u65e5 16:30\uff0c\u65e5\u5fd7\u8ffd\u52a0\u5230\u7528\u6237\u76ee\u5f55\u4e0b\u7684 <code>kh_sync.log<\/code>\uff09\uff1a<\/p>\n<pre><code>schtasks \/Create \/TN \"khQuant \u6bcf\u65e5\u8865\u6570\u636e\" \/SC WEEKLY \/D MON,TUE,WED,THU,FRI \/ST 16:30 \/TR \"cmd \/c kh data sync &#45;&#45;source tx >> \\\"%USERPROFILE%\\kh_sync.log\\\" 2>&1\"<\/code><\/pre>\n<ul>\n<li>\u8981\u7528\u88c5\u4e86 khQuant\u3001\u505a\u8fc7\u8bbe\u7f6e\u7684\u90a3\u4e2a Windows \u8d26\u6237\u521b\u5efa\uff0c\u56e0\u4e3a\u8bbe\u7f6e\u6587\u4ef6\u662f\u6309\u7528\u6237\u5b58\u653e\u7684\u3002<\/li>\n<li>\u5b89\u88c5\u65f6\u8981\u52fe\u8fc7\u300c\u6dfb\u52a0 kh \u547d\u4ee4\u5230\u7cfb\u7edf PATH\u300d\uff1b\u6ca1\u52fe\u7684\u8bdd\u628a <code>kh<\/code> \u6362\u6210 <code>kh.exe<\/code> \u7684\u5b8c\u6574\u8def\u5f84\u3002<\/li>\n<li>\u4e5f\u53ef\u4ee5\u6253\u5f00\u300c\u4efb\u52a1\u8ba1\u5212\u7a0b\u5e8f\u300d\u2192\u300c\u521b\u5efa\u57fa\u672c\u4efb\u52a1\u300d\u7528\u5411\u5bfc\u5b8c\u6210\uff0c\u64cd\u4f5c\u9009\u300c\u542f\u52a8\u7a0b\u5e8f\u300d\uff0c\u7a0b\u5e8f\u586b <code>cmd<\/code>\uff0c\u53c2\u6570\u586b <code>\/c<\/code> \u540e\u9762\u90a3\u4e00\u4e32\u3002<\/li>\n<li>\u5230\u70b9\u65f6\u5982\u679c\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u6216\u56de\u6d4b\u6b63\u5360\u7528\u7740\u6570\u636e\u5e93\uff0c\u5199\u5165\u4f1a\u7b49\u5f85\u6700\u591a 10 \u5206\u949f\uff0c\u4ecd\u4e0d\u884c\u5c31\u5931\u8d25\u9000\u51fa\u3002<\/li>\n<\/ul>\n<h3>11.2 macOS \u548c Linux<\/h3>\n<p>Linux \u7528 cron\uff0c\u4f8b\u5982 <code>crontab -e<\/code> \u91cc\u52a0\u4e00\u884c\uff08\u5de5\u4f5c\u65e5 16:30\uff09\uff1a<\/p>\n<pre><code>30 16 * * 1-5 &#36;HOME\/.local\/bin\/kh data sync &#45;&#45;source tx &gt;&gt; &#36;HOME\/kh_sync.log 2&gt;&amp;1<\/code><\/pre>\n<p>macOS \u4e5f\u53ef\u4ee5\u7528 cron\uff08\u6216 launchd\uff09\uff0c\u628a\u8def\u5f84\u6362\u6210 <code>\/usr\/local\/bin\/kh<\/code>\u3002cron \u6309\u7cfb\u7edf\u65f6\u533a\u89e6\u53d1\uff0c\u4e91\u670d\u52a1\u5668\u5e38\u662f UTC\uff0c\u8981\u6362\u7b97\u6210\u5317\u4eac\u65f6\u95f4\u3002\u8be6\u89c1 <a href=\"https:\/\/khsci.com\/khQuant\/linux\/\">2.5<\/a>\u3002<\/p>\n\n<h2>12 \u7f3a\u53e3\u626b\u63cf\uff1a<code>kh data scan<\/code><\/h2>\n<h3>12.1 \u626b\u63cf<\/h3>\n<pre><code>kh data scan &#45;&#45;start 20260901<\/code><\/pre>\n<p>\u6309\u4ea4\u6613\u65e5\u5386\u9010\u65e5\u68c0\u67e5\u5e93\u91cc\u6bcf\u53ea\u80a1\u7968\u5728\u533a\u95f4\u5185\u6709\u6ca1\u6709\u6570\u636e\u3002\u6ca1\u6709\u7f3a\u53e3\u65f6\u662f\u8fd9\u6837\uff1a<\/p>\n<figure class=\"khq-tn-fig\"><a href=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-scan.webp?v=450d09d1\" target=\"_blank\" rel=\"noopener\" title=\"\u70b9\u51fb\u67e5\u770b\u539f\u56fe\"><img decoding=\"async\" src=\"https:\/\/khsci.com\/khQuant\/wp-content\/uploads\/tutorial-new\/v3\/v3-cli-scan.webp?v=450d09d1\" width=\"700\" height=\"134\" alt=\"\u5b9e\u62cd\uff1akh data scan \u6ca1\u6709\u53d1\u73b0\u7f3a\u53e3\" loading=\"lazy\"><\/a><figcaption>\u5b9e\u62cd\uff1akh data scan \u6ca1\u6709\u53d1\u73b0\u7f3a\u53e3<\/figcaption><\/figure>\n<p>\u6709\u7f3a\u53e3\u65f6\u4f1a\u9010\u53ea\u5217\u51fa\uff0c\u5e76\u63d0\u793a\u7528 <code>&#45;&#45;fix<\/code> \u8865\uff1a<\/p>\n<pre><code>  &gt; \u626b\u63cf 1d \u6570\u636e\u5b8c\u6574\u6027...\n  WARN 000300.SH  \u7f3a\u5931 3 \u4e2a\u4ea4\u6613\u65e5\n  &gt; \u5b8c\u6574: 0 | \u6709\u7f3a\u53e3: 1 | \u626b\u63cf\u5931\u8d25: 0\n  \u4f7f\u7528 &#45;&#45;fix \u81ea\u52a8\u8865\u5145\u7f3a\u5931\u6570\u636e<\/code><\/pre>\n<ul>\n<li><code>&#45;&#45;period<\/code>\uff1a\u8981\u626b\u7684\u5468\u671f\uff0c\u9ed8\u8ba4\u65e5\u7ebf\uff0c\u4e00\u6b21\u53ea\u80fd\u626b\u4e00\u4e2a\u3002<\/li>\n<li><code>&#45;&#45;stocks<\/code>\uff1a\u53ea\u626b\u6307\u5b9a\u80a1\u7968\uff0c\u4ee3\u7801\u8bf7\u5e26\u540e\u7f00\uff08\u4e0d\u5e26\u540e\u7f00\u65f6 <code>000300<\/code> \u4f1a\u88ab\u5f53\u6210\u6df1\u5e02\u4ee3\u7801\uff09\u3002<\/li>\n<li><code>&#45;&#45;start<\/code>\u3001<code>&#45;&#45;end<\/code>\uff1a\u626b\u63cf\u533a\u95f4\uff0c\u9ed8\u8ba4 2020-01-01 \u5230\u4eca\u5929\u3002<\/li>\n<li>\u626b\u63cf\u5168\u7a0b\u53ea\u8bfb\uff0c\u4e0d\u4f1a\u6321\u4f4f\u5176\u4ed6\u7a0b\u5e8f\u5199\u5e93\u3002<\/li>\n<\/ul>\n<h3>12.2 \u8865\u7f3a<\/h3>\n<pre><code>kh data scan &#45;&#45;start 20260901 &#45;&#45;fix &#45;&#45;source tx<\/code><\/pre>\n<p>\u5148\u68c0\u67e5\u6570\u636e\u6e90\u53ef\u7528\uff0c\u518d\u628a\u6709\u7f3a\u53e3\u7684\u80a1\u7968\u6574\u6bb5\u91cd\u65b0\u4e0b\u8f7d\uff08\u589e\u91cf\u65b9\u5f0f\uff0c\u5df2\u6709\u7684\u6570\u636e\u4e0d\u4f1a\u88ab\u6539\uff09\u3002\u548c <code>sync<\/code> \u4e00\u6837\uff0c\u590d\u6743\u65b9\u5f0f\u56fa\u5b9a\uff1atx \u53ea\u8865\u4e0d\u590d\u6743\u4ef7\u3002\u8865\u5b8c\u540e\u5982\u679c\u56de\u6d4b\u8981\u7528\u524d\u590d\u6743\uff0c\u518d\u8fd0\u884c\u4e00\u6b21 <code>kh data download &#45;&#45;source tx &#45;&#45;stocks \u2026 &#45;&#45;adj front &#45;&#45;start \u2026<\/code> \u628a\u524d\u590d\u6743\u8865\u9f50\u3002<\/p>\n<h3>12.3 \u5224\u65ad\u89c4\u5219\u548c\u5c40\u9650<\/h3>\n<ul>\n<li>\u53ea\u770b\u67d0\u5929<strong>\u6709\u6ca1\u6709\u6570\u636e<\/strong>\uff0c\u4e0d\u770b\u5f53\u5929\u7684\u6761\u6570\uff0c\u6240\u4ee5\u5206\u949f\u7ebf\u5c11\u4e86\u51e0\u6839\u4e0d\u7b97\u7f3a\u53e3\u3002\u8981\u6309\u6761\u6570\u68c0\u67e5\uff0c\u7528\u6570\u636e\u7ba1\u7406\u7a97\u53e3\u7684\u300c\u6570\u636e\u5b8c\u6574\u6027\u68c0\u67e5\u300d\uff08\u89c1 <a href=\"https:\/\/khsci.com\/khQuant\/data-maintenance\/\">1.11<\/a>\uff09\u3002<\/li>\n<li>\u65b0\u80a1\u4e0a\u5e02\u524d\u3001\u505c\u724c\u7684\u65e5\u5b50\u3001\u4ece\u6765\u6ca1\u4e0b\u8f7d\u8fc7\u7684\u5468\u671f\uff0c\u90fd\u4f1a\u88ab\u7b97\u4f5c\u7f3a\u53e3\u3002<\/li>\n<li>\u6709\u7f3a\u53e3\u65f6\u9000\u51fa\u7801\u4ecd\u662f 0\uff1b\u6709\u80a1\u7968\u626b\u63cf\u5931\u8d25\uff08\u6bd4\u5982 <code>&#45;&#45;stocks<\/code> \u91cc\u5199\u4e86\u5e93\u91cc\u6ca1\u6709\u7684\u4ee3\u7801\uff09\u65f6\u4e3a 1\u3002<\/li>\n<\/ul>\n\n<h2>13 \u66f4\u65b0\u677f\u5757\u6210\u5206\u80a1<\/h2>\n<p>\u9884\u8bbe\u677f\u5757\uff08\u6caa\u6df1300\u3001\u4e2d\u8bc1500 \u7b49\uff09\u7684\u6210\u5206\u80a1\u4f1a\u53d8\u5316\u3002<code>kh data update-pool<\/code> \u4f1a\u91cd\u65b0\u751f\u6210\u8fd9\u4e9b\u677f\u5757\u7684\u80a1\u7968\u5217\u8868\uff1aWindows \u4e0a\u4f18\u5148\u4ece miniQMT \u83b7\u53d6\uff0c\u53d6\u4e0d\u5230\u65f6\u6539\u7528 BaoStock\uff1bMac\u3001Linux \u4e0a\u7528 BaoStock\u3002BaoStock \u62ff\u4e0d\u5230\u53ef\u8f6c\u503a\u3001ETF\u3001LOF \u7684\u5217\u8868\uff0c\u8fd9\u51e0\u4e2a\u677f\u5757\u4f1a\u4fdd\u6301\u539f\u6837\u3002<\/p>\n<p>Windows \u56fe\u5f62\u754c\u9762\u91cc\u4e5f\u6709\u4e00\u4e2a\u5165\u53e3\uff1a\u300c\u8bbe\u7f6e \u2192 \u57fa\u672c\u8bbe\u7f6e \u2192 \u66f4\u65b0\u6210\u5206\u80a1\u5217\u8868\u300d\u3002\u5b83\u4f18\u5148\u7528\u540c\u82b1\u987a\uff08\u6276\u6447\uff09\u63a5\u53e3\uff0c\u6ca1\u914d Key \u65f6\u53ef\u4ee5\u9009\u62e9\u6539\u7528 BaoStock\u3002macOS \u7248\u6ca1\u6709\u8fd9\u4e2a\u6309\u94ae\u3002<\/p>\n\n<h2>\u5e38\u89c1\u95ee\u9898<\/h2>\n<p class=\"q\"><strong>\u95ee\uff1atx \u4e0b\u8f7d\u7684\u5206\u949f\u7ebf\u53ea\u6709\u4e00\u4e2a\u6708\uff1f<\/strong><br>\n\u7b54\uff1a\u63a5\u53e3\u53ea\u63d0\u4f9b\u7ea6\u8fd1 1 \u4e2a\u6708\u7684 1 \u5206\u949f\u7ebf\u3001\u7ea6\u8fd1\u534a\u5e74\u7684 5 \u5206\u949f\u7ebf\u3002\u9700\u8981\u66f4\u957f\u7684\u5206\u949f\u7ebf\uff0c\u7528 miniQMT\u3001HTTP \u6865\u63a5\u6216 Tushare\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1a\u7528 tx \u4e0b\u8f7d\u65f6\u63d0\u793a\u300c\u65e0\u6cd5\u5f00\u59cb\u4e0b\u8f7d\u300d\uff1f<\/strong><br>\n\u7b54\uff1a\u80a1\u7968\u6c60\u91cc\u6709 tx \u4e0d\u652f\u6301\u7684\u54c1\u79cd\uff08\u6df1\u5e02 ETF\u3001\u53ef\u8f6c\u503a\u7b49\uff09\u3002\u4ece\u80a1\u7968\u6c60\u91cc\u53bb\u6389\u8fd9\u4e9b\u4ee3\u7801\uff0c\u6216\u6539\u7528\u5176\u4ed6\u6570\u636e\u6e90\u4e0b\u8f7d\u5b83\u4eec\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1a\u540c\u82b1\u987a\u4e0b\u8f7d\u6caa\u6df1 300 \u4e0b\u6210\u4e86\u522b\u7684\u4e1c\u897f\uff1f<\/strong><br>\n\u7b54\uff1a\u4ee3\u7801\u8981\u5199 <code>000300.SH<\/code>\u3002\u53ea\u5199 <code>000300<\/code> \u4f1a\u88ab\u5f53\u6210\u6df1\u5e02\u4ee3\u7801\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1aMac \u4e0a\u770b\u4e0d\u5230\u300cMiniQMT\u5bfc\u5165\u300d\u548c\u300c\u5b9a\u65f6\u8865\u5145\u300d\uff1f<\/strong><br>\n\u7b54\uff1a\u8fd9\u4e24\u4e2a\u53ea\u6709 Windows \u7248\u6709\u3002\u8981\u7528 miniQMT \u7684\u6570\u636e\uff0c\u8bf7\u7528 HTTP \u6865\u63a5\uff08\u7b2c 4 \u8282\uff09\uff1b\u5b9a\u65f6\u8865\u6570\u636e\u8bf7\u7528 <code>kh data sync<\/code>\uff08\u7b2c 10 \u8282\uff09\u3002<\/p>\n\n<p class=\"q\"><strong>\u95ee\uff1a\u5230\u70b9\u4e86\u5374\u6ca1\u6267\u884c\uff1f<\/strong><br>\n\u7b54\uff1a\u68c0\u67e5\u90a3\u4e00\u523b\u7535\u8111\u662f\u5426\u5728\u7761\u7720\uff1b\u7a97\u53e3\u7248\u8981\u70b9\u8fc7\u300c\u5f00\u59cb\u5b9a\u65f6\u300d\u4e14\u7a97\u53e3\u6216\u6258\u76d8\u8fd8\u5728\uff1b\u547d\u4ee4\u884c\u7248\u7684\u7ec8\u7aef\u8981\u4e00\u76f4\u5f00\u7740\u3002\u9519\u8fc7\u7684\u65e5\u5b50\u7528 <code>kh data scan &#45;&#45;fix<\/code> \u8865\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1a\u7528 tx \u8865\u6570\u636e\u62a5 <code>NO_CLOSED_SESSION<\/code>\uff1f<\/strong><br>\n\u7b54\uff1atx \u5f53\u5929\u6570\u636e 16:00 \u4ee5\u540e\u624d\u5f00\u653e\uff0c\u628a\u65f6\u95f4\u5b9a\u5728 16:00 \u4ee5\u540e\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1a\u7528 tx \u8865\u6570\u636e\u62a5 <code>UNSUPPORTED_SYMBOL<\/code>\uff1f<\/strong><br>\n\u7b54\uff1a\u5e93\u91cc\u6709 tx \u4e0d\u652f\u6301\u7684\u54c1\u79cd\uff08\u6df1\u5e02 ETF\u3001\u53ef\u8f6c\u503a\u7b49\uff09\u3002\u6539\u7528\u5176\u4ed6\u6570\u636e\u6e90\u8865\u3002<\/p>\n<p class=\"q\"><strong>\u95ee\uff1a\u63d0\u793a\u6570\u636e\u5e93\u88ab\u5360\u7528\uff1f<\/strong><br>\n\u7b54\uff1a\u8865\u6570\u636e\u65f6\u5173\u6389\u6570\u636e\u7ba1\u7406\u7a97\u53e3\uff0c\u4e0d\u8981\u540c\u65f6\u8dd1\u56de\u6d4b\u3002<\/p>\n\n<p style=\"color:#888;font-size:.9em;\">\u672c\u7bc7\u57fa\u4e8e V3.4.1.10 \u7f16\u5199\u3002<\/p>\n\n<nav class=\"khq-tn-nav\"><a class=\"prev\" href=\"https:\/\/khsci.com\/khQuant\/cli\/\"><span>\u4e0a\u4e00\u7bc7<\/span>2.2 \u547d\u4ee4\u884c\u6a21\u5f0f\u4e0e AI \u667a\u80fd\u7b56\u7565\u7814\u7a76<\/a><a class=\"next\" href=\"https:\/\/khsci.com\/khQuant\/macos\/\"><span>\u4e0b\u4e00\u7bc7<\/span>2.4 macOS<\/a><\/nav>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u7528\u7248\u672c V3 WindowsmacOSLinux\uff08\u547d\u4ee4\u884c\uff09 \u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u89c6\u9891\u64ad\u653e\uff0c\u53ef\u4ee5\u4e0b\u8f7d\u89c6\u9891\u89c2\u770b\u3002 \u672c [&hellip;]<\/p>\n","protected":false},"author":1,"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-792","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages\/792","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"}],"author":[{"embeddable":true,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/comments?post=792"}],"version-history":[{"count":16,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages\/792\/revisions"}],"predecessor-version":[{"id":1371,"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/pages\/792\/revisions\/1371"}],"wp:attachment":[{"href":"https:\/\/khsci.com\/khQuant\/wp-json\/wp\/v2\/media?parent=792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}