{"id":98642,"date":"2021-08-17T10:25:00","date_gmt":"2021-08-17T14:25:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=98642"},"modified":"2022-11-21T09:47:53","modified_gmt":"2022-11-21T14:47:53","slug":"stock-market-data-and-analysis-in-python-part-iii","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/","title":{"rendered":"Stock Market Data And Analysis In Python \u2013 Part III"},"content":{"rendered":"\n<p><em>See&nbsp;<a href=\"\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-i\/\">Part I<\/a>&nbsp;for instructions on how to get&nbsp;<code>pandas_datareader<\/code>&nbsp;or&nbsp;<code>yfinance<\/code>&nbsp;module to retrieve the data<\/em> and <a href=\"\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-ii\/\">Part II<\/a> to learn how to get stock market data for different geographies.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"sp-500-stock-tickers\">S&amp;P 500 Stock Tickers<\/h2>\n\n\n\n<p>If you want to analyse the stock market data for all the stocks which make up the S&amp;P 500 then the below code will help you. It gets the list of stocks from the Wikipedia page and then fetches the stock market data from Yahoo Finance.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Import packages\nimport yfinance as yf\nimport pandas as pd\n\n# Read and print the stock tickers that make up S&amp;P500\ntickers = pd.read_html(\n    'https:\/\/en.wikipedia.org\/wiki\/List_of_S%26P_500_companies')&#91;0]\nprint(tickers.head())\n\n# Get the data for this tickers from yahoo finance\ndata = yf.download(tickers.Symbol.to_list(),'2021-1-1','2021-7-12', auto_adjust=True)&#91;'Close']\nprint(data.head())<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/gist.github.com\/quantra-go-algo\/ac5180bf164a7894f70969fa563627b2#file-sp500_tickers_data-py\">SP500_tickers_data.py<\/a>&nbsp;hosted with \u2764 by&nbsp;<a href=\"https:\/\/github.com\/\">GitHub<\/a><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"796\" height=\"301\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/data-for-tickers-quantinsti.png\" alt=\"\" class=\"wp-image-98658 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/data-for-tickers-quantinsti.png 796w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/data-for-tickers-quantinsti-700x265.png 700w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/data-for-tickers-quantinsti-300x113.png 300w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/data-for-tickers-quantinsti-768x290.png 768w\" data-sizes=\"(max-width: 796px) 100vw, 796px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 796px; aspect-ratio: 796\/301;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"intraday-or-minute-frequency-stock-data\"><strong>Intraday or Minute Frequency Stock Data<\/strong><\/h2>\n\n\n\n<p>yfinance module can be used to fetch the minute level stock market data. It returns the stock market data for the last 7 days.<\/p>\n\n\n\n<p>If yfinance is not installed on your computer, then run the below line of code from your Jupyter Notebook to install yfinance.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>!pip install yfinance<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/gist.github.com\/quantra-go-algo\/c568a4e09187a9e62f054747165be54f#file-install-yfinance-py\">install yfinance.py<\/a>&nbsp;hosted with \u2764 by&nbsp;<a href=\"https:\/\/github.com\/\">GitHub<\/a><\/code><\/pre>\n\n\n\n<p>The yfinance module has the download method which can be used to download the stock market data.<\/p>\n\n\n\n<p>It takes the following parameters:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><code>ticker<\/code>: The name of the tickers you want the stock market data for. If you want stock market data for multiple tickers then separate them by space<\/li><li><code>period<\/code>: The number of days\/month of stock market data required. The valid frequencies are 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max<\/li><li><code>interval<\/code>: The frequency of the stock market data. The valid intervals are 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo<\/li><\/ol>\n\n\n\n<p>The below code fetches the stock market data for MSFT for the past 5 days of 1-minute frequency.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import yfinance as yf\nintraday_data = yf.download(tickers=\"MSFT\",\n                            period=\"5d\",\n                            interval=\"1m\",\n                            auto_adjust=True)\nintraday_data.head()<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/gist.github.com\/quantra-go-algo\/3a6ac3715ded5c087471288329b17474#file-minute_data-py\">minute_data.py<\/a>&nbsp;hosted with \u2764 by&nbsp;<a href=\"https:\/\/github.com\/\">GitHub<\/a><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"684\" height=\"297\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/stock-market-data-for-msft-for-the-past-5-days-of-1-minute-frequency-1-quantinsti.png\" alt=\"\" class=\"wp-image-98683 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/stock-market-data-for-msft-for-the-past-5-days-of-1-minute-frequency-1-quantinsti.png 684w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/08\/stock-market-data-for-msft-for-the-past-5-days-of-1-minute-frequency-1-quantinsti-300x130.png 300w\" data-sizes=\"(max-width: 684px) 100vw, 684px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 684px; aspect-ratio: 684\/297;\" \/><\/figure>\n\n\n\n<p><em>Stay tuned for next installment in which Ishan Shah will show how to resample Stock Data.<\/em><\/p>\n\n\n\n<p><em>See&nbsp;<a href=\"https:\/\/blog.quantinsti.com\/stock-market-data-analysis-python\/\">https:\/\/blog.quantinsti.com\/stock-market-data-analysis-python\/<\/a>&nbsp;for additional insight on this topic.<\/em><\/p>\n\n\n\n<p><em>Past performance is not indicative of future results.<\/em><\/p>\n\n\n\n<p><em>Any stock, options or futures symbols displayed are for illustrative purposes only and are not intended to portray recommendations.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The yfinance module has the download method which can be used to download the stock market data.<\/p>\n","protected":false},"author":517,"featured_media":19357,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,350,341,344],"tags":[865,10053,6614,4659,10104,1224,10054,10056,10055,10103],"contributors-categories":[13654],"class_list":{"0":"post-98642","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-python-development","10":"category-ibkr-quant-news","11":"category-quant-asia-pacific","12":"category-quant-development","13":"category-quant-regions","14":"tag-github","15":"tag-install-yfinance","16":"tag-jupyter-notebook","17":"tag-matplotlib","18":"tag-multiple_tickers_data-py","19":"tag-pandas","20":"tag-pandas_datareader","21":"tag-plot_amazn_data-py","22":"tag-plot_amzn_data_with_grids-py","23":"tag-rawplot_multiple_tickers_data-py","24":"contributors-categories-quantinsti"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Stock Market Data And Analysis In Python \u2013 Part III<\/title>\n<meta name=\"description\" content=\"The yfinance module has the download method which can be used to download the stock market data.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/98642\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Stock Market Data And Analysis In Python \u2013 Part III | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"The yfinance module has the download method which can be used to download the stock market data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-17T14:25:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:47:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1150\" \/>\n\t<meta property=\"og:image:height\" content=\"700\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ishan Shah\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ishan Shah\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Ishan Shah\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/0fd7dbae1e070042c10b53e8bdc551c5\"\n\t            },\n\t            \"headline\": \"Stock Market Data And Analysis In Python \u2013 Part III\",\n\t            \"datePublished\": \"2021-08-17T14:25:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:47:53+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/\"\n\t            },\n\t            \"wordCount\": 318,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/09\\\/python-quant-blog.jpg\",\n\t            \"keywords\": [\n\t                \"GitHub\",\n\t                \"install yfinance\",\n\t                \"Jupyter Notebook\",\n\t                \"Matplotlib\",\n\t                \"multiple_tickers_data.py\",\n\t                \"Pandas\",\n\t                \"pandas_datareader\",\n\t                \"plot_amazn_data.py\",\n\t                \"plot_amzn_data_with_grids.py\",\n\t                \"rawplot_multiple_tickers_data.py\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Asia Pacific\",\n\t                \"Quant Development\",\n\t                \"Quant Regions\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/\",\n\t            \"name\": \"Stock Market Data And Analysis In Python \u2013 Part III | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/09\\\/python-quant-blog.jpg\",\n\t            \"datePublished\": \"2021-08-17T14:25:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:47:53+00:00\",\n\t            \"description\": \"The yfinance module has the download method which can be used to download the stock market data.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/stock-market-data-and-analysis-in-python-part-iii\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/09\\\/python-quant-blog.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2019\\\/09\\\/python-quant-blog.jpg\",\n\t            \"width\": 1150,\n\t            \"height\": 700,\n\t            \"caption\": \"Python Programming\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/0fd7dbae1e070042c10b53e8bdc551c5\",\n\t            \"name\": \"Ishan Shah\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/ishanshah\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Stock Market Data And Analysis In Python \u2013 Part III","description":"The yfinance module has the download method which can be used to download the stock market data.","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:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/98642\/","og_locale":"en_US","og_type":"article","og_title":"Stock Market Data And Analysis In Python \u2013 Part III | IBKR Quant Blog","og_description":"The yfinance module has the download method which can be used to download the stock market data.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/","og_site_name":"IBKR Campus US","article_published_time":"2021-08-17T14:25:00+00:00","article_modified_time":"2022-11-21T14:47:53+00:00","og_image":[{"width":1150,"height":700,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","type":"image\/jpeg"}],"author":"Ishan Shah","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ishan Shah","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/"},"author":{"name":"Ishan Shah","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/0fd7dbae1e070042c10b53e8bdc551c5"},"headline":"Stock Market Data And Analysis In Python \u2013 Part III","datePublished":"2021-08-17T14:25:00+00:00","dateModified":"2022-11-21T14:47:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/"},"wordCount":318,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","keywords":["GitHub","install yfinance","Jupyter Notebook","Matplotlib","multiple_tickers_data.py","Pandas","pandas_datareader","plot_amazn_data.py","plot_amzn_data_with_grids.py","rawplot_multiple_tickers_data.py"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Asia Pacific","Quant Development","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/","name":"Stock Market Data And Analysis In Python \u2013 Part III | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","datePublished":"2021-08-17T14:25:00+00:00","dateModified":"2022-11-21T14:47:53+00:00","description":"The yfinance module has the download method which can be used to download the stock market data.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/stock-market-data-and-analysis-in-python-part-iii\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","width":1150,"height":700,"caption":"Python Programming"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/0fd7dbae1e070042c10b53e8bdc551c5","name":"Ishan Shah","url":"https:\/\/www.interactivebrokers.com\/campus\/author\/ishanshah\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2019\/09\/python-quant-blog.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/98642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/517"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=98642"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/98642\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/19357"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=98642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=98642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=98642"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=98642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}