All Projects → RPCastro07 → pybacen

RPCastro07 / pybacen

Licence: other
This library was developed for economic analysis in the Brazilian scenario (Investments, micro and macroeconomic indicators)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pybacen

Fecon235
Notebooks for financial economics. Keywords: Jupyter notebook pandas Federal Reserve FRED Ferbus GDP CPI PCE inflation unemployment wage income debt Case-Shiller housing asset portfolio equities SPX bonds TIPS rates currency FX euro EUR USD JPY yen XAU gold Brent WTI oil Holt-Winters time-series forecasting statistics econometrics
Stars: ✭ 708 (+1670%)
Mutual labels:  finance, time-series, pandas
Alpha vantage
A python wrapper for Alpha Vantage API for financial data.
Stars: ✭ 3,553 (+8782.5%)
Mutual labels:  finance, pandas, stock
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-30%)
Mutual labels:  finance, pandas, stock
Fecon236
Tools for financial economics. Curated wrapper over Python ecosystem. Source code for fecon235 Jupyter notebooks.
Stars: ✭ 72 (+80%)
Mutual labels:  finance, time-series, pandas
Pandas Datareader
Extract data from a wide range of Internet sources into a pandas DataFrame.
Stars: ✭ 2,183 (+5357.5%)
Mutual labels:  finance, pandas
Learnpythonforresearch
This repository provides everything you need to get started with Python for (social science) research.
Stars: ✭ 163 (+307.5%)
Mutual labels:  finance, pandas
ark-invest-api
📈 API for tracking holdings and trades of ARK Invest funds
Stars: ✭ 49 (+22.5%)
Mutual labels:  finance, stock
Trading Backtest
A stock backtesting engine written in modern Java. And a pairs trading (cointegration) strategy implementation using a bayesian kalman filter model
Stars: ✭ 247 (+517.5%)
Mutual labels:  finance, stock
Indicators.jl
Financial market technical analysis & indicators in Julia
Stars: ✭ 130 (+225%)
Mutual labels:  finance, time-series
Finance
Here you can find all the quantitative finance algorithms that I've worked on and refined over the past year!
Stars: ✭ 194 (+385%)
Mutual labels:  finance, pandas
mtss-gan
MTSS-GAN: Multivariate Time Series Simulation with Generative Adversarial Networks (by @firmai)
Stars: ✭ 77 (+92.5%)
Mutual labels:  finance, time-series
Pipeline Live
Pipeline Extension for Live Trading
Stars: ✭ 154 (+285%)
Mutual labels:  finance, pandas
Alphalens
Performance analysis of predictive (alpha) stock factors
Stars: ✭ 2,130 (+5225%)
Mutual labels:  finance, pandas
Alpha Mind
quantitative security portfolio analysis. The analysis pipeline including data storage abstraction, alpha calculation, ML based alpha combining and portfolio calculation.
Stars: ✭ 171 (+327.5%)
Mutual labels:  finance, stock
Tushare
TuShare is a utility for crawling historical data of China stocks
Stars: ✭ 11,288 (+28120%)
Mutual labels:  finance, pandas
Finance Python
python tools for Finance with the functionality of indicator calculation, business day calculation and so on.
Stars: ✭ 238 (+495%)
Mutual labels:  finance, stock
wallstreet
Stock Quotes and Charts for the Terminal
Stars: ✭ 75 (+87.5%)
Mutual labels:  finance, stock
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+965%)
Mutual labels:  finance, stock
pystockfilter
Financial technical and fundamental analysis indicator library for pystockdb.
Stars: ✭ 26 (-35%)
Mutual labels:  finance, stock
web trader
📊 Python Flask game that consolidates data from Nasdaq, allowing the user to practice buying and selling stocks.
Stars: ✭ 21 (-47.5%)
Mutual labels:  finance, stock

Pybacen

This library was developed for economic analysis in the Brazilian scenario (Investments, micro and macroeconomic indicators)

Installation

Install using pip

pip install pybacen

Usage

Time Series Bacen

from pybacen.bacen import time_series # Source: SGS - Sistema Gerenciador de Séries Temporais - v2.1 (Bacen - Banco Central)

# To consult the Bacen code, use it as a parameter when consulting the time series
list_code_bacen = time_series.read_bacen_code(search_text='%CDI%ANUALIZADA%252%', period= 'D', unit= '% a.a.')

list_code_bacen
COD_BACEN NM_SERIE UNIDADE PERIODICIDADE FONTE ESPECIAL
4015 4389 Taxa de juros - CDI anualizada base 252 % a.a. D BCB-Demab N
ts = time_series.read_time_series(bacen_code= 4389, start='2021-11-04', end='2021-11-04', as_index=True)

ts
valor
date
2021-11-04 7.65

Stock Quote - Yahoo Finance

from pybacen.yahoo_finance import stocks # Source: Yahoo Finance - Stock Quote

# Ibovespa - 2021-11-05
sq = stocks.read_stock_quote(stock_code='^BVSP', start= '2021-11-05', end= '2021-11-05', as_index= True)

sq
open high low close volume adjclose
date
2021-11-05 103412.0 105555.0 103412.0 104824.0 12595000.0 104824.0

Requirements

Using pandas datareader requires the following packages:

  • pandas>=1.0
  • requests>=2.19.0
  • plotly>=5.3.1

Install latest development version

python -m pip install pybacen

or

git clone https://github.com/RPCastro07/pybacen.git
cd pybacen
python setup.py install
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].