namespace Managing.Domain.Synth.Models;

/// <summary>
/// Represents a price at a specific time within a simulated path
/// </summary>
public class PricePoint
{
    public decimal Price { get; set; }
    public string Time { get; set; }
    
    /// <summary>
    /// Converts the Time string to DateTime for easier manipulation
    /// </summary>
    public DateTime GetDateTime()
    {
        return DateTime.TryParse(Time, out var dateTime) ? dateTime : DateTime.MinValue;
    }
} 