Skip to main content

EOD Price Production and Overnight Batch Chain

Versioned, immutable end-of-day closing-price production gated behind a durable event, driving one downstream position-marking consumer.

  • Inherits architectural baseline from: YU05-post-trade-compliance
  • Generated from: system/architecture.model.json
  • Canonical flows: ../001-baseline-uncontainerized-parity/system/end-to-end-flows.md

Architecture Diagram​

Node Catalog​

NodeKindLabelNotes
opsactorOps / AdminTriggers session close, resolves flagged prices via override, publishes.
cronserviceEOD Session-Close CronJobScheduled trigger calling the same session-close endpoint an operator uses.
price_publisherservicePrice PublisherExisting last-trade feed (pricing.*) that EOD production reads from.
trade_processorserviceTrade ProcessorHosts EOD price production: classify, version, override, publish, emit gate event.
mariadbserviceMariaDBVersioned closing-price snapshot tables and the consumer's P&L result table.
natsserviceNATS JetStreamDurable stream carrying EOD_PRICES_READY and eod.pnl.done.
position_serviceservicePosition ServiceEOD consumer: marks positions against the published snapshot version, fail-safe per account.
prometheusservicePrometheusScrapes EOD chain metrics from both services.
grafanaserviceGrafanaEOD batch chain dashboard: published/flagged/marked/halted, chain latency.