/// <summary>
        /// Publishes a SOD record
        /// </summary>
        private void PublishStartOfDayRecord()
        {
            StartOfDayRequiredFields requiredFields = new StartOfDayRequiredFields();

            requiredFields.InstrumentDetails = m_settings.Instrument.NativeInstrument.InstrumentDetails;
            requiredFields.OrderFeed         = m_settings.OrderFeed;

            requiredFields.MemberId = m_settings.Member;
            requiredFields.GroupId  = m_settings.Group;
            requiredFields.TraderId = m_settings.Trader;
            requiredFields.Username = m_settings.Username;

            requiredFields.BuySell  = m_settings.BuySell;
            requiredFields.Quantity = Quantity.FromInt(m_settings.Instrument.NativeInstrument, m_settings.Quantity);

            StartOfDayRecord sodRecord = new StartOfDayRecord(requiredFields);

            if (m_settings.RiskAccount != null && m_settings.RiskAccount.Trim() != String.Empty)
            {
                sodRecord.RiskAccount = m_settings.RiskAccount;
            }

            double price;
            bool   isDouble = double.TryParse(m_settings.Price, out price);

            if (isDouble)
            {
                sodRecord.Price = Price.FromString(m_settings.Instrument.NativeInstrument, m_settings.Price);
            }

            string errorMessage = "";

            if (!m_TTAPI.Session.RiskManager.Publish(sodRecord, out errorMessage))
            {
                MessageBox.Show(String.Format("Publish failed with: {0}", errorMessage));
            }
        }
        /// <summary>
        /// Publishes a SOD record
        /// </summary>
        private void PublishStartOfDayRecord()
        {
            StartOfDayRequiredFields requiredFields = new StartOfDayRequiredFields();
            requiredFields.InstrumentDetails = m_settings.Instrument.NativeInstrument.InstrumentDetails;
            requiredFields.OrderFeed = m_settings.OrderFeed;

            requiredFields.MemberId = m_settings.Member;
            requiredFields.GroupId = m_settings.Group;
            requiredFields.TraderId = m_settings.Trader;
            requiredFields.Username = m_settings.Username;

            requiredFields.BuySell = m_settings.BuySell;
            requiredFields.Quantity = Quantity.FromInt(m_settings.Instrument.NativeInstrument, m_settings.Quantity);

            StartOfDayRecord sodRecord = new StartOfDayRecord(requiredFields);

            if (m_settings.RiskAccount != null && m_settings.RiskAccount.Trim() != String.Empty)
            {
                sodRecord.RiskAccount = m_settings.RiskAccount;
            }

            double price;
            bool isDouble = double.TryParse(m_settings.Price, out price);
            if (isDouble)
            {
                sodRecord.Price = Price.FromString(m_settings.Instrument.NativeInstrument, m_settings.Price);
            }

            string errorMessage = "";
            if (!m_TTAPI.Session.RiskManager.Publish(sodRecord, out errorMessage))
            {
                MessageBox.Show(String.Format("Publish failed with: {0}", errorMessage));
            }
        }