All Projects → NathanMoura → fundamentos

NathanMoura / fundamentos

Licence: MIT license
Download Bovespa Stock Market fundamentals with Python.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to fundamentos

Finance
Here you can find all the quantitative finance algorithms that I've worked on and refined over the past year!
Stars: ✭ 194 (+142.5%)
Mutual labels:  finance, stock-market, stocks
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (+210%)
Mutual labels:  finance, stock-market, stocks
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-65%)
Mutual labels:  finance, stock-market, stocks
stockscore
A python project to fetch stock financials/statistics and perform preliminary screens to aid in the stock selection process
Stars: ✭ 54 (-32.5%)
Mutual labels:  finance, stock-market, stocks
Algobot
A C++ stock market algorithmic trading bot
Stars: ✭ 78 (-2.5%)
Mutual labels:  finance, stock-market, stocks
investbook
Оценка эффективности инвестиций с учетом комиссий, налогов (удержанных и ожидающихся), дивидендов и купонов.
Stars: ✭ 83 (+3.75%)
Mutual labels:  finance, stock-market, stocks
Yahoo Finance Api
PHP client for Yahoo Finance API 📈
Stars: ✭ 179 (+123.75%)
Mutual labels:  finance, stock-market, stocks
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+408.75%)
Mutual labels:  finance, stock-market, stocks
Tradestation
EasyLanguage indicators and systems for TradeStation
Stars: ✭ 65 (-18.75%)
Mutual labels:  finance, stock-market, stocks
Iex Api
The IEX API provides any individual or academic, public or private institution looking to develop applications that require stock market data to access near real-time quote and trade data for all stocks trading on IEX.
Stars: ✭ 683 (+753.75%)
Mutual labels:  finance, stock-market, stocks
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (-47.5%)
Mutual labels:  finance, stock-market, stocks
Tiingo Python
Python REST Client for interacting with the Tiingo Financial Data API
Stars: ✭ 152 (+90%)
Mutual labels:  finance, stock-market, stocks
stock-market-scraper
Scraps historical stock market data from Yahoo Finance (https://finance.yahoo.com/)
Stars: ✭ 110 (+37.5%)
Mutual labels:  finance, stock-market, finance-api
tuneta
Intelligently optimizes technical indicators and optionally selects the least intercorrelated for use in machine learning models
Stars: ✭ 77 (-3.75%)
Mutual labels:  finance, stock-market, stocks
Beibo
🤖 Predict the stock market with AI 用AI预测股票市场
Stars: ✭ 46 (-42.5%)
Mutual labels:  finance, stock-market, stocks
Mop
Stock market tracker for hackers.
Stars: ✭ 1,534 (+1817.5%)
Mutual labels:  finance, stock-market, stocks
Pyex
Python interface to IEX and IEX cloud APIs
Stars: ✭ 311 (+288.75%)
Mutual labels:  finance, stock-market, stocks
Sec Edgar Downloader
Download SEC filings from the EDGAR database using Python
Stars: ✭ 146 (+82.5%)
Mutual labels:  finance, stock-market, stocks
cira
Cira algorithmic trading made easy. A Façade library for simpler interaction with alpaca-trade-API from Alpaca Markets.
Stars: ✭ 21 (-73.75%)
Mutual labels:  finance, stock-market, stocks
Investments
Helps you with managing your investments
Stars: ✭ 213 (+166.25%)
Mutual labels:  finance, stocks

fundamentos

License: MIT PyPI version PyPI pyversions Downloads GitHub stars

fundamentos is a tiny, threaded, package that allows you to quickly download historical data from the Brazilian Stock Market, both annualy and quarterly.

The sources from where it downloads data are

Instalation

Install fundamentos using pip:

$ pip install fundamentos

Quick Start

The get_fundamentos function

Get some fundamentals!

From default, the results are grouped by year, but if you want to, you can specify a quarter to download data from. Additionally, if you want to be even more specific, you can specify the year and the quarter from which you want to download.

import fundamentos as ftos

# Downloading data from Itaú Unibanco SA

# Downloads all historical fundamentals, annually
df = ftos.get_fundamentos('ITUB4')

# Downloads all historical fundamentals on third quarters
df = ftos.get_fundamentos('ITUB4', quarter=3)

# Downloads fundamentals from first quarter of 2013
df = ftos.get_fundamentos('ITUB4', year=2013, quarter=1)

The output is a pandas.DataFrame and its columns are hierarchically ordered by topics, which makes it easier to filter the data. However, if you need a regular index of columns you can specify that by passing separated=False as a parameter.

Topics are

  • Mercado - Market
  • Resultados - Income
  • Patrimônio - Net Worth
  • Caixa - Cash
  • Dívida - Debt
  • Liquidez e Solvência - Solvency and Liquidity
  • Fluxo de Caixa - Cash Flow
  • Investimentos - Investments
  • Dividendos - Dividends

So, for example, cash indicators could be accessed separately with

df['Caixa']

quick tip: if you can't understand the acronyms of the indicators you can use ftos.get_schema(), which is a function that returns a pandas.DataFrame with the full name versions of each indicator

The get_tickers function

This function returns a pandas.DataFrame with every company listed on the Brazilian Stock Market, their respective corporate names and codes

import fundamentos as ftos

tickers = ftos.get_tickers()

The get_balanco function

Get some balance sheets!

From default, the results are grouped by year, but if you want to, you can download them quarterly by using quarterly=True

import fundamentos as ftos

# Downloads all historical balance sheets, annually
df = ftos.get_balanco('ITUB4')

# Downloads all historical balance sheets, quarterly
df = ftos.get_balanco('ITUB4', quarterly=True)

As with get_fundamentos, the output is also a pandas.DataFrame with columns hierarchically ordered by topics. You can also deactivate that by passing separated=False as an argument.

Topics are

  • Ativo Total - Total Assets
  • Ativo Circulante - Current Assets
  • Ativo Não Circulante - Non-current Assets
  • Passivo Total - Total Liabilities
  • Passivo Circulante - Current Liabilities
  • Passivo Não Circulante - Non-current Liabilities
  • Patrimônio Líquido - Net Worth

The get_dre function

Get some income statements!

The parameters are pretty similar to thoses in get_balanco

import fundamentos as ftos

# Downloads all historical income statements, annually
df = ftos.get_dre('ITUB4')

# Downloads all historical income statements, quarterly
df = ftos.get_dre('ITUB4', quarterly=True)

The python help function

I tried to be as descriptive as I could on the docstrings, so if you need more information about what each function does you can use

help(function)

License

fundamentos is distributed under the MIT License. See the LICENSE.txt file in the release for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].