Xaye.Fred.Fred.GetSeriesSearch C# (CSharp) Méthode

GetSeriesSearch() public méthode

Get economic data series that match keywords. Corresponds to http://api.stlouisfed.org/fred/series/search
public GetSeriesSearch ( string searchText, System.DateTime realtimeStart, System.DateTime realtimeEnd, SearchType type = SearchType.FullText, int limit = 1000, int offset, Series orderBy = Series.OrderBy.SearchRank, SortOrder order = SortOrder.Ascending, Series filter = Series.FilterBy.None, string filterValue = "" ) : IEnumerable
searchText string The words to match against economic data series.
realtimeStart System.DateTime The start of the real-time period.
realtimeEnd System.DateTime The end of the real-time period.
type SearchType Determines the type of search to perform. /// 'full_text' searches series attributes title, units, frequency, and notes by parsing words into stems. /// This makes it possible for searches like 'Industry' to match series containing related words such as 'Industries'. /// Of course, you can search for multiple words like 'money' and 'stock'. Remember to url encode spaces (e.g. 'money%20stock'). /// 'series_id' performs a substring search on series IDs. Searching for 'ex' will find series containing 'ex' anywhere in /// a series ID. '*' can be used to anchor searches and match 0 or more of any character. Searching for 'ex*' will /// find series containing 'ex' at the beginning of a series ID. Searching for '*ex' will find series containing /// 'ex' at the end of a series ID. It's also possible to put an '*' in the middle of a string. 'm*sl' finds any /// series starting with 'm' and ending with 'sl'. /// optional, default: full_text.
limit int The maximum number of results to return. An integer between 1 and 1000, optional, default: 1000
offset int non-negative integer, optional, default: 0
orderBy Series Order results by values of the specified attribute.
order SortOrder Sort results is ascending or descending order for attribute values specified by order_by.
filter Series The attribute to filter results by.
filterValue string The value of the filter_variable attribute to filter results by.
Résultat IEnumerable
        public IEnumerable<Series> GetSeriesSearch(string searchText, DateTime realtimeStart, DateTime realtimeEnd,
            SearchType type = SearchType.FullText,
            int limit = 1000,
            int offset = 0,
            Series.OrderBy orderBy = Series.OrderBy.SearchRank,
            SortOrder order = SortOrder.Ascending,
            Series.FilterBy filter = Series.FilterBy.None,
            string filterValue = "")
        {
            var url = Format(Urls.SeriesSearch, _key, realtimeStart.ToFredDateString(),
                realtimeEnd.ToFredDateString(), limit, offset, Extensions.ToString(orderBy),
                Extensions.ToString(order), Extensions.ToString(filter),
                filterValue, Extensions.ToString(type), Uri.EscapeUriString(searchText));

            return CreateSeries(url);
        }

Same methods

Fred::GetSeriesSearch ( string searchText, SearchType type = SearchType.FullText ) : IEnumerable