Beispiel #1
0
        /// <summary>
        /// Creates a Placement Element.
        /// </summary>
        /// <param name="blockOrderDocument">The parent document of this Xml Node.</param>
        /// <param name="placementRow">The placement record used to create the Xml Node.</param>
        public PlacementsElement(BlockOrderDocument blockOrderDocument, ClientMarketData.PlacementRow placementRow) :
            base("Placement", blockOrderDocument)
        {
            // Keep track of the record that created this element.
            this.placementRow = placementRow;

            // Apply the attributes to the element.
            AddAttribute("PlacementId", placementRow.PlacementId);
            AddAttribute("Quantity", placementRow.Quantity);
            AddAttribute("BrokerId", placementRow.BrokerId);
            AddAttribute("BrokerSymbol", placementRow.BrokerRow.Symbol);
        }
Beispiel #2
0
 public PlacementsElement CreatePlacementsElement(ClientMarketData.PlacementRow orderRow)
 {
     return(new PlacementsElement(this, orderRow));
 }