16 lines
542 B
C#
16 lines
542 B
C#
using KLHZ.Trader.Core.Contracts.Messaging.Dtos.Interfaces;
|
|
|
|
namespace KLHZ.Trader.Core.Contracts.Declisions.Interfaces
|
|
{
|
|
public interface IPriceHistoryCacheUnit
|
|
{
|
|
public string Figi { get; }
|
|
public int Length { get; }
|
|
public ValueTask AddData(INewPrice priceChange);
|
|
public ValueTask<(DateTime[] timestamps, float[] prices)> GetData();
|
|
public ValueTask AddOrderbook(IOrderbook orderbook);
|
|
public long AsksCount { get; }
|
|
public long BidsCount { get; }
|
|
}
|
|
}
|