C#: Listing Datasets Available from Liberator

public dynamic query(Dictionary<string, dynamic> dict);

The datasets function takes a Dictionary of arguments and returns a list of datasets available in Liberator as a JSON result.

Argument

Description

Type

Example

details

Include details about each dataset. Default value is false

Boolean

{“details”,true}

schema

Include schema of each dataset. Default value is false

Boolean

{“schema",true}

user

The user identifier (as assigned by CloudQuant)

String

{“user”,”myUserID”}

token

The user’s assigned token

String

{“token”,”mypersonal-private- token”}

entitled

Only retrieve entitled datasets.   Default is false

Boolean

{“entitled”, true}

Example Get List of Datasets

Liberator liberator;
var res = liberator.datasets();
Console.WriteLine(JsonDocumentToIndentedString(res));

Output

{'Intraday': ['GSQ ESG Large Cap, Measure Outcome Values', 'Brain BSI 7-Day Sentiment', 'PrecisionAlpha XNAS', 'Brain BSI 30-Day Sentiment', 'Brain BLMCF 10-K Differences', 'Brain BLMCF All Differences', 'Brain BLMCF All Metrics', 'Brain BLMCF 10-K Metrics', 'S3 Partners', 'GSQ ESG MidSmall Cap, Short Term Price Predictor', 'ETFGlobal Industry', 'ETFGlobal Constituents Unaltered', 'ETFGlobal Analytics', 'ETFGlobal Fundflow']}

This will return a list of all available datasets (the demo data above is not what you will have returned).

To get a list of your entitled datasets simply change liberator.datasets() to liberator.datasets(new Dictionary<string, dynamic>(){“entitled”, true})

Liberator liberator;
var res = liberator.datasets(new Dictionary<string, dynamic>()                         {“entitled”, true}
);
Console.WriteLine(JsonDocumentToIndentedString(res));