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; }
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); }
public virtual void completedOrder(Contract contract, Order order, OrderState orderState) { }
public virtual void openOrder(int orderId, Contract contract, Order order, OrderState orderState) { }