Пример #1
0
        public void CanSearchHistoricalData()
        {
            var request = new SearchHistoricalData
            {
                EndDate_IaYoS   = new DateTime(2015, 1, 1),
                StartDate_IaYoS = new DateTime(1995, 12, 1)
            };

            request.identifier = "AAPL";
            request.item       = DataPointTag.accruedexpenses;
            //request.type = HistoricalDataType.QTR;
            var requestUrl = request.ToGetUrl();

            Assert.True(request.start_date == "1995-12-01");
            Assert.True(request.end_date == "2015-01-01");
            var response = ApiClient.SearchHistoricalData(request);

            Assert.True(response != null);
            Assert.True(response.identifier == request.identifier);
            Assert.True(response.data.Count > 0);
            Assert.True(response != null);
        }
Пример #2
0
 /// <summary>
 /// http://docs.intrinio.com/#historical-data
 /// Returns that historical data for for a selected identifier (ticker symbol or index symbol)
 /// 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 by default, but can be changed with the type parameter. All other historical data points
 /// are returned as their value on a certain day based on filings reported as of that date.
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public SearchHistoricalDataResponse SearchHistoricalData(SearchHistoricalData request)
 {
     return(GetMetaList <SearchHistoricalData, SearchHistoricalDataResponse>(request));
 }