Listing datasets
Thedatasets function retrieves a JSON-formatted list of all datasets available in CloudQuant Data Liberator, with optional filtering and metadata.
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
entitled | Only retrieve datasets you have access to | Boolean | false |
schema | Include dataset descriptions and metadata | Boolean | false |
details | Include column-level information (names, descriptions). Requires schema to also be set. | Boolean | false |
user | Your CloudQuant-assigned user identifier | String | — |
token | Your assigned authentication token | String | — |
List all datasets
import liberator
res = liberator.datasets()
print(res)
Liberator liberator;
var res = liberator.datasets();
Console.WriteLine(JsonDocumentToIndentedString(res));
let dataset_params = {
schema: false,
details: true
};
liberator.datasets(dataset_params).then(function(results) {
// Your code
});
Liberator liberator = new Liberator();
Object datasets_id = liberator.datasets(new HashMap<>());
for (Liberator.QueryResult res : liberator.Generate()) {
Object data = res.GetData();
if (data instanceof javax.json.JsonValue) {
System.out.println((javax.json.JsonValue) data);
}
}
print(liberator::datasets())
Liberator liberator;
auto ptr = liberator.datasets({});
auto json = *std::get_if<0>(&ptr);
if (json)
{
rapidjson::StringBuffer buf;
rapidjson::Writer<rapidjson::StringBuffer> writer(buf);
json->Accept(writer);
std::cout << buf.GetString() << std::endl;
}
Example output
{
"Intraday": ["SSR_Forward_DSI", "Halt_Production_DSI", "SSR_Production_DSI", "News", "Twitter", "Stocktwits"],
"Monthly": ["Joblink Ticker Mapping", "VerticalKnowledge Indeed"],
"Market Data": ["daily_bars", "minute_bars", "nbbo", "trades", "daily_bars_adjusted"]
}
List entitled datasets only
Filter results to show only datasets matching your access permissions.liberator.datasets(entitled=True)
var res = liberator.datasets(new Dictionary<string, dynamic>() {
{"entitled", true}
});
Object datasets_id = liberator.datasets(new HashMap<>() {{
put("entitled", true);
}});
print(liberator::datasets(entitled=TRUE))
liberator.datasets({{"entitled", true}});
Include schema and column details
# Schema only
liberator.datasets(schema=True)
# Schema with column details
liberator.datasets(schema=True, details=True)
var res = liberator.datasets(new Dictionary<string, dynamic>() {
{"schema", true},
{"details", true}
});
print(liberator::datasets(schema=TRUE, details=TRUE))
liberator.datasets({{"schema", true}, {"details", true}});

