analyze: Analyze data across companies

Any calculation across companies: returns, rankings, medians, multi-condition screens and charts.

What it returns

The result of the calculation you describe across companies, sectors or indices: a table, a ranking, a figure or a chart series.

Inputs

InputRequiredNote
versionyesthe spec version: 2
universenoexactly one of {symbols:[..]} {indices:[..]} {group:{field,equals|in}} {index_members:'NIFTY 500'} {all:true}
columnsnoAn object keyed by column name; each value an object {dataset, metric, stat, window?, entity?} or {derive, ...} or {dim}. Not a string.
filterno{and:[...]} / {or:[...]} of {col, op: gt|gte|lt|lte|eq|ne, value|ref} or {col, between:[lo,hi]} or {dim, in:[..]}
rankno{by: column, dir: 'asc'|'desc'}
limitnorows to list, up to 200; with format csv leave it out to get every row that passes; 1..200
aggregateno{fn, of: column, by?: dimension}, with output 'aggregate'
outputnoone of rows, aggregate, series
seriesno{lines:[{dataset,metric,entity,label}], window, bucket, transform}, with output 'series'
formatnojson (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"

Example questions

Related tools

Data freshness

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.

More