Beispiel #1
0
        public void CanGetMultipleDataPoints()
        {
            var request = new GetMultipleDataPoints {
            };

            request.Tags_IaYoS.Add(DataPointTag.price_date);
            request.Tags_IaYoS.Add(DataPointTag.pricetoearnings);
            request.Identifers_IaYoS.Add("AAPL");
            request.Identifers_IaYoS.Add("GOOGL");
            var response = ApiClient.GetMultipleDataPoints(request);

            Assert.True(response != null);
            Assert.True(response.data.Count == 4);
            Assert.True(response.data.SingleOrDefault(d => d.identifier == "AAPL" && d.item == DataPointTag.price_date) != null);
            Assert.True(response.data.SingleOrDefault(d => d.identifier == "AAPL" && d.item == DataPointTag.pricetoearnings) != null);
            Assert.True(response.data.SingleOrDefault(d => d.identifier == "GOOGL" && d.item == DataPointTag.price_date) != null);
            Assert.True(response.data.SingleOrDefault(d => d.identifier == "GOOGL" && d.item == DataPointTag.pricetoearnings) != null);
        }
Beispiel #2
0
 /// <summary>
 /// http://docs.intrinio.com/#data-point
 /// Query for MULTIPLE data points at one - MUST BE MORE THAN ONE OR ELSE OUR PARSE OF THE RESPONSE DATA WONT WORK
 /// Returns that most recent data point for a selected identifier (ticker symbol, stock market
 /// index symbol, CIK ID, etc.) for a selected tag. The complete list of tags available through
 /// this function are available here. Income statement, cash flow statement, and ratios are
 /// returned as trailing twelve months values. All other data points are returned as their most
 /// recent value, either as of the last release financial statement or the most recent reported value.
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public GetMultipleDataPointsResponse GetMultipleDataPoints(GetMultipleDataPoints request)
 {
     return(GetMetaList <GetMultipleDataPoints, GetMultipleDataPointsResponse>(request));
 }