protected override Task <OrderBookLevelBulk> LoadSnapshotInternal(string pair, int count) { // TODO: how to simulate and what to do with count? // request a snapshot which will be received by Handle method var request = new MarketByPricePullRequest("pX", pair, 20); _client.Send(request); // nothing to stream here... return(Task.FromResult(default(OrderBookLevelBulk))); }
private async Task StartMarketByPriceExample(string symbol) { var subscribeRequest = new MarketByPriceSubscribeRequest(GetNextId(), symbol, 5); _client.Send(subscribeRequest); await Task.Delay(1000); var pullRequest = new MarketByPricePullRequest( GetNextId(), symbol, 20); _client.Send(pullRequest); }