SoftTraderBackend/Interface/IHistoricalMarketDataCache.cs
2026-03-20 10:42:48 -04:00

25 lines
618 B
C#

using Backend.MarketDataRequest;
using Backend.DatabaseHandler;
namespace Backend.Interface
{
public interface IHistoricalMarketDataCache
{
Task<List<HistoricalBarRecord>> GetBarsAsync(
string symbol,
HistoricalBarSize barSize,
HistoricalWhatToShow whatToShow,
bool useRth,
DateTime startUtc,
DateTime endUtc,
CancellationToken cancellationToken = default);
Task UpsertBarsAsync(
IEnumerable<HistoricalBarRecord> bars,
CancellationToken cancellationToken = default);
Task<DateTime?> GetLastTradingDayAsync(
string symbol,
CancellationToken cancellationToken = default);
}
}