public static bool IsCompleted(this BfxOrderState state) { switch (state) { case BfxOrderState.OrderFailed: case BfxOrderState.Executed: case BfxOrderState.Canceled: case BfxOrderState.CancelFailed: case BfxOrderState.Completed: case BfxOrderState.Expired: return(true); default: return(false); } }
void ChangeState(BfxOrderState state) { Log.Trace($"Parent order status changed: {AcceptanceId} {State} -> {state}"); State = state; }