{"id":44273,"date":"2020-05-06T10:25:03","date_gmt":"2020-05-06T14:25:03","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=44273"},"modified":"2022-11-21T09:45:29","modified_gmt":"2022-11-21T14:45:29","slug":"how-can-we-download-fundamentals-data-with-python","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/","title":{"rendered":"How can we download fundamentals data with Python?"},"content":{"rendered":"\n<p>In this post we will explore how to download fundamentals data with Python. We\u2019ll be extracting fundamentals data from&nbsp;<a href=\"https:\/\/finance.yahoo.com\/\">Yahoo Finance<\/a>&nbsp;using the&nbsp;<a href=\"https:\/\/theautomatic.net\/yahoo_fin-documentation\/\">yahoo_fin<\/a>&nbsp;package. For more on&nbsp;<strong>yahoo_fin<\/strong>, including installation instructions,&nbsp;<a href=\"https:\/\/theautomatic.net\/yahoo_fin-documentation\/\">check out its full documentation here<\/a>.<\/p>\n\n\n\n<p><strong>Getting started<\/strong><\/p>\n\n\n\n<p>Now, let\u2019s import the&nbsp;<em>stock_info<\/em>&nbsp;module from&nbsp;<strong>yahoo_fin<\/strong>. This will provide us with the functionality we need to scrape fundamentals data from Yahoo Finance. We\u2019ll also import the&nbsp;<strong>pandas<\/strong>&nbsp;package as we\u2019ll be using that later to work with data frames.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\nimport yahoo_fin.stock_info as si<br>\nimport pandas as pd\n\n<\/p>\n\n\n\n<p>Next, we\u2019ll dive into getting common company metrics, starting with P\/E ratios.<\/p>\n\n\n\n<p><strong>How to get P\/E (Price-to-Earnings) Ratios<\/strong><\/p>\n\n\n\n<p>There\u2019s a couple ways to get the current P\/E ratio for a company. First, we can use the&nbsp;<strong>get_quote_table<\/strong>&nbsp;method, which will extract the data found on the summary page of a stock (<a href=\"https:\/\/finance.yahoo.com\/quote\/AAPL?p=AAPL\">see here<\/a>).<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\nquote = si.get_quote_table(&#8220;aapl&#8221;)\n\n<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"588\" height=\"454\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-get-PE-ratio.png\" alt=\"How can we download fundamentals data with Python?\" class=\"wp-image-44278 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-get-PE-ratio.png 588w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/python-get-PE-ratio-300x232.png 300w\" data-sizes=\"(max-width: 588px) 100vw, 588px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 588px; aspect-ratio: 588\/454;\" \/><\/figure>\n\n\n\n<p>Next, let\u2019s pull the P\/E ratio from the dictionary that is returned.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\nquote[&#8220;PE Ratio (TTM)&#8221;] # 22.71\n\n<\/p>\n\n\n\n<p>A company\u2019s P\/E ratio can also be extracted from the&nbsp;<em>get_stats_valuation<\/em>&nbsp;method. Running this method returns a data frame of the \u201cValuation Measures\u201d on the&nbsp;<a href=\"https:\/\/finance.yahoo.com\/quote\/AAPL\/key-statistics?p=AAPL\">statistics tab for a stock<\/a>.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\nval = si.get_stats_valuation(&#8220;aapl&#8221;)<br><br>\n \nval = val.iloc[:,:2]<br><br>\n \nval.columns = [&#8220;Attribute&#8221;, &#8220;Recent&#8221;]\n\n<\/p>\n\n\n\n<p>Next, let\u2019s extract the P\/E ratio.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\nfloat(val[val.Attribute.str.contains(&#8220;Trailing P\/E&#8221;)].iloc[0,1])\n\n<\/p>\n\n\n\n<p><strong>How to get P\/S (Price-to-Sales) Ratios<\/strong><\/p>\n\n\n\n<p>Another popular metric is the P\/S ratio. We can get the P\/S ratio, along with several other other metrics, using the same&nbsp;<em>get_stats_valuation<\/em>&nbsp;method. Let\u2019s use the object we pulled above, currently stored as&nbsp;<em>val<\/em>.<\/p>\n\n\n\n<p>Then, we can get the Price\/Sales ratio like below.<\/p>\n\n\n\n<p><strong>Getting fundamentals stats for many stocks at once<\/strong><\/p>\n\n\n\n<p>Now, let\u2019s get the Price-to-Earnings and Price-to-Sales ratios for each stock in the Dow. We could also do this for a custom list of tickers as well.<\/p>\n\n\n\n<p style=\"background-color:#fcfcdb;font-size:11px\" class=\"has-background\">\n# get list of Dow tickers<br>\ndow_list = si.tickers_dow()<br><br>\n \n \n# Get data in the current column for each stock&#8217;s valuation table<br>\ndow_stats = {}<br>\nfor ticker in dow_list:<br>\n    temp = si.get_stats_valuation(ticker)<br>\n    temp = temp.iloc[:,:2]<br>\n    temp.columns = [&#8220;Attribute&#8221;, &#8220;Recent&#8221;]<br><br>\n \n    dow_stats[ticker] = temp<br><br>\n \n \n# combine all the stats valuation tables into a single data frame<br>\ncombined_stats = pd.concat(dow_stats)<br>\ncombined_stats = combined_stats.reset_index()<br><br>\n \ndel combined_stats[&#8220;level_1&#8221;]<br><br>\n \n# update column names<br>\ncombined_stats.columns = [&#8220;Ticker&#8221;, &#8220;Attribute&#8221;, &#8220;Recent&#8221;]\n\n<\/p>\n\n\n\n<p>Visit TheAutomatic.net to download ready-to-use code, and read the rest of the article: <a href=\"https:\/\/theautomatic.net\/2020\/05\/05\/how-to-download-fundamentals-data-with-python\/\">https:\/\/theautomatic.net\/2020\/05\/05\/how-to-download-fundamentals-data-with-python\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.<\/p>\n","protected":false},"author":388,"featured_media":44292,"comment_status":"closed","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,349,338,341,352,344],"tags":[6956,806,4922,1224,6950,6955,595,494,7485],"contributors-categories":[13695],"class_list":{"0":"post-44273","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-development","12":"category-quant-north-america","13":"category-quant-regions","14":"tag-data-analysis","15":"tag-data-science","16":"tag-econometrics","17":"tag-pandas","18":"tag-pyodbc","19":"tag-pypyodbc","20":"tag-python","21":"tag-quant","22":"tag-yahoo_fin","23":"contributors-categories-theautomatic-net"},"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>How can we download fundamentals data with Python?<\/title>\n<meta name=\"description\" content=\"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.\" \/>\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\/44273\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can we download fundamentals data with Python? | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-06T14:25:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:45:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andrew Treadway\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Treadway\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 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\\\/how-can-we-download-fundamentals-data-with-python\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-can-we-download-fundamentals-data-with-python\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Andrew Treadway\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/d4018570a16fb867f1c08412fc9c64bc\"\n\t            },\n\t            \"headline\": \"How can we download fundamentals data with Python?\",\n\t            \"datePublished\": \"2020-05-06T14:25:03+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:45:29+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-can-we-download-fundamentals-data-with-python\\\/\"\n\t            },\n\t            \"wordCount\": 469,\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\\\/how-can-we-download-fundamentals-data-with-python\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/target-download.jpg\",\n\t            \"keywords\": [\n\t                \"Data Analysis\",\n\t                \"Data Science\",\n\t                \"Econometrics\",\n\t                \"Pandas\",\n\t                \"pyodbc\",\n\t                \"pypyodbc\",\n\t                \"Python\",\n\t                \"Quant\",\n\t                \"yahoo_fin\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Python Development\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"Quant North America\",\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\\\/how-can-we-download-fundamentals-data-with-python\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-can-we-download-fundamentals-data-with-python\\\/\",\n\t            \"name\": \"How can we download fundamentals data with Python? | 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\\\/how-can-we-download-fundamentals-data-with-python\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-can-we-download-fundamentals-data-with-python\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/target-download.jpg\",\n\t            \"datePublished\": \"2020-05-06T14:25:03+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:45:29+00:00\",\n\t            \"description\": \"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.\",\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\\\/how-can-we-download-fundamentals-data-with-python\\\/\"\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\\\/how-can-we-download-fundamentals-data-with-python\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/target-download.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2020\\\/05\\\/target-download.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"Quant Download\"\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\\\/d4018570a16fb867f1c08412fc9c64bc\",\n\t            \"name\": \"Andrew Treadway\",\n\t            \"description\": \"Andrew Treadway currently works as a Senior Data Scientist, and has experience doing analytics, software automation, and ETL. He completed a master\u2019s degree in computer science \\\/ machine learning, and an undergraduate degree in pure mathematics. Connect with him on LinkedIn: https:\\\/\\\/www.linkedin.com\\\/in\\\/andrew-treadway-a3b19b103\\\/In addition to TheAutomatic.net blog, he also teaches in-person courses on Python and R through my NYC meetup: more details.\",\n\t            \"sameAs\": [\n\t                \"https:\\\/\\\/theautomatic.net\\\/about-me\\\/\"\n\t            ],\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/andrewtreadway\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How can we download fundamentals data with Python?","description":"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.","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\/44273\/","og_locale":"en_US","og_type":"article","og_title":"How can we download fundamentals data with Python? | IBKR Quant Blog","og_description":"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/","og_site_name":"IBKR Campus US","article_published_time":"2020-05-06T14:25:03+00:00","article_modified_time":"2022-11-21T14:45:29+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","type":"image\/jpeg"}],"author":"Andrew Treadway","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andrew Treadway","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/"},"author":{"name":"Andrew Treadway","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/d4018570a16fb867f1c08412fc9c64bc"},"headline":"How can we download fundamentals data with Python?","datePublished":"2020-05-06T14:25:03+00:00","dateModified":"2022-11-21T14:45:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/"},"wordCount":469,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","keywords":["Data Analysis","Data Science","Econometrics","Pandas","pyodbc","pypyodbc","Python","Quant","yahoo_fin"],"articleSection":["Data Science","Programming Languages","Python Development","Quant","Quant Development","Quant North America","Quant Regions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/","name":"How can we download fundamentals data with Python? | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","datePublished":"2020-05-06T14:25:03+00:00","dateModified":"2022-11-21T14:45:29+00:00","description":"Join Andrew Treadway and explore how to download fundamentals data with Python. Code along with the author as he uses the yahoo_fin package.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-can-we-download-fundamentals-data-with-python\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","width":900,"height":550,"caption":"Quant Download"},{"@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\/d4018570a16fb867f1c08412fc9c64bc","name":"Andrew Treadway","description":"Andrew Treadway currently works as a Senior Data Scientist, and has experience doing analytics, software automation, and ETL. He completed a master\u2019s degree in computer science \/ machine learning, and an undergraduate degree in pure mathematics. Connect with him on LinkedIn: https:\/\/www.linkedin.com\/in\/andrew-treadway-a3b19b103\/In addition to TheAutomatic.net blog, he also teaches in-person courses on Python and R through my NYC meetup: more details.","sameAs":["https:\/\/theautomatic.net\/about-me\/"],"url":"https:\/\/www.interactivebrokers.com\/campus\/author\/andrewtreadway\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2020\/05\/target-download.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/44273","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\/388"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=44273"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/44273\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/44292"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=44273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=44273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=44273"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=44273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}