Skip to main content

Uma biblioteca para análise de investimentos

Project description

InvestPy

investimentpylucas é 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 investimentpylucas==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 investimentpylucas

api_key = 'SUA_KEY'

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

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

# Plotar dados da ação
investimentpylucas.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

investimentpylucas-1.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

investimentpylucas-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file investimentpylucas-1.0.1.tar.gz.

File metadata

  • Download URL: investimentpylucas-1.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for investimentpylucas-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d28f6bb500141426fd8be7a370243253b4916ad4ba470de32147126f4d8a9b09
MD5 3e3de51a3e90ea30ad020af2ac196569
BLAKE2b-256 55398bb1a83cdc99e0793465fbcd8a8855b3ab7f3bc3beb4ebfce3f060f74516

See more details on using hashes here.

File details

Details for the file investimentpylucas-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for investimentpylucas-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6b62b26bf60f85d87fc6b15bcf1b93fad7e4987efeea012e45135351809161d
MD5 9733778a3df80ea719d7680932912f18
BLAKE2b-256 7318353bfd20bd36904c700289a9fa30c121f41e7ded0ff664f15f030afb4983

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