{"id":2267,"date":"2023-10-15T15:02:11","date_gmt":"2023-10-15T09:32:11","guid":{"rendered":"https:\/\/python-programs.com\/?p=2267"},"modified":"2023-11-10T11:40:31","modified_gmt":"2023-11-10T06:10:31","slug":"best-5-stock-markets-apis-in-2020","status":"publish","type":"post","link":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/","title":{"rendered":"Best 5 stock markets APIs in 2020"},"content":{"rendered":"

There are various stock markets that are available online but among all of them, it\u2019s hard to figure out from which site you should visit or which site will be useful.<\/span><\/p>\n

In this article, we will be discussing the 5 best stock market APIs.<\/span><\/p>\n

What is Stock market data API?<\/span><\/h2>\n

Real-time or historical data on financial assets that are currently being traded in the markets are offered by stock market data APIs.<\/span><\/p>\n

Prices of public stocks, ETFs, and ETNs are specially offered by them.<\/span><\/p>\n

Data:<\/span><\/h3>\n

In the article, we will be more inclined towards the price information. We will be talking about the following APIs and how they are useful:<\/span><\/p>\n

    \n
  1. Yahoo Finance<\/span><\/li>\n
  2. Google Finance in Google sheets.<\/span><\/li>\n
  3. IEX cloud<\/span><\/li>\n
  4. AlphaVantage<\/span><\/li>\n
  5. World trading data<\/span><\/li>\n
  6. Other APIs( Polygon.io, intrinio, Quandl)<\/span><\/li>\n<\/ol>\n

    1. Yahoo Finance:<\/span><\/h3>\n

    The API was shut down in 2017. However, it got back up after 2019. The amazing thing is we can still use Yahoo Finance to get free stock data. It is employed by both individual and enterprise-level users.<\/span><\/p>\n

    It is free and reliable and provides access to more than 5 years of daily OHLC price data.<\/span><\/p>\n

    yFinance <\/i><\/b>is the new python module that wraps the new yahoo finance API.<\/span><\/p>\n

    >pip install yfinance<\/i><\/b><\/pre>\n

    \u00a0The GitHub link is provided for the code but I will be attaching the code below for your reference.<\/span><\/p>\n

    GoogleFinance:\r\n<\/span><\/pre>\n

    Google Finance got shut down in 2012 but some features were still on the go. There is a feature in this API that supports you to get the stock market data and It is known as <\/span>GoogleFinance<\/i><\/b> in google sheets.<\/span><\/p>\n

    All we have to do is type the below command and we will get the data.<\/span><\/p>\n

     <\/p>\n

    GOOGLEFINANCE(\"GOOG\", \"price\")<\/i><\/b><\/pre>\n

    Furthermore, the syntax is:<\/span><\/p>\n

    GOOGLEFINANCE(ticker, [attribute], [start_date], [end_date|num_days], [interval])<\/i><\/b><\/pre>\n

    The ticker is used for security consideration.<\/span><\/p>\n

    Attribute(should be \u201cprice\u201d by default).<\/span><\/p>\n

    Start_date: when you want to fetch the historical data.<\/span><\/p>\n

    End_date: Till when you want the data.<\/span><\/p>\n

    Intervals: return data frequency which is either \u201cDAILY\u201d or \u201cWEEKLY\u201d.<\/span><\/p>\n

    2. IEX Cloud:<\/span><\/h3>\n

    IEX Cloud is a new financial service just released this year. It\u2019s an independent business separate from IEX Group\u2019s flagship stock exchange, is a high-performance, financial data platform that connects developers and financial data creators.<\/i><\/b><\/p>\n

    It is very cheap compared to others and you can get all the data you want easily. It also provides free trial.<\/span><\/p>\n

    You can easily check it out at :<\/span><\/p>\n

     <\/p>\n

    Iexfinance<\/b><\/p>\n

    3. AlphaVantage:<\/span><\/h3>\n

    You can refer to the website:<\/span><\/p>\n

    https:\/\/www.alphavantage.co\/<\/b><\/a><\/p>\n

    It is the best and the leading provider of various free APIs. It provides gain to access the data related to the stock, FX-data, and cryptocurrency.<\/span><\/p>\n

    AlphaVantage provides access to 5-API request per minute and 500-API requests per day.<\/span><\/p>\n

    4. World Trading Data:<\/span><\/h3>\n

    You can refer to the website for World Trading data:<\/span><\/p>\n

    https:\/\/www.worldtradingdata.com\/<\/span><\/a><\/p>\n

    In this trading application, you can access the full intraday API and currency API. The availability ranges from $8 to $32 per month.<\/span><\/p>\n

    There are different types of plans available. You can get 5-stocks per request for free access. You can get 250 total requests per day.<\/span><\/p>\n

    The response will be in JSON format and there will be no python module to wrap their APIs.<\/span><\/p>\n

    5. Other APIs:<\/span><\/h3>\n

    Website: <\/b>https:\/\/polygon.io<\/b><\/a><\/p>\n

    \"Polygon.io\"
    Polygon.io<\/figcaption><\/figure>\n

    It is only for the US stock market and is available at $199 per month. This is not a good choice for beginners.<\/span><\/p>\n

    Website: <\/span>https:\/\/intrino.com\/<\/span><\/a><\/p>\n

    \"intrino\"
    intrino<\/figcaption><\/figure>\n

    It is only available for real-time stock data at $75 per month. For EOD price data it is $40 but you can get free access to this on different platforms. So, I guess it might not be a good choice for independent traders.<\/span><\/p>\n

    Website: <\/span>https:\/\/www.quandl.com\/<\/b><\/a><\/p>\n

    \"Quandl\"
    Quandl<\/figcaption><\/figure>\n

    It is a marketplace for financial, economic, and other related APIs. It aggregates API from thor party so that users can purchase whatever APIs they want to use.<\/span><\/p>\n

    Every other API will have different prices and some APIs will be free and others will be charged.<\/span><\/p>\n

    Quandl contains its analysis tool inside the website which will be more convenient.<\/span><\/p>\n

    It is a platform which will be most suitable if you can spend a lot of money.<\/span><\/p>\n

    Wrapping up:<\/strong><\/p>\n

    I hope you find this tutorial useful and will refer to the websites given for stock market data.<\/span><\/p>\n

    Trading is a quite complex field and learning it is not so easy. You have to spend some time and practice understanding the stock market data and its uses.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

    There are various stock markets that are available online but among all of them, it\u2019s hard to figure out from which site you should visit or which site will be useful. In this article, we will be discussing the 5 best stock market APIs. What is Stock market data API? Real-time or historical data on …<\/p>\n

    Best 5 stock markets APIs in 2020<\/span> Read More »<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"yoast_head":"\nBest 5 stock markets APIs in 2020 - Python Programs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Best 5 stock markets APIs in 2020 - Python Programs\" \/>\n<meta property=\"og:description\" content=\"There are various stock markets that are available online but among all of them, it\u2019s hard to figure out from which site you should visit or which site will be useful. In this article, we will be discussing the 5 best stock market APIs. What is Stock market data API? Real-time or historical data on … Best 5 stock markets APIs in 2020 Read More »\" \/>\n<meta property=\"og:url\" content=\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Programs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/btechgeeks\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-15T09:32:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-10T06:10:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:site\" content=\"@btech_geeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bahija Siddiqui\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/python-programs.com\/#organization\",\"name\":\"BTech Geeks\",\"url\":\"https:\/\/python-programs.com\/\",\"sameAs\":[\"https:\/\/www.instagram.com\/btechgeeks\/\",\"https:\/\/www.linkedin.com\/in\/btechgeeks\",\"https:\/\/in.pinterest.com\/btechgeek\/\",\"https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg\",\"https:\/\/www.facebook.com\/btechgeeks\",\"https:\/\/twitter.com\/btech_geeks\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"contentUrl\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png\",\"width\":350,\"height\":70,\"caption\":\"BTech Geeks\"},\"image\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/python-programs.com\/#website\",\"url\":\"https:\/\/python-programs.com\/\",\"name\":\"Python Programs\",\"description\":\"Python Programs with Examples, How To Guides on Python\",\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/python-programs.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage\",\"url\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png\",\"contentUrl\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png\",\"width\":1194,\"height\":796,\"caption\":\"Polygon.io\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage\",\"url\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/\",\"name\":\"Best 5 stock markets APIs in 2020 - Python Programs\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage\"},\"datePublished\":\"2023-10-15T09:32:11+00:00\",\"dateModified\":\"2023-11-10T06:10:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/python-programs.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Best 5 stock markets APIs in 2020\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage\"},\"author\":{\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/7442c33f5d282892c551affb0de5cd16\"},\"headline\":\"Best 5 stock markets APIs in 2020\",\"datePublished\":\"2023-10-15T09:32:11+00:00\",\"dateModified\":\"2023-11-10T06:10:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage\"},\"wordCount\":749,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/python-programs.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/7442c33f5d282892c551affb0de5cd16\",\"name\":\"Bahija Siddiqui\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/python-programs.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/978ea39d7d45a7b9c5e7e7b141d5b94b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/978ea39d7d45a7b9c5e7e7b141d5b94b?s=96&d=mm&r=g\",\"caption\":\"Bahija Siddiqui\"},\"url\":\"https:\/\/python-programs.com\/author\/bahija\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Best 5 stock markets APIs in 2020 - Python Programs","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:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/","og_locale":"en_US","og_type":"article","og_title":"Best 5 stock markets APIs in 2020 - Python Programs","og_description":"There are various stock markets that are available online but among all of them, it\u2019s hard to figure out from which site you should visit or which site will be useful. In this article, we will be discussing the 5 best stock market APIs. What is Stock market data API? Real-time or historical data on … Best 5 stock markets APIs in 2020 Read More »","og_url":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/","og_site_name":"Python Programs","article_publisher":"https:\/\/www.facebook.com\/btechgeeks","article_published_time":"2023-10-15T09:32:11+00:00","article_modified_time":"2023-11-10T06:10:31+00:00","og_image":[{"url":"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png"}],"twitter_card":"summary_large_image","twitter_creator":"@btech_geeks","twitter_site":"@btech_geeks","twitter_misc":{"Written by":"Bahija Siddiqui","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/python-programs.com\/#organization","name":"BTech Geeks","url":"https:\/\/python-programs.com\/","sameAs":["https:\/\/www.instagram.com\/btechgeeks\/","https:\/\/www.linkedin.com\/in\/btechgeeks","https:\/\/in.pinterest.com\/btechgeek\/","https:\/\/www.youtube.com\/channel\/UC9MlCqdJ3lKqz2p5114SDIg","https:\/\/www.facebook.com\/btechgeeks","https:\/\/twitter.com\/btech_geeks"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/","url":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","contentUrl":"https:\/\/python-programs.com\/wp-content\/uploads\/2020\/11\/BTechGeeks.png","width":350,"height":70,"caption":"BTech Geeks"},"image":{"@id":"https:\/\/python-programs.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/python-programs.com\/#website","url":"https:\/\/python-programs.com\/","name":"Python Programs","description":"Python Programs with Examples, How To Guides on Python","publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/python-programs.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage","url":"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png","contentUrl":"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png","width":1194,"height":796,"caption":"Polygon.io"},{"@type":"WebPage","@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage","url":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/","name":"Best 5 stock markets APIs in 2020 - Python Programs","isPartOf":{"@id":"https:\/\/python-programs.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage"},"datePublished":"2023-10-15T09:32:11+00:00","dateModified":"2023-11-10T06:10:31+00:00","breadcrumb":{"@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/python-programs.com\/"},{"@type":"ListItem","position":2,"name":"Best 5 stock markets APIs in 2020"}]},{"@type":"Article","@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#article","isPartOf":{"@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage"},"author":{"@id":"https:\/\/python-programs.com\/#\/schema\/person\/7442c33f5d282892c551affb0de5cd16"},"headline":"Best 5 stock markets APIs in 2020","datePublished":"2023-10-15T09:32:11+00:00","dateModified":"2023-11-10T06:10:31+00:00","mainEntityOfPage":{"@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#webpage"},"wordCount":749,"commentCount":0,"publisher":{"@id":"https:\/\/python-programs.com\/#organization"},"image":{"@id":"https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#primaryimage"},"thumbnailUrl":"https:\/\/python-programs.com\/wp-content\/uploads\/2021\/04\/poly.png","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/python-programs.com\/best-5-stock-markets-apis-in-2020\/#respond"]}]},{"@type":"Person","@id":"https:\/\/python-programs.com\/#\/schema\/person\/7442c33f5d282892c551affb0de5cd16","name":"Bahija Siddiqui","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/python-programs.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/978ea39d7d45a7b9c5e7e7b141d5b94b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/978ea39d7d45a7b9c5e7e7b141d5b94b?s=96&d=mm&r=g","caption":"Bahija Siddiqui"},"url":"https:\/\/python-programs.com\/author\/bahija\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/2267"}],"collection":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/comments?post=2267"}],"version-history":[{"count":7,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/2267\/revisions"}],"predecessor-version":[{"id":2449,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/posts\/2267\/revisions\/2449"}],"wp:attachment":[{"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/media?parent=2267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/categories?post=2267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-programs.com\/wp-json\/wp\/v2\/tags?post=2267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}