SoftTraderBackend/DatabaseHandler/HistoricalMarketDataCache.cs
2026-03-20 10:42:48 -04:00

20 lines
481 B
C#

using Backend.MarketDataRequest;
namespace Backend.DatabaseHandler
{
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);
}
}