Skip to main content

Usage of the as_of parameter

The as_of parameter allows you to query historical data from a specific moment. You can specify it as a date alone (e.g., '2024-07-08') which CloudQuant Data Liberator interprets as midnight that date, or with specific times down to nanosecond precision.
All CloudQuant Data Liberator times are New York Time (US ET).

Default behavior

When you omit the as_of parameter, CloudQuant Data Liberator assumes the current date and time.
In Liberator 2.4 and later, a future as_of on a live-appending dataset is rejected or bounded instead of holding a query worker in an empty-fetch loop. Use as_of at or before “now” unless you are intentionally querying forward-dated records that already exist in the source.

Example query

This returns data for the specified date range.

Without back_to parameter

If you specify as_of but omit or set back_to to None, the query returns data through yesterday’s completed trading bar:

Jupyter notebook configuration

To display more rows in Jupyter:
Consider your data volume and test with smaller queries initially. See Query Considerations for more details.