Skip to main content

Script para mostrar dados de fundos de investimento.

Project description

fundosbr - Mostra informações sobre fundos de investimentos brasileiros

build PyPI - Python Version codecov GitHub License Code style: black

Script que baixa informações direto do site da CVM e mostra detalhes dos fundos de investimento.

Instalação

pip install fundosbr

Os arquivos csv baixados do site da CVM são armazenados no diretório /tmp/fundosbr_dados. Se quiser alterar, edite o arquivo "fundosbr.py" e modifique a variável "CSV_FILES_DIR".

Ajuda

user@localhost: ~$ fundosbr
usage: fundosbr [-h] [-d] {busca,informe,compara,rank} ...

Informacoes sobre fundos de investimentos

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           debug flag

Comandos:
  {busca,informe,compara,rank}
    busca               Busca fundo
    informe             Informes fundo
    compara             Comparas fundos
    rank                Rank fundos

    Example of use:
        fundosbr busca -h
        fundosbr busca -n verde
        fundosbr busca -c 22.187.946/0001-41
        fundosbr busca -n "ip participa" -t acoes
        fundosbr informe -h
        fundosbr informe 73.232.530/0001-39 -datainicio 202011 -datafim 202012
user@localhost: ~$ fundosbr informe -h
usage: fundosbr informe [-h] [-datainicio DATAINICIO] [-datafim DATAFIM] [-m] cnpj

positional arguments:
  cnpj                  CNPJ do fundo

optional arguments:
  -h, --help            show this help message and exit
  -datainicio DATAINICIO
                        Data inicio (YYYYMM)
  -datafim DATAFIM      Data fim (YYYYMM)
  -m, --mensal          Mostra estatistica mensal
user@localhost: ~$ fundosbr compara -h
usage: fundosbr compara [-h] [-datainicio DATAINICIO] [-datafim DATAFIM] [-m] cnpj

positional arguments:
  cnpj                  CNPJ do fundo

optional arguments:
  -h, --help            show this help message and exit
  -datainicio DATAINICIO
                        Data inicio (YYYYMM)
  -datafim DATAFIM      Data fim (YYYYMM)
  -m, --mensal          Mostra estatistica mensal

Exemplo de uso:

Procura um fundo pelo nome:

Mostra os informes de um fundo:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fundosbr-0.1.1.tar.gz (13.3 kB view hashes)

Uploaded Source

Built Distribution

fundosbr-0.1.1-py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page