20 lines
481 B
C#
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);
|
|
}
|
|
} |