Streaming data as it is published into your C++ application
Setting the “as_of” argument to “live” will tell Liberator to query a live dataset.
Example Query Live Dataset
Liberator liberator;
Liberator::Result ptr;
ptr = liberator.query({
{"symbols",std::vector<std::string>{"AAPL"}},
{“name”,"ice_live_nasdaq_composite_564_b"s},
{“as_of”,”live”s}
});
auto generator = *std::get_if<Liberator::Func>(&ptr);
for(auto res=generator(); res.index(); res=generator())
{
auto batch = *std::get_if<2>(&res);
(void)arrow::PrettyPrint(*batch, arrow::PrettyPrintOptions(0, 1),
&std::cout);
}