Skip to main content

Query Parameters Reference

This page documents the parameters for the query function across all CloudQuant Data Liberator SDKs. Parameter names are consistent across languages; only the types and calling conventions differ.

Parameters

ParameterDescriptionTypeRequired
nameThe name of the dataset to queryStringYes
symbolsSecurity trading symbol(s) to query. Omit to retrieve all symbols in the dataset.String or ListNo
as_ofThe point in time for data retrieval. Defaults to now. Accepts any past date to view data as it was known on that date. Format: YYYY-MM-DD HH:MM:SS (time portion optional).StringNo
back_toThe start date for time series data. Retrieves all data “back to” the specified date. Format: YYYY-MM-DD HH:MM:SS (time portion optional).StringNo
urlThe CloudQuant Data Liberator server URL. Defaults to https://api.cloudquant.ai. Can also be set to an IP address, e.g. http://127.0.0.1:47753.StringNo
systemThe authorized system name for your query. Almost always "API".StringNo
fieldsFilter the returned columns to only those specified. Mandatory fields cannot be removed.String or ListNo
statsSet to "total" to receive a JSON result containing the count per symbol instead of data rows.StringNo
crux_keyAPI key for querying Crux datasets.StringNo
compressData compression on the wire. CloudQuant uses compression by default. Set to "compressed_transfer" or true.String or BooleanNo
json_xferJSON transfer mode. Usually false.BooleanNo
userYour user identifier as assigned by CloudQuant.StringNo
tokenYour assigned authentication token.StringNo
debug_streamOutput stream for log/debug information. Language-specific type (e.g., stderr() in R, std::ostream* in C++, System.IO.TextWriter in C#).StreamNo
warning_streamOutput stream for warning information. Same type conventions as debug_stream.StreamNo
record_limitLimit the number of records returned.IntegerNo
SQLSQL passthrough query (where supported by the dataset).StringNo

Date Parameter Behavior

If as_of and back_to are identical, the result will not be a time series.
The time component is always used even when not specified. as_of: "2023-01-15" is interpreted as as_of: "2023-01-15 00:00:00". This may affect result precision depending on your data requirements.

Authentication

The user and token parameters can be provided per-query or configured once at the SDK level:
  • Python: Set via the liberator.json file in your working directory
  • JavaScript: Use liberator.set_default("query", credentials) to avoid passing them every time
  • RESTful: Include in each request’s JSON body
  • Other SDKs: Loaded from liberator.json in the working directory