예제 #1
0
        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);
            }
        }
예제 #2
0
 void ChangeState(BfxOrderState state)
 {
     Log.Trace($"Parent order status changed: {AcceptanceId} {State} -> {state}");
     State = state;
 }