mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-24 20:12:20 +00:00
24 lines
797 B
C#
24 lines
797 B
C#
using Daybreak.Shared.Attributes;
|
|
using Daybreak.Shared.Models.Trade;
|
|
|
|
namespace Daybreak.Configuration.Options;
|
|
|
|
[OptionsName(Name = "Trade Alerts")]
|
|
internal sealed class TradeAlertingOptions
|
|
{
|
|
[OptionIgnore]
|
|
[OptionSynchronizationIgnore]
|
|
public TimeSpan MaxLookbackPeriod { get; set; } = TimeSpan.FromDays(31);
|
|
|
|
[OptionIgnore]
|
|
[OptionSynchronizationIgnore]
|
|
public DateTime LastCheckTime { get; set; } = DateTime.MinValue;
|
|
|
|
[OptionIgnore]
|
|
public List<ITradeAlert> Alerts { get; set; } = [];
|
|
|
|
[OptionName(Name = "Alerts Interval", Description = "The amount of seconds in between checking for alerts based on trade messages and quotes")]
|
|
[OptionRange<double>(MinValue = 30d, MaxValue = 1440d)]
|
|
public double QuoteAlertsInterval { get; set; } = 30;
|
|
}
|