Skip to main content

Uma biblioteca para análise de investimentos

Project description

InvestPy

InvestPy é uma biblioteca Python para análise de investimentos. Ela permite obter dados de ações, calcular indicadores financeiros e visualizar gráficos de desempenho.

Funcionalidades

  • Obter dados históricos de ações usando a API do Alpha Vantage.
  • Calcular retorno diário das ações.
  • Visualizar gráficos de preços de fechamento das ações.

Requisitos

  • Python 3.6+
  • pandas
  • matplotlib
  • requests
  • pytest

Configuração

Obtenha uma chave de API do Alpha Vantage e substitua 'your_api_key' pela sua chave de API nos exemplos abaixo.

Uso

Depois de importar a biblioteca com o comando pip install investimentpy==1.0.0 e já estiver com a sua KEY da Alpha Vantage, você pode criar um código como no exemplo a seguir:

import investpy

api_key = 'SUA_KEY'

# Obter dados de ação
df = investpy.obter_dados_acao('AAPL', api_key)

# Calcular retorno diário
df = investpy.calcular_retorno_diario(df)

# Plotar dados da ação
investpy.plotar_dados_acao(df)

Resultado: resultado calculo retorno diario

Contribuindo

  1. Faça um fork do repositório
  2. Crie uma nova branch (git checkout -b feature/foobar)
  3. Commit suas mudanças (git commit -am 'Add some feature')
  4. Push para a branch (git push origin feature/foobar)
  5. Abra um Pull Request

Licença

Distribuído sob a licença MIT. Veja LICENSE para mais informações.

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

investimentpy_dridev-1.0.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

investimentpy_dridev-1.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file investimentpy_dridev-1.0.2.tar.gz.

File metadata

  • Download URL: investimentpy_dridev-1.0.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for investimentpy_dridev-1.0.2.tar.gz
Algorithm Hash digest
SHA256 b729c54fe571843e32e0eb0c4457a00f3da2ba4a8e0dbc8838460d84e53b809d
MD5 83964dafbe914397f15a313e587649f1
BLAKE2b-256 7e73cfcc9122f22047b97e4b97cff69b59c6ca77333399c50ace1476229e71f9

See more details on using hashes here.

File details

Details for the file investimentpy_dridev-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for investimentpy_dridev-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8cd90b59c0dfda9742ab1b9cf0534b872384b2de7771b7f7607d4dce044cac
MD5 db830b202e7feae186e61a449ec7a6d3
BLAKE2b-256 f10228161ea741d91fcf0984ce5f5b9a933fe44b6ee8772fceca41f0ad57195b

See more details on using hashes here.

Supported by

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