public async Task <ResponseModel <InitPricesResponse> > InitPricesWithFilterV2([FromBody] InitPricesFilteredRequest request) { var clientId = this.GetClientId(); if (clientId == null) { return(this.UserNotFoundError <InitPricesResponse>()); } var initPrices = await _rpcFacade.InitPrices(clientId, request?.AssetIds); var result = new InitPricesResponse { Prices = initPrices.Values.ToArray(), ServerTime = _dateService.Now() }; return(ResponseModel <InitPricesResponse> .CreateOk(result)); }
public async Task <ResponseModel <Dictionary <string, BidAskClientContract> > > InitPricesWithFilter([FromBody] InitPricesFilteredRequest request) { var clientId = this.GetClientId(); if (clientId == null) { return(this.UserNotFoundError <Dictionary <string, BidAskClientContract> >()); } var initPrices = await _rpcFacade.InitPrices(clientId, request?.AssetIds); return(ResponseModel <Dictionary <string, BidAskClientContract> > .CreateOk(initPrices)); }