Skip to main content

Biblioteca de features quantitativas para algorithmic trading (OHLCV -> features).

Project description

Quantmaster

Biblioteca de features quantitativas para adicionar colunas em pandas.DataFrame com dados OHLCV.

Instalação (desenvolvimento)

pip install -e ".[dev]"

Instalação (uso)

pip install quantmaster

Uso rápido

from quantmaster.features.momentum import rsi
from quantmaster.features.volatility import har_rv
from quantmaster.features.utils import create_all

df["rsi_10"] = rsi(df, window=10)
df = df.join(har_rv(df))

# gerar várias features approved de uma vez (com defaults)
df = create_all(df)

# incluir também features experimentais
# df = create_all(df, include_statuses=["approved", "experimental"])

Importar features de uma vez

Se você quiser importar várias features sem ficar apontando para cada submódulo, use o namespace quantmaster.features (exporta as features públicas em __all__):

from quantmaster.features import rsi, har_rv, yang_zhang_volatility, hurst_dfa

Você também pode fazer import wildcard (não recomendado em código de produção, mas útil em notebooks):

from quantmaster.features import *

Estrutura

  • Features ficam em src/quantmaster/features/ separadas por categoria (Momentum, Trend, Volatility, etc.).
  • Cada feature é uma função que recebe DataFrame (ou Series) e retorna Series (ou DataFrame) alinhado ao índice.

Qualidade

python -m ruff check .
python -m pytest
python -m build

Fluxo Para Agentes

  • Skills locais: .agents/skills/
  • Especificações de feature: feature_specs/
  • Templates de scaffold: templates/
  • Script de scaffold: scripts/new_feature.ps1
  • Script de verificação completa: scripts/agent_verify.ps1

Exemplo de scaffold:

scripts/new_feature.ps1 -Module momentum -Feature my_new_feature -DefaultWindow 20

Verificação ponta a ponta:

scripts/agent_verify.ps1

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

quantmaster-0.2.1.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

quantmaster-0.2.1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file quantmaster-0.2.1.tar.gz.

File metadata

  • Download URL: quantmaster-0.2.1.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantmaster-0.2.1.tar.gz
Algorithm Hash digest
SHA256 64cf79098bfac44dbb4bfe67ec533a008ae8c3cd3a0fc427be9d1cc468596343
MD5 40defc015bad90a43f9f27faf419d82f
BLAKE2b-256 af38f4ccf1e5821c1fff8daca5196c29dc619aa22e731ccc73b4a3800f2a9dac

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantmaster-0.2.1.tar.gz:

Publisher: publish.yml on wolfox33/quantmaster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quantmaster-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: quantmaster-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quantmaster-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d01597716cf41ee110bebe8461080ef03e7939d6d767fffcc1f4d04ef212bc18
MD5 8cd34ebc45343befab8d6d343992a47d
BLAKE2b-256 77e869610f861dbd0e38d63fccd0506233e48689466cfb16d89eb5e6ae34fe90

See more details on using hashes here.

Provenance

The following attestation bundles were made for quantmaster-0.2.1-py3-none-any.whl:

Publisher: publish.yml on wolfox33/quantmaster

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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