{"repo":"SimFin/simfin","free":true,"listed":false,"github":"https://github.com/SimFin/simfin","clone":"git clone https://github.com/SimFin/simfin.git","description":"Simple financial data for Python","language":"Python","stars":339,"topics":["finance","financial-data","python","simfin"],"license":null,"category":"trading","readme_excerpt":"SimFin - Simple financial data for Python SimFin makes it easy to obtain and use financial and stock-market data in Python. It automatically downloads share-prices and fundamental data from the SimFin server, saves the data to disk for future use, and loads the data into Pandas DataFrames. Installation pip install simfin More detailed installation instructions can be found below. API-Key To download data from SimFin you need an API-key, you can get one for free by registering on simfin.com. Once you registered, you can find your API-key here. The free datasets contain less data than the paid SimFin+ datasets and some datasets are only available to SimFin+ users. Visit SimFin for a comparison of the free and paid data versions. Example Once the simfin package has been installed and you got your API-key, the following Python program will automatically download all Income Statements for US companies, and print the Revenue and Net Income for Microsoft. import simfin as sf from simfin.names import # Set your API-key for downloading data. # Replace YOUR API KEY with your actual API-key. sf.set api key('YOUR API KEY') # Set the local directory where data-files are stored. # The dir will be created if it does not already exist. sf.set data dir(' /simfin data/') # Load the annual Income Statements for all companies in the US. # The data is automatically downloaded if you don't have it already. df = sf.load income(variant='annual', market='us') # Print all Revenue and Net Income for Mi","default_branch":null,"files":null,"tree":[],"storefront":"/r/SimFin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SimFin/simfin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}