/* * QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. * Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System; using QuantConnect.Orders; using System.Collections.Generic; namespace QuantConnect.Packets { /// /// Base parameters used by and /// public class BaseResultParameters { /// /// Trade profit and loss information since the last algorithm result packet /// public IDictionary ProfitLoss { get; set; } /// /// Charts updates for the live algorithm since the last result packet /// public IDictionary Charts { get; set; } /// /// Order updates since the last result packet /// public IDictionary Orders { get; set; } /// /// Order events updates since the last result packet /// public List OrderEvents { get; set; } /// /// Statistics information sent during the algorithm operations. /// public IDictionary Statistics { get; set; } /// /// Runtime banner/updating statistics in the title banner of the live algorithm GUI. /// public IDictionary RuntimeStatistics { get; set; } /// /// State information of the algorithm. /// public IDictionary State { get; set; } /// /// The algorithm's configuration required for report generation /// public AlgorithmConfiguration AlgorithmConfiguration { get; set; } /// /// Creates a new instance /// public BaseResultParameters(IDictionary charts, IDictionary orders, IDictionary profitLoss, IDictionary statistics, IDictionary runtimeStatistics, List orderEvents, AlgorithmConfiguration algorithmConfiguration = null, IDictionary state = null) { Charts = charts; Orders = orders; ProfitLoss = profitLoss; Statistics = statistics; RuntimeStatistics = runtimeStatistics; OrderEvents = orderEvents; AlgorithmConfiguration = algorithmConfiguration; State = state; } } }