// // // // // ***************************************** // **** RequestNewTrade **** // ***************************************** public static SyntheticOrder RequestNewOrder(int tradeId) { SyntheticOrder e = new SyntheticOrder(); e.OrderId = tradeId; return(e); }//end Request AllControls
// ***************************************************************** // **** Public Methods **** // ***************************************************************** // // public SyntheticOrder Copy() { SyntheticOrder newSynthOrder = new SyntheticOrder(); this.CopyTo(newSynthOrder); return(newSynthOrder); }
// // // protected void CopyTo(SyntheticOrder newSyntheticOrder) { newSyntheticOrder.OrderId = this.OrderId; newSyntheticOrder.Side = this.Side; newSyntheticOrder.Price = this.Price; newSyntheticOrder.Qty = this.Qty; newSyntheticOrder.TradeReason = this.TradeReason; foreach (SyntheticFill synthFill in this.m_SyntheticFills) { newSyntheticOrder.m_SyntheticFills.Add(synthFill); } }// CopyTo()