Interface IMCPContext

Portfolio snapshot passed to getMessages, keyed by traded symbol. One entry per live instance of the schema's strategy.

Indexable

  • [symbol: string]: {
        closedSignal: ISignalCloseRow;
        createdSignal: ISignalDto;
        currentPrice: number;
        pendingSignal: IPublicSignalRow;
    }
    • closedSignal: ISignalCloseRow

      Deferred user-initiated close waiting to be drained, or null if none queued

    • createdSignal: ISignalDto

      Signal DTO queued to open a position on the next tick, or null if none queued

    • currentPrice: number

      Current VWAP price of the symbol

    • pendingSignal: IPublicSignalRow

      Active position with unrealized PnL computed at currentPrice, or null if none open