using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using QuantConnect.Api;
using QuantConnect.Orders;
using QuantConnect.Packets;
namespace QuantConnect.API
{
///
/// Details a live algorithm from the "live/read" Api endpoint
///
public class LiveAlgorithmResults : RestResponse
{
///
/// Represents data about the live running algorithm returned from the server
///
public LiveResultsData LiveResults { get; set; }
}
///
/// Holds information about the state and operation of the live running algorithm
///
public class LiveResultsData
{
///
/// Results version
///
[JsonProperty(PropertyName = "version")]
public int Version { get; set; }
///
/// Temporal resolution of the results returned from the Api
///
[JsonProperty(PropertyName = "resolution"), JsonConverter(typeof(StringEnumConverter))]
public Resolution Resolution { get; set; }
///
/// Class to represent the data groups results return from the Api
///
[JsonProperty(PropertyName = "results")]
public LiveResult Results { get; set; }
}
}