/// <summary>
        /// Sends Historical bar data request with given properties
        /// </summary>
        /// <param name="security"></param>
        /// <param name="barType"></param>
        /// <param name="startDate"></param>
        /// <param name="endDate"></param>
        /// <param name="interval"></param>
        /// <param name="dataProvider"></param>
        public void SubmitHistoricDataRequest(Security security, string barType, DateTime startDate, DateTime endDate, uint interval, MarketDataProvider dataProvider)
        {
            // Create a new Subscription request
            SubscriptionRequest subscriptionRequest = new SubscriptionRequest(security,
                                                                              dataProvider, MarketDataType.Historical, SubscriptionType.Subscribe);

            // Set Bar details
            subscriptionRequest.SetHistoricalBarDetails(barType, interval, startDate, endDate);

            EventSystem.Publish <SubscriptionRequest>(subscriptionRequest);
        }