示例#1
0
        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));
        }
示例#2
0
        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));
        }