{"id":965,"date":"2021-10-15T15:50:40","date_gmt":"2021-10-15T13:50:40","guid":{"rendered":"https:\/\/eodhd.com\/financial-apis-blog\/?p=965"},"modified":"2024-06-20T10:56:08","modified_gmt":"2024-06-20T08:56:08","slug":"real-time-api-via-websockets","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets","title":{"rendered":"Real-Time API via WebSockets"},"content":{"rendered":"\n<p>Eventually, we are happy to announce the publishing of the real-time data via WebSockets with a delay of\u00a0<strong>less than 50ms<\/strong> for the USA market, FOREX, and Cryptocurrencies. For USA stocks the real-time data API supports\u00a0<strong>pre-market and post-market hours<\/strong>\u00a0(from 4:00 am till 8:00 pm EST). WebSockets API is available within All World Extended and\/or All-In-One packages. Read more on the <a href=\"https:\/\/eodhd.com\/financial-apis\/new-real-time-data-api-websockets\" target=\"_blank\" rel=\"noreferrer noopener\">Real-Time API Documentation<\/a> Page.<\/p>\n\n\n\n<p>We support&nbsp;<strong>trade<\/strong>&nbsp;and&nbsp;<strong>quote<\/strong>&nbsp;data for the US market, the data is provided via different WebSocket endpoints:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>US&nbsp;<\/strong>market<strong>&nbsp;trade<\/strong>&nbsp;data: wss:\/\/ws.eodhistoricaldata.com\/ws\/us?api_token=XXX<\/li>\n\n\n\n<li><strong>US<\/strong>&nbsp;market&nbsp;<strong>quote<\/strong>&nbsp;data: wss:\/\/ws.eodhistoricaldata.com\/ws\/us-quote?api_token=XXX<\/li>\n<\/ul>\n\n\n\n<p>For FOREX and Crypto feeds please use the following WebSocket endpoints:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>FOREX<\/strong>: wss:\/\/ws.eodhistoricaldata.com\/ws\/forex?api_token=XXX<\/li>\n\n\n\n<li><strong>Cryptocurrencies<\/strong>: wss:\/\/ws.eodhistoricaldata.com\/ws\/crypto?api_token=XXX<\/li>\n<\/ul>\n\n\n\n<p>More information you can get on our <a href=\"https:\/\/eodhd.com\/financial-apis\/new-real-time-data-api-websockets\" target=\"_blank\" rel=\"noreferrer noopener\">Real-Time API Documentation<\/a> page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Eventually, we are happy to announce the publishing of the real-time data via WebSockets with a delay of\u00a0less than 50ms for the USA market, FOREX, and Cryptocurrencies. For USA stocks the real-time data API supports\u00a0pre-market and post-market hours\u00a0(from 4:00 am till 8:00 pm EST). WebSockets API is available within All&#8230;<\/p>\n","protected":false},"author":1,"featured_media":967,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[180,182,10,181],"class_list":["post-965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-real-time-data-api","tag-real-time-forex","tag-real-time-stock-prices","tag-websockets-api","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.5 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Real-Time API via WebSockets | EODHD APIs Blog<\/title>\n<meta name=\"description\" content=\"Discover the power of real-time data with our API. Access trade and quote data for the US market, FOREX, and Cryptocurrencies with minimal delay\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Real-Time API via WebSockets\" \/>\n<meta property=\"og:description\" content=\"Eventually, we are happy to announce the publishing of the real-time data via WebSockets with a delay of\u00a0less than 50ms for the USA market, FOREX, and\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\" \/>\n<meta property=\"og:site_name\" content=\"Financial Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-15T13:50:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-20T08:56:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"2250\" \/>\n\t<meta property=\"og:image:height\" content=\"1500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"EOD Historical Data\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"EOD Historical Data\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\"},\"author\":{\"name\":\"EOD Historical Data\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/8d61b703d9ac7e99c00979e9eca98b4d\"},\"headline\":\"Real-Time API via WebSockets\",\"datePublished\":\"2021-10-15T13:50:40+00:00\",\"dateModified\":\"2024-06-20T08:56:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\"},\"wordCount\":165,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg\",\"keywords\":[\"real-time data api\",\"real-time forex\",\"real-time stock prices\",\"websockets api\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\",\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\",\"name\":\"Real-Time API via WebSockets | EODHD APIs Blog\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg\",\"datePublished\":\"2021-10-15T13:50:40+00:00\",\"dateModified\":\"2024-06-20T08:56:08+00:00\",\"description\":\"Discover the power of real-time data with our API. Access trade and quote data for the US market, FOREX, and Cryptocurrencies with minimal delay\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage\",\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg\",\"width\":2250,\"height\":1500,\"caption\":\"Real-Time API Websockets\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-apis-blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Real-Time API via WebSockets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/\",\"name\":\"Financial APIs Blog | EODHD\",\"description\":\"Financial Data APIs. Fundamental, End of Day (EOD), Real-Time\/Live.\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#organization\"},\"alternateName\":\"EODHD Financial Data APIs Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-apis-blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/8d61b703d9ac7e99c00979e9eca98b4d\",\"name\":\"EOD Historical Data\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g\",\"caption\":\"EOD Historical Data\"},\"sameAs\":[\"https:\/\/eodhistoricaldata.com\"],\"url\":\"https:\/\/eodhd.com\/financial-apis-blog\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Real-Time API via WebSockets | EODHD APIs Blog","description":"Discover the power of real-time data with our API. Access trade and quote data for the US market, FOREX, and Cryptocurrencies with minimal delay","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets","og_locale":"en_US","og_type":"article","og_title":"Real-Time API via WebSockets","og_description":"Eventually, we are happy to announce the publishing of the real-time data via WebSockets with a delay of\u00a0less than 50ms for the USA market, FOREX, and","og_url":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets","og_site_name":"Financial Blog","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2021-10-15T13:50:40+00:00","article_modified_time":"2024-06-20T08:56:08+00:00","og_image":[{"width":2250,"height":1500,"url":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","type":"image\/jpeg"}],"author":"EOD Historical Data","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"EOD Historical Data","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets"},"author":{"name":"EOD Historical Data","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/8d61b703d9ac7e99c00979e9eca98b4d"},"headline":"Real-Time API via WebSockets","datePublished":"2021-10-15T13:50:40+00:00","dateModified":"2024-06-20T08:56:08+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets"},"wordCount":165,"publisher":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","keywords":["real-time data api","real-time forex","real-time stock prices","websockets api"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets","url":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets","name":"Real-Time API via WebSockets | EODHD APIs Blog","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage"},"thumbnailUrl":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","datePublished":"2021-10-15T13:50:40+00:00","dateModified":"2024-06-20T08:56:08+00:00","description":"Discover the power of real-time data with our API. Access trade and quote data for the US market, FOREX, and Cryptocurrencies with minimal delay","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#primaryimage","url":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","contentUrl":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","width":2250,"height":1500,"caption":"Real-Time API Websockets"},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-apis-blog\/real-time-api-via-websockets#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-apis-blog\/"},{"@type":"ListItem","position":2,"name":"Real-Time API via WebSockets"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#website","url":"https:\/\/eodhd.com\/financial-apis-blog\/","name":"Financial APIs Blog | EODHD","description":"Financial Data APIs. Fundamental, End of Day (EOD), Real-Time\/Live.","publisher":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/#organization"},"alternateName":"EODHD Financial Data APIs Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-apis-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-apis-blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/8d61b703d9ac7e99c00979e9eca98b4d","name":"EOD Historical Data","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis-blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g","caption":"EOD Historical Data"},"sameAs":["https:\/\/eodhistoricaldata.com"],"url":"https:\/\/eodhd.com\/financial-apis-blog\/author\/admin"}]}},"jetpack_featured_media_url":"https:\/\/eodhd.com\/financial-apis-blog\/wp-content\/uploads\/2021\/10\/realtime_data_websockets_api.jpeg","jetpack_shortlink":"https:\/\/wp.me\/p9Nz7H-fz","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/posts\/965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/comments?post=965"}],"version-history":[{"count":3,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/posts\/965\/revisions"}],"predecessor-version":[{"id":2073,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/posts\/965\/revisions\/2073"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/media\/967"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/media?parent=965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/categories?post=965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis-blog\/wp-json\/wp\/v2\/tags?post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}