C#: Query Live Dataset in Liberator

Setting the “as_of” argument to “live” will tell Liberator to perform a live query.

Example Live Query

Liberator liberator;
var res = liberator.query(new Dictionary<string, dynamic>() {
                    {"name","ice_live_nasdaq_composite_564_b" },
                    {"as_of","live" },
                    { "symbols","AAPL"}
                    });

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