Skip to main content

Query Parameter Combinations

This guide explains the main parameters for CloudQuant Data Liberator queries and the expected results from different combinations.

Core Parameters

ParameterDescriptionDefault
nameDataset identifier (required)
symbolsSingle symbol or list, e.g. ['AAPL','GOOG','MSFT']None (all symbols)
back_toQuery start dateNone
as_ofQuery end dateCurrent date/time
fieldsSpecify desired columns to reduce download timeAll columns
statsSet to 'Total' for symbol counts instead of full results
Use liberator.datasets(entitled=True) to list all datasets available to you.

Query Examples

All parameters included

df = liberator.get_dataframe(liberator.query(
    name = 'daily_bars',
    as_of = '2024-07-24',
    back_to = '2024-07-16',
    symbols = ['AAPL', 'GOOGL']))
Returns data for specified symbols within the date range.

Without symbols

df = liberator.get_dataframe(liberator.query(
    name = 'daily_bars',
    as_of = '2024-07-24',
    back_to = '2024-07-16'))
Defaults to all available symbols.

Without as_of

df = liberator.get_dataframe(liberator.query(
    name = 'daily_bars',
    back_to = '2024-07-22'))
Defaults as_of to current time, returning data from present back to specified date.

Without back_to

df = liberator.get_dataframe(liberator.query(
    name = 'daily_bars',
    as_of = '2023-12-25'))
Returns the most recent data point per symbol as of the specified date. Look-back distance varies by dataset density.

Minimal query (name only)

df = liberator.get_dataframe(liberator.query(name = 'daily_bars'))
Returns the latest data point for all symbols in the dataset.