Any calculation across companies: returns, rankings, medians, multi-condition screens and charts.
The result of the calculation you describe across companies, sectors or indices: a table, a ranking, a figure or a chart series.
| Input | Required | Note |
|---|---|---|
version | yes | the spec version: 2 |
universe | no | exactly one of {symbols:[..]} {indices:[..]} {group:{field,equals|in}} {index_members:'NIFTY 500'} {all:true} |
columns | no | An object keyed by column name; each value an object {dataset, metric, stat, window?, entity?} or {derive, ...} or {dim}. Not a string. |
filter | no | {and:[...]} / {or:[...]} of {col, op: gt|gte|lt|lte|eq|ne, value|ref} or {col, between:[lo,hi]} or {dim, in:[..]} |
rank | no | {by: column, dir: 'asc'|'desc'} |
limit | no | rows to list, up to 200; with format csv leave it out to get every row that passes; 1..200 |
aggregate | no | {fn, of: column, by?: dimension}, with output 'aggregate' |
output | no | one of rows, aggregate, series |
series | no | {lines:[{dataset,metric,entity,label}], window, bucket, transform}, with output 'series' |
format | no | json (the default) returns the figures; csv returns a private download link to a CSV file (valid 15 minutes) and a short preview; one of json, csv; default "json" |
Prices and indicators are end of day, as of the last close. Company figures are as filed, each with its date. There are no live prices.