/*
* 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;
namespace QuantConnect
{
///
/// Model class for passing in parameters for historical data
///
public class DataDownloaderGetParameters
{
///
/// Symbol for the data we're looking for.
///
public Symbol Symbol { get; set; }
///
/// Resolution of the data request
///
public Resolution Resolution { get; set; }
///
/// Start time of the data in UTC
///
public DateTime StartUtc { get; set; }
///
/// End time of the data in UTC
///
public DateTime EndUtc { get; set; }
///
/// The type of tick to get
///
public TickType TickType { get; set; }
///
/// Initialize model class for passing in parameters for historical data
///
/// Symbol for the data we're looking for.
/// Resolution of the data request
/// Start time of the data in UTC
/// End time of the data in UTC
/// [Optional] The type of tick to get. Defaults to
public DataDownloaderGetParameters(Symbol symbol, Resolution resolution, DateTime startUtc, DateTime endUtc, TickType? tickType = null)
{
Symbol = symbol;
Resolution = resolution;
StartUtc = startUtc;
EndUtc = endUtc;
TickType = tickType ?? TickType.Trade;
}
///
/// Returns a string representation of the object.
///
/// A string representing the object's properties.
public override string ToString() => $"Symbol: {Symbol}, Resolution: {Resolution}, StartUtc: {StartUtc}, EndUtc: {EndUtc}, TickType: {TickType}";
}
}