{"id":10895,"date":"2026-04-22T17:54:58","date_gmt":"2026-04-22T09:54:58","guid":{"rendered":"https:\/\/blog.alltick.co\/zh-CN\/?p=10895"},"modified":"2026-04-22T17:54:58","modified_gmt":"2026-04-22T09:54:58","slug":"%e7%b2%be%e9%80%9a%e5%b8%82%e5%9c%ba%e6%95%b0%e6%8d%ae%ef%bc%9aalltick-%e5%8e%86%e5%8f%b2-k-%e7%ba%bf-kline-api-%e5%ae%8c%e5%85%a8%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/blog.alltick.co\/zh-CN\/%e7%b2%be%e9%80%9a%e5%b8%82%e5%9c%ba%e6%95%b0%e6%8d%ae%ef%bc%9aalltick-%e5%8e%86%e5%8f%b2-k-%e7%ba%bf-kline-api-%e5%ae%8c%e5%85%a8%e6%8c%87%e5%8d%97\/","title":{"rendered":"\u7cbe\u901a\u5e02\u573a\u6570\u636e\uff1aAllTick \u5386\u53f2 K \u7ebf (Kline) API \u5b8c\u5168\u6307\u5357"},"content":{"rendered":"\n<p>\u5bf9\u4e8e\u6784\u5efa\u91d1\u878d\u770b\u677f\u6216\u91cf\u5316\u4ea4\u6613\u673a\u5668\u4eba\u7684\u5f00\u53d1\u8005\u548c\u4ea4\u6613\u8005\u800c\u8a00\uff0c\u53ef\u9760\u7684<strong>\u5386\u53f2 K \u7ebf (Kline) \u6570\u636e<\/strong>\u662f\u6280\u672f\u5206\u6790\u7684\u57fa\u77f3\u3002\u65e0\u8bba\u60a8\u662f\u5728\u8fdb\u884c\u7b56\u7565\u56de\u6d4b\u8fd8\u662f\u53ef\u89c6\u5316\u5e02\u573a\u8d8b\u52bf\uff0c<strong>Alltick API<\/strong> \u90fd\u63d0\u4f9b\u4e86\u4e00\u4e2a\u9ad8\u6548\u7684 REST \u63a5\u53e3\uff0c\u652f\u6301\u8de8\u8d44\u4ea7\u7c7b\u522b\u7684\u5386\u53f2\u6570\u636e\u83b7\u53d6\u3002<\/p>\n\n\n\n<p>\u672c\u6307\u5357\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u8c03\u7528 Alltick K \u7ebf\u63a5\u53e3\u3001\u53c2\u6570\u8981\u6c42\uff0c\u4ee5\u53ca\u4e0d\u540c\u8ba2\u9605\u8ba1\u5212\u5bf9\u6570\u636e\u6df1\u5ea6\u7684\u5f71\u54cd\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8be6\u89e3 Alltick K \u7ebf\u63a5\u53e3<\/h3>\n\n\n\n<p>\u83b7\u53d6\u5386\u53f2 K \u7ebf\u6570\u636e\u7684\u6838\u5fc3\u7aef\u70b9\uff08Endpoint\uff09\u4e3a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/quote.alltick.io\/quote-b-api\/kline\n<\/div><\/figure>\n\n\n\n<p>\u8be5\u63a5\u53e3\u91c7\u7528 <strong>GET \u65b9\u6cd5<\/strong>\u3002\u4e0e\u4f20\u7edf\u7684\u7b80\u5355\u952e\u503c\u5bf9 URL \u4e0d\u540c\uff0cAlltick \u8981\u6c42\u5c06\u53c2\u6570\u5c01\u88c5\u5728\u4e00\u4e2a <strong>JSON \u67e5\u8be2\u5b57\u7b26\u4e32<\/strong>\u4e2d\u8fdb\u884c\u4f20\u9012\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8bf7\u6c42\u7ed3\u6784\u4e0e\u53c2\u6570\u8bf4\u660e<\/h3>\n\n\n\n<p>\u8981\u6210\u529f\u8c03\u7528 API\uff0c\u60a8\u9700\u8981\u63d0\u4f9b\u8eab\u4efd\u9a8c\u8bc1 <code>token<\/code> \u548c\u4e00\u4e2a <code>query<\/code> \u5bf9\u8c61\u3002\u4ee5\u4e0b\u662f\u6838\u5fc3\u53c2\u6570\u7684\u8be6\u7ec6\u8bf4\u660e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>\u53c2\u6570\u540d\u79f0<\/strong><\/td><td><strong>\u7c7b\u578b<\/strong><\/td><td><strong>\u63cf\u8ff0<\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>token<\/strong><\/td><td>String<\/td><td>\u60a8\u7684\u552f\u4e00 API \u8bbf\u95ee\u5bc6\u94a5\uff08\u9274\u6743\u4ee4\u724c\uff09\u3002<\/td><\/tr><tr><td><strong>code<\/strong><\/td><td>String<\/td><td>\u8d44\u4ea7\u4ee3\u7801\uff08\u4f8b\u5982\uff1a\u52a0\u5bc6\u8d27\u5e01 <code>BTCUSDT<\/code>\uff0c\u80a1\u7968 <code>AAPL<\/code>\uff09\u3002<\/td><\/tr><tr><td><strong>kline_type<\/strong><\/td><td>Integer<\/td><td>K \u7ebf\u5468\u671f\u7c7b\u578b\uff08\u4f8b\u5982\uff1a<code>8<\/code> \u901a\u5e38\u4ee3\u8868\u201c\u65e5\u7ebf\u201d\u7ea7\u522b\uff09\u3002<\/td><\/tr><tr><td><strong>kline_timestamp_end<\/strong><\/td><td>Integer<\/td><td>\u67e5\u8be2\u8303\u56f4\u7684\u622a\u6b62 Unix \u65f6\u95f4\u6233\u3002<\/td><\/tr><tr><td><strong>query_kline_num<\/strong><\/td><td>Integer<\/td><td>\u5355\u6b21\u8bf7\u6c42\u83b7\u53d6\u7684 K \u7ebf\u6839\u6570\u3002<\/td><\/tr><tr><td><strong>adjust_type<\/strong><\/td><td>Integer<\/td><td>\u4ef7\u683c\u590d\u6743\u7c7b\u578b\uff08\u4f8b\u5982\uff1a\u7528\u4e8e\u5904\u7406\u80a1\u7968\u62c6\u5206\u6216\u5206\u7ea2\uff09\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u4e13\u4e1a\u63d0\u793a\uff1a<\/strong> \u8bf7\u786e\u4fdd <code>kline_timestamp_end<\/code> \u4f7f\u7528\u6b63\u786e\u7684 Unix \u65f6\u95f4\u6233\u683c\u5f0f\uff08\u79d2\uff09\uff0c\u4ee5\u907f\u514d\u8fd4\u56de\u7a7a\u6570\u636e\u6216\u540c\u6b65\u9519\u8bef\u3002<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u8ba2\u9605\u65b9\u6848\u4e0e\u6570\u636e\u6743\u9650<\/h3>\n\n\n\n<p>\u60a8\u80fd\u591f\u8ffd\u6eaf\u7684\u5386\u53f2\u6570\u636e\u65f6\u957f\uff08\u56de\u6eaf\u6df1\u5ea6\uff09\u53d6\u51b3\u4e8e\u60a8\u7684 Alltick \u8ba2\u9605\u5c42\u7ea7\u3002\u5728\u6784\u5efa\u6570\u636e\u6d41\u6c34\u7ebf\u4e4b\u524d\uff0c\u8bf7\u6839\u636e\u4ee5\u4e0b\u6807\u51c6\u6838\u5b9e\u60a8\u7684\u9700\u6c42\uff1a<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. \u901a\u7528\u591a\u8d44\u4ea7\u8ba1\u5212<\/h4>\n\n\n\n<p>\u8fd9\u4e9b\u65b9\u6848\u975e\u5e38\u9002\u5408\u5e38\u89c4\u5e02\u573a\u5206\u6790\u548c\u52a0\u5bc6\u8d27\u5e01\u9879\u76ee\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u514d\u8d39\u7248 (Free) \u4e0e \u57fa\u7840\u7248 (Basic)\uff1a<\/strong> \u652f\u6301\u83b7\u53d6\u6700\u591a <strong>1 \u5e74<\/strong> \u7684\u5386\u53f2\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u9ad8\u7ea7\u7248 (Premium)\uff1a<\/strong> \u652f\u6301\u83b7\u53d6\u6700\u591a <strong>3 \u5e74<\/strong> \u7684\u5386\u53f2\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u4e13\u4e1a\u7248 (Professional)\uff1a<\/strong> \u652f\u6301\u83b7\u53d6\u6700\u591a <strong>5 \u5e74<\/strong> \u7684\u5386\u53f2\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2. \u533a\u57df\u80a1\u7968\u8ba1\u5212 (\u6e2f\u80a1\/A\u80a1\/\u7f8e\u80a1)<\/h4>\n\n\n\n<p>\u5982\u679c\u60a8\u8ba2\u9605\u7684\u662f\u7279\u5b9a\u7684\u533a\u57df\u80a1\u7968\u6570\u636e\u5305\uff0c\u5386\u53f2\u6df1\u5ea6\u901a\u5e38\u9650\u5236\u4e3a<strong>\u6700\u8fd1\u7684 500 \u6839 K \u7ebf<\/strong>\u3002\u8fd9\u5bf9\u4e8e\u77ed\u7ebf\u6ce2\u6bb5\u4ea4\u6613\u548c\u65e5\u5185\u5206\u6790\u6765\u8bf4\u5df2\u7ecf\u8db3\u591f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u9009\u62e9 Alltick \u83b7\u53d6\u5386\u53f2\u6570\u636e\uff1f<\/h3>\n\n\n\n<p>\u4f7f\u7528 <code>quote-b-api\/kline<\/code> \u63a5\u53e3\u4e3a\u91d1\u878d\u79d1\u6280\u5f00\u53d1\u8005\u5e26\u6765\u8bf8\u591a\u4f18\u52bf\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u4e00\u81f4\u6027\uff1a<\/strong> \u83b7\u5f97\u4e0e\u673a\u6784\u7ea7\u5e73\u53f0\u540c\u7b49\u9ad8\u8d28\u91cf\u7684\u6570\u636e\u6e90\u3002<\/li>\n\n\n\n<li><strong>\u9ad8\u6269\u5c55\u6027\uff1a<\/strong> \u968f\u7740\u56de\u6d4b\u9700\u6c42\u7684\u589e\u957f\uff0c\u652f\u6301\u4ece 1 \u5e74\u6df1\u5ea6\u65e0\u7f1d\u5347\u7ea7\u81f3 5 \u5e74\u3002<\/li>\n\n\n\n<li><strong>\u591a\u8d44\u4ea7\u8986\u76d6\uff1a<\/strong> \u7edf\u4e00\u7684\u63a5\u53e3\u7ed3\u6784\u5373\u53ef\u5904\u7406\u5916\u6c47\u3001\u52a0\u5bc6\u8d27\u5e01\u53ca\u5168\u7403\u80a1\u7968\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u51c6\u5907\u597d\u5f00\u59cb\u7f16\u7a0b\u4e86\u5417\uff1f<\/strong> \u7acb\u5373\u767b\u5f55\u60a8\u7684 Alltick \u63a7\u5236\u53f0\u83b7\u53d6 API Token\uff0c\u5c06\u5b9e\u65f6\u4e0e\u5386\u53f2\u5e02\u573a\u6570\u636e\u96c6\u6210\u5230\u60a8\u7684\u5e94\u7528\u4e2d\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8e\u6784\u5efa\u91d1\u878d\u770b\u677f\u6216\u91cf\u5316\u4ea4\u6613\u673a\u5668\u4eba\u7684\u5f00\u53d1\u8005\u548c\u4ea4\u6613\u8005\u800c\u8a00\uff0c\u53ef\u9760\u7684\u5386\u53f2 K \u7ebf (Kline) \u6570\u636e\u662f\u6280\u672f\u5206\u6790\u7684\u57fa\u77f3&#8230;<\/p>\n","protected":false},"author":4,"featured_media":10897,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-10895","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tick-data-wiki"],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/10895","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/comments?post=10895"}],"version-history":[{"count":1,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/10895\/revisions"}],"predecessor-version":[{"id":10898,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/posts\/10895\/revisions\/10898"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/media\/10897"}],"wp:attachment":[{"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/media?parent=10895"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/categories?post=10895"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alltick.co\/zh-CN\/wp-json\/wp\/v2\/tags?post=10895"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}