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.0-py3-none-any.whl (101.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for fin_engine_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38ebb07ecdfd1fa370bdaff93c2569eda975abbe9cd150bbe32f72855ce5fb07
MD5 c70a7160031563467ae34b4d20813ded
BLAKE2b-256 e6e3cb2728fb78db220d972b01233bb8698fbf1531fdfe79646b168f7b0f8caf

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

1 file

This release

1.0.0 This release

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