19 lines
498 B
C#
19 lines
498 B
C#
using NordPool.Models;
|
|
|
|
namespace NordPoolManager.Interface;
|
|
|
|
public interface INordPoolPriceService
|
|
{
|
|
NordPoolPrice? TodayNordPoolPrice { get; }
|
|
NordPoolPrice? TomorrowNordPoolPrice { get; }
|
|
double CurrentPrice { get; }
|
|
int DayQuartersIndex { get; }
|
|
DateTime? LastUpdatedDate { get; }
|
|
DateOnly? LastFetchedDate { get; }
|
|
|
|
Task FetchPricesAsync();
|
|
double UpdateCurrentPrice();
|
|
bool ShouldFetchNewPrices(DateOnly today);
|
|
void RollOverPrices(DateOnly today);
|
|
}
|