Expand description
Trading-specific server wiring.
Holds the trading adapter for the generic
melin-server-runtime pipeline:
exchange_app::ServerApp— theApplication-impl newtype wrappingmelin_exchange_core::exchange::Exchange(orphan-rule workaround: the trait lives inmelin-app, the engine inmelin-exchange-core, so the impl can only attach here).app_factory::Factory—AppFactoryimpl that builds empty / seed-ready exchanges and yields the bulk-seed events the runtime journals on first start.request_decoder::RequestDecoder— wire-Request→TradingEventdecoder.response_encoder::ResponseEncoder—ExecutionReport/QueryResponse→ wire encoder.event_publisher— market-data firehose.
Re-exports§
pub use app_factory::Factory;pub use exchange_app::ServerApp;pub use request_decoder::RequestDecoder;pub use response_encoder::ResponseEncoder;
Modules§
- app_
factory - Trading-side
AppFactoryimplementation. - event_
publisher - Event publisher — broadcasts execution events to TCP subscribers with book-snapshot-on-subscribe support.
- exchange_
app Applicationimpl for the trading engine.- request_
decoder - Trading-side
RequestDecoderimplementation. - response_
encoder - Trading-side
ResponseEncoderimplementation.