Server-side API

KX Refinery lets you query the server for time series data with additional functionality, such as Corporate Action adjustments, applied on demand. The server-side API comprises the following functions.

Function Services Purpose
getTicks Data Query time series data
getStats Analytics Query analytics from time series data
getUDF and associated functions User-defined functions

We assume your familiarity with q language concepts, such as the datatypes.

Parameter dictionary

The API functions take as argument a dictionary of parameters constructed from two lists: keys and values:

`key1`key2`key3!(value1;value2;value3)

Where a dictionary holds a single parameter, enlist both key and value:

enlist[`key1]!enlist value1

While it is common to write q dictionaries in the form keys!values, for legibility larger dictionaries are written here as key-value pairs.

.[!]flip(
    (`key1; value1);
    (`key2; value2);
    (`key3; value3)
  )

DaaS

KX Refinery was originally called DaaS (Data as a Service). For that reason, the word DaaS is prevalent in the code, process and folder names.