Table of Contents

Namespace Virtufin.Core.Events.Trade

Interfaces

ITradeAction

Marker for any action that flows through the trading loop. A trade action is the strategy's intent: buy, sell, cancel, transfer between parties, or express interest in a CLOB before commitment. Implementations form a sealed ADT (TradeAction) and an enriched variant (RichTradeAction).

ITradeEvent<A, T>

Trade event parameterised by the action type that produced it. Used by IExecutor<S, A, E> with the constraint E : ITradeEvent<A> to enforce that an executor producing events for A can only emit events in the TradeEvent<A> hierarchy.