Beispiel #1
0
        public async Task <RestResponse> RestAsync(RestIdentity identity, RestRequest request)
        {
            try
            {
                RestResponse response = await RestCaller.SendAsync(identity, request).Free();

                return(response);
            }
            catch (Exception ex) when(!(ex is OfflineApiException))
            {
                throw new ApiException(string.Format(CultureInfo.InvariantCulture, "{2} {1} {0}", request.Url, request.Method, ex.Message), ex);
            }
        }
 public HistoricalQuotesService()
 {
     this.restCaller = new RestCaller();
     this.reader     = new HistoricalCandleReader();
 }
 public LatestQuotesService()
 {
     this.restCaller = new RestCaller();
 }