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:
Contribuindo
- Faça um fork do repositório
- Crie uma nova branch (
git checkout -b feature/foobar) - Commit suas mudanças (
git commit -am 'Add some feature') - Push para a branch (
git push origin feature/foobar) - Abra um Pull Request
Licença
Distribuído sob a licença MIT. Veja LICENSE para mais informações.
Metadata
Release files for investimentpylucas 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| investimentpylucas-1.0.1.tar.gz | 3.1 kB | Without provenance | Details for investimentpylucas-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| investimentpylucas-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for investimentpylucas-1.0.1-py3-none-any.whl |
Total release size: 6.6 kB
Release files / investimentpylucas-1.0.1.tar.gz
| Download URL | investimentpylucas-1.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d28f6bb500141426fd8be7a370243253b4916ad4ba470de32147126f4d8a9b09
|
|
BLAKE2b-256 checksum How to use checksums |
55398bb1a83cdc99e0793465fbcd8a8855b3ab7f3bc3beb4ebfce3f060f74516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / investimentpylucas-1.0.1-py3-none-any.whl
| Download URL | investimentpylucas-1.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6b62b26bf60f85d87fc6b15bcf1b93fad7e4987efeea012e45135351809161d
|
|
BLAKE2b-256 checksum How to use checksums |
7318353bfd20bd36904c700289a9fa30c121f41e7ded0ff664f15f030afb4983
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for investimentpylucas 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.