Paradigm creates Strategies, comprised of one or more Instruments.
strategy_state.{venue}.{kind} WS Channel.state == ACTIVE.Upon a Strategy Instrument’s expiration, the underlying venue settles the contract.
strategy_state.{venue}.{kind} WS Channel.state == SETTLED.Paradigm may choose to expire a Strategy from being available to trade.
strategy_state.{venue}.{kind} WS Channel.state == EXPIRED.For a Trade to occur, two Orders must cross upon a Strategy’s Order Book.
From the WS Channel orders.{venue}.{kind}.{strategy_id}, the state key indicates if the Order has reached finality. If state == OPEN, then the Order still has available amount which can be actioned by the creator or another user. If state == CLOSED, the Order no longer has any actions available by the creator or another user. If state == CLOSED, the Order will be either canceled, pending clearing & settlement on the underlying venue or has already reached finality at clearing.
You should closely follow the values from the following keys amount, pending_fill_amount, filled_amount, canceled_amount.
orders.{venue}.{kind}.{strategy_id} WS Channel.state == OPEN.state == CLOSED.trades.{venue}.{kind}.{strategy_id} WS Channel.state == FILLED for successfully cleared trades, state == REJECTED for unsuccessful trade clearing.