Skip to main content

fin-engine-core

Shared core library for fin-engine microservices.

Contratos Estables (v1)

OrderSignal

Intención de orden generada por el brain.

from fin_engine_core import OrderSignal, SIDE_BUY, SIDE_SELL

signal = OrderSignal(
    side=SIDE_BUY,
    simbolo="AAPL",
    razon="SCORE>THRESHOLD",
    score=0.45,
    regimen="TRENDING",
)

NotificationEvent

Evento de notificación para el notifier.

from fin_engine_core import NotificationEvent

event = NotificationEvent(
    tipo="venta",
    usuario="pedro",
    simbolo="AAPL",
    pnl=12.34,
)

EventBus

Interfaz pub/sub abstraída.

from fin_engine_core import RedisSignalBus, InMemorySignalBus

bus = RedisSignalBus(host="localhost", port=6379)
bus.publicar("señales", signal)

Domain Models

from fin_engine_core import (
    AccountSnapshot,
    PositionSnapshot,
    snapshot_desde_estado,
    OrderJournal,
    OrderStateMachine,
    TradingCalendar,
    get_category,
    get_et_now,
    get_cl_now,
    is_market_open_et,
)

Instalación

pip install fin-engine-core==1.0.0

Versionado

SemVer estricto. v1.x = estable. Breaking changes = v2.0.0.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

fin_engine_core-1.0.1-py3-none-any.whl (188.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fin_engine_core-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce5fa8f1194d9647151537294ba116eec57a8e00ed06d6783ac7b1b625083e9b
MD5 d3d4a512dd63a4641fd93887a5e0e047
BLAKE2b-256 08823b2c6badbcf5532872b2a3c76687a1103fd96414ed847335a2d9941bfa99

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page