Skip to main content

Documentation Index

Fetch the complete documentation index at: https://knowledge.cloudquant.com/llms.txt

Use this file to discover all available pages before exploring further.

C# SDK Getting Started

The CloudQuant Data Liberator C# SDK streams data as Arrow Record Batches, which can be converted to Microsoft DataFrames.

Required Security Files

You need the following files from your Downloads ZIP, placed in your working directory:
  • liberator.json — Contains your Username and Token
  • liberator.pfx — Security certificate (only required for releases prior to 2.0)
liberator.json must be in your working directory.
As of release version 2.0, liberator.pfx is no longer required. If you are on a release prior to 2.0, you must also include liberator.pfx in your working directory.

Quick Start

Query and Iterate Record Batches

Liberator liberator;
var res = liberator.query(new Dictionary<string, dynamic>() {
    {"name", "daily_bars"},
    {"as_of", "2021-04-10"},
    {"back_to", "2021-03-10"},
    {"symbols", "ES"}
});

foreach (RecordBatch batch in res())
{
    var df = DataFrame.FromArrowRecordBatch(batch);
    Console.WriteLine(DateTime.Now.ToString("hh:mm:ss.fff") + " " + DataFrameUtils.PrettyPrint(df));
}

Get DataFrame Directly

var res = liberator.query(new Dictionary<string, dynamic>() {
    {"name", "daily_bars"},
    {"as_of", "2021-04-10"},
    {"back_to", "2021-03-10"},
    {"symbols", "ES"}
});

var df = liberator.get_dataframe(res);
Console.WriteLine(DataFrameUtils.PrettyPrint(df));