{"id":537,"date":"2026-05-22T10:03:47","date_gmt":"2026-05-22T10:03:47","guid":{"rendered":"https:\/\/blog.alltick.co\/ja-jp\/?p=537"},"modified":"2026-05-22T10:03:47","modified_gmt":"2026-05-22T10:03:47","slug":"%e5%a4%96%e6%b1%87%e5%b8%82%e5%9c%ba%e3%83%87%e3%83%bc%e3%82%bf-api-websocket-%e3%81%a8-rest%ef%bc%9a%e3%81%a9%e3%81%a1%e3%82%89%e3%81%8c%e3%82%b9%e3%82%ad%e3%83%a3%e3%83%ab%e3%83%94%e3%83%b3%e3%82%b0","status":"publish","type":"post","link":"https:\/\/blog.alltick.co\/ja-jp\/%e5%a4%96%e6%b1%87%e5%b8%82%e5%9c%ba%e3%83%87%e3%83%bc%e3%82%bf-api-websocket-%e3%81%a8-rest%ef%bc%9a%e3%81%a9%e3%81%a1%e3%82%89%e3%81%8c%e3%82%b9%e3%82%ad%e3%83%a3%e3%83%ab%e3%83%94%e3%83%b3%e3%82%b0\/","title":{"rendered":"\u5916\u6c47\u5e02\u573a\u30c7\u30fc\u30bf API WebSocket \u3068 REST\uff1a\u3069\u3061\u3089\u304c\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u306b\u9069\u3057\u3066\u3044\u308b\u304b"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"800\" height=\"417\" src=\"https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94.png?resize=800%2C417&#038;ssl=1\" alt=\"\" class=\"wp-image-538\" srcset=\"https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?resize=1024%2C534&amp;ssl=1 1024w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?resize=768%2C401&amp;ssl=1 768w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?resize=1536%2C801&amp;ssl=1 1536w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?resize=2048%2C1068&amp;ssl=1 2048w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?w=1600&amp;ssl=1 1600w, https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?w=2400&amp;ssl=1 2400w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u3067\u306f\u3001\u901f\u5ea6\u306f\u5fc5\u9808\u6761\u4ef6\u3067\u3059\u30021\u30df\u30ea\u79d2\u306e\u9045\u5ef6\u304c\u5229\u76ca\u3092\u9003\u3059\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002\u9069\u5207\u306a <strong>\u5916\u6c47\u5e02\u573a\u30c7\u30fc\u30bf API<\/strong> \u3092\u9078\u3076\u3053\u3068\u306f\u3001\u3042\u306a\u305f\u306e <strong>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u6226\u7565<\/strong> \u306b\u76f4\u63a5\u5f71\u97ff\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u30c7\u30fc\u30bf\u3068 AllTick API \u306e\u30b5\u30f3\u30d7\u30eb\u3092\u7528\u3044\u3066\u3001REST \u3068 WebSocket \u306e\u9055\u3044\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">REST\uff1a\u4fe1\u983c\u6027\u306f\u3042\u308b\u304c\u5236\u9650\u3042\u308a<\/h2>\n\n\n\n<p>REST API \u306f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u53d7\u3051\u53d6\u308b\u65b9\u5f0f\u3067\u3059\u3002\u5c65\u6b74\u30c7\u30fc\u30bf\u3084\u5076\u767a\u7684\u306a\u4fa1\u683c\u53d6\u5f97\u306b\u306f\u5341\u5206\u3067\u3059\u304c\u3001\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u306b\u306f\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u7279\u6027<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td>\u30ec\u30b9\u30dd\u30f3\u30b9\u901f\u5ea6<\/td><td>100-300ms \u7a0b\u5ea6<\/td><\/tr><tr><td>\u30c7\u30fc\u30bf\u66f4\u65b0<\/td><td>\u30dd\u30fc\u30ea\u30f3\u30b0\u304c\u5fc5\u8981<\/td><\/tr><tr><td>\u30ea\u30af\u30a8\u30b9\u30c8\u5236\u9650<\/td><td>\u9ad8\u983b\u5ea6\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u5236\u9650\u3055\u308c\u308b\u5834\u5408\u3042\u308a<\/td><\/tr><tr><td>\u4f7f\u7528\u5834\u9762<\/td><td>\u5c65\u6b74\u30c7\u30fc\u30bf\u53d6\u5f97\u3001\u5076\u767a\u7684\u306a\u30c7\u30fc\u30bf\u53d6\u5f97<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Python \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff08AllTick REST API\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import requests\n\nurl = \"https:\/\/api.alltick.co\/v1\/forex\/EURUSD\/quote\"\nheaders = {\"Authorization\": \"Bearer YOUR_API_KEY\"}\n\nresponse = requests.get(url, headers=headers)\ndata = response.json()\nprint(data)\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">WebSocket\uff1a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u66f4\u65b0<\/h2>\n\n\n\n<p>WebSocket \u306f\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b <strong>\u5916\u6c47\u53d6\u5f15\u30c7\u30fc\u30bf<\/strong> \u3092\u53d7\u4fe1\u53ef\u80fd\u3067\u3059\u3002\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u3067\u306f\u3053\u308c\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30e1\u30ea\u30c3\u30c8\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f4e\u9045\u5ef6<\/strong>\uff1a\u307b\u307c\u5373\u6642<\/li>\n\n\n\n<li><strong>\u5e2f\u57df\u52b9\u7387<\/strong>\uff1a\u5909\u66f4\u30c7\u30fc\u30bf\u306e\u307f\u9001\u4fe1<\/li>\n\n\n\n<li><strong>\u8907\u6570\u901a\u8ca8\u30da\u30a2\u540c\u6642\u76e3\u8996<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Python \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\uff08AllTick WebSocket API\uff09\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import websocket\nimport json\n\ndef on_message(ws, message):\n    data = json.loads(message)\n    print(data)\n\nws = websocket.WebSocketApp(\n    \"wss:\/\/api.alltick.co\/v1\/forex\/stream?pairs=EURUSD,GBPUSD\",\n    header=[\"Authorization: Bearer YOUR_API_KEY\"],\n    on_message=on_message\n)\n\nws.run_forever()\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">REST \u3068 WebSocket\uff1a\u6bd4\u8f03\u30ac\u30a4\u30c9<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6307\u6a19<\/th><th>REST<\/th><th>WebSocket<\/th><\/tr><\/thead><tbody><tr><td>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027<\/td><td>\u9045\u3044\u3001\u30dd\u30fc\u30ea\u30f3\u30b0\u4f9d\u5b58<\/td><td>\u5373\u6642\u66f4\u65b0\u3001\u4f4e\u9045\u5ef6<\/td><\/tr><tr><td>\u9069\u7528\u5834\u9762<\/td><td>\u5c65\u6b74\u30c7\u30fc\u30bf\u3001\u5076\u767a\u7684\u53d6\u5f97<\/td><td>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u76e3\u8996<\/td><\/tr><tr><td>\u30ea\u30af\u30a8\u30b9\u30c8\u8ca0\u8377<\/td><td>\u9ad8\u983b\u5ea6\u3067\u5236\u9650\u3055\u308c\u3084\u3059\u3044<\/td><td>\u5b89\u5b9a\u3001\u5236\u9650\u3055\u308c\u306b\u304f\u3044<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u3067\u306f WebSocket \u304c\u6838\u5fc3\u3067\u3001REST \u306f\u88dc\u52a9\u7684\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002AllTick API \u306f\u4e21\u65b9\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u6226\u7565\u306e\u5b9f\u884c\u3092\u5b89\u5b9a\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h3>\n\n\n\n<p>\u9ad8\u983b\u5ea6\u53d6\u5f15\u3067\u306f\u3001\u30c7\u30fc\u30bf\u306e\u901f\u5ea6\u3068\u4fe1\u983c\u6027\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<strong>AllTick API<\/strong> \u306f WebSocket \u3068 REST \u3092\u63d0\u4f9b\u3057\u3001<strong>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u6226\u7565<\/strong> \u306e\u5b9f\u884c\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5e02\u5834\u306f\u5f85\u3063\u3066\u304f\u308c\u307e\u305b\u3093\u3002\u30c7\u30fc\u30bf\u3082\u540c\u69d8\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u3067\u306f\u3001\u901f\u5ea6\u306f\u5fc5\u9808\u6761\u4ef6\u3067\u3059\u30021\u30df\u30ea\u79d2\u306e\u9045\u5ef6\u304c\u5229\u76ca\u3092\u9003\u3059\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002\u9069\u5207\u306a \u5916\u6c47\u5e02\u573a\u30c7\u30fc\u30bf API \u3092\u9078\u3076\u3053\u3068\u306f\u3001\u3042\u306a\u305f\u306e \u30b9\u30ad\u30e3\u30eb\u30d4\u30f3\u30b0\u6226\u7565 \u306b\u76f4\u63a5\u5f71\u97ff\u3057\u307e\u3059\u3002 \u3053\u3053\u3067\u306f\u3001\u5177\u4f53\u7684\u306a\u30c7\u30fc\u30bf\u3068 AllTick [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":538,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-537","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"featured_image_src":"https:\/\/i0.wp.com\/blog.alltick.co\/ja-jp\/wp-content\/uploads\/sites\/2\/2026\/05\/%E5%A4%96%E6%B1%87%E5%B8%82%E5%9C%BA%E6%95%B0%E6%8D%AEAPI%E5%AF%B9%E6%AF%94-scaled.png?fit=2560%2C1335&ssl=1","author_info":{"display_name":"\u662d\u7199","author_link":"https:\/\/blog.alltick.co\/ja-jp\/author\/sohee\/"},"_links":{"self":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":1,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":539,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/posts\/537\/revisions\/539"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/media\/538"}],"wp:attachment":[{"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.alltick.co\/ja-jp\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}