Пример #1
0
 public async Task <IEnumerable <ILimitTradeEvent> > GetEventsAsync(string clientId)
 {
     return(await _storage.GetDataAsync(LimitTradeEventEntity.GeneratePartitionKey(clientId)));
 }
Пример #2
0
 public Task CreateEvent(string orderId, string clientId, OrderType type, double volume, string assetId,
                         string assetPair, double price, OrderStatus status, DateTime dateTime)
 {
     return(_storage.InsertAsync(LimitTradeEventEntity.Create(orderId, clientId, type, volume, assetId,
                                                              assetPair, price, status, dateTime)));
 }