コード例 #1
0
 public EOrderDecoder(EDecoder eDecoder, Contract contract, Order order, OrderState orderState, int msgVersion, int serverVersion)
 {
     this.eDecoder      = eDecoder;
     this.contract      = contract;
     this.order         = order;
     this.orderState    = orderState;
     this.msgVersion    = msgVersion;
     this.serverVersion = serverVersion;
 }
コード例 #2
0
        public override bool Equals(Object other)
        {
            if (this == other)
            {
                return(true);
            }

            if (other == null)
            {
                return(false);
            }

            OrderState state = (OrderState)other;

            if (commission != state.commission ||
                minCommission != state.minCommission ||
                maxCommission != state.maxCommission)
            {
                return(false);
            }

            if (Util.StringCompare(status, state.status) != 0 ||
                Util.StringCompare(initMarginBefore, state.initMarginBefore) != 0 ||
                Util.StringCompare(maintMarginBefore, state.maintMarginBefore) != 0 ||
                Util.StringCompare(equityWithLoanBefore, state.equityWithLoanBefore) != 0 ||
                Util.StringCompare(initMarginChange, state.initMarginChange) != 0 ||
                Util.StringCompare(maintMarginChange, state.maintMarginChange) != 0 ||
                Util.StringCompare(equityWithLoanChange, state.equityWithLoanChange) != 0 ||
                Util.StringCompare(initMarginAfter, state.initMarginAfter) != 0 ||
                Util.StringCompare(maintMarginAfter, state.maintMarginAfter) != 0 ||
                Util.StringCompare(equityWithLoanAfter, state.equityWithLoanAfter) != 0 ||
                Util.StringCompare(commissionCurrency, state.commissionCurrency) != 0 ||
                Util.StringCompare(completedTime, state.completedTime) != 0 ||
                Util.StringCompare(completedStatus, state.completedStatus) != 0)
            {
                return(false);
            }

            return(true);
        }
コード例 #3
0
 public virtual void completedOrder(Contract contract, Order order, OrderState orderState)
 {
 }
コード例 #4
0
 public virtual void openOrder(int orderId, Contract contract, Order order, OrderState orderState)
 {
 }