Skip to main content

Example queries

As of release version 2.0, the P12 client certificate (liberator.pfx) is no longer required. The --cert-type P12 --cert liberator.pfx flags shown in the curl examples below are only needed for releases prior to 2.0.

Last known value

A query without date parameters retrieves the most recent available data.
Rather than displaying the entire result, you can select specific columns or pass a fields parameter to include only the data you need. Some key fields are returned automatically.

Time series queries

Two date parameters control historical data retrieval:
  • as_of — Retrieve data from any past date showing information as known on that date. Defaults to current time. Format: YYYY-MM-DD HH:MM:SS (time optional).
  • back_to — Specifies where the returned dataset begins. Reads all data “back to” the specified date. Format: YYYY-MM-DD HH:MM:SS (time optional).
If as_of and back_to are identical, the result will not be a time series.

Query all symbols

Omit the symbols parameter to retrieve all symbols in a dataset.

Query a live dataset

Set the as_of parameter to "live" for real-time data streaming.

Query stats as JSON

Setting the stats parameter to "total" returns a JSON result with the count per symbol instead of data rows.

Get DataFrame / table

Convert query results into a tabular format native to your language.