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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fin_engine_core-1.0.0-py3-none-any.whl.
File metadata
- Download URL: fin_engine_core-1.0.0-py3-none-any.whl
- Upload date:
- Size: 101.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38ebb07ecdfd1fa370bdaff93c2569eda975abbe9cd150bbe32f72855ce5fb07
|
|
| MD5 |
c70a7160031563467ae34b4d20813ded
|
|
| BLAKE2b-256 |
e6e3cb2728fb78db220d972b01233bb8698fbf1531fdfe79646b168f7b0f8caf
|