ChartnautDocs

Get what the run produced

GET/runs/{run_id}/results
Base URL
https://api.chartnaut.com/v1
Auth
Bearer key
Operation ID
getRunResults

Shape depends on the run's kind:

  • indicator → output series (time, value) per declared output
  • definition → emitted events
  • study → result blocks (metric, table, distribution, …)

Paginated. Large study blocks are omitted by default and fetched by keys. format=csv returns one flat table (indicator: one column per output; definition: one row per event; study: requires one keys).

Path parameters#

run_idstringRequired
Example run_01J9ZK3Q8C4

Query parameters#

outputsstring

Indicator only. Comma list of output ids. Default all.

eventstring

Definition only. Filter by declared event id.

keysstring

Study only. Comma list of result keys to return in full.

fullboolean

Study only. Return every block's data. Subject to the size cap.

Default false
fromstring (date-time)
tostring (date-time)
formatstring
One of json csvDefault json
cursorstring

Opaque cursor from a previous page's next_cursor.

limitinteger
Default 501 to 500

Responses#

200OKapplication/json

Results.

one of 3 types

One of, chosen by kind

IndicatorResults
kind"indicator"Required
run_idstringRequired
outputsarray of object
Show item fields
idstring
kindstring
One of line area baseline histogram fill markers labels hlines ranges trendlines
pointsarray of object

Unix seconds. line|area|baseline: {t, v} (v is null where the script produced no finite value). histogram: {t, v, color?}. fill: {t, top, bottom}. markers|labels|hlines|ranges|trendlines: {t, data}; the last three are returned as one output each, id = kind.

Show item fields
tinteger
vnumber
next_cursorstringNullable
DefinitionResults
kind"definition"Required
run_idstringRequired
eventsarray of object · Event
Show item fields
eventstring

The declared event id.

intentstring
instrumentstring
timeframestring · Timeframe
One of 1m 5m 15m 30m 1h 2h 4h 1d 1w 1mo
startstring (date-time)
endstring (date-time)
bar_indexinteger
payloadobject
next_cursorstringNullable
StudyResults
kind"study"Required
run_idstringRequired
resultsarray of object
Show item fields
keystring
kindstring · StudyResultKind
One of metric series distribution boxplot heatmap scatter bar table vega annotation prose popover_layout
titlestring
dataany

Present for metric always, and for other kinds when named in keys or with full=true. Shapes: metric {value}, series [{x,y,series?}], distribution [{lo,hi,mid,count}], boxplot [{group,values[]}], heatmap [{x,y,value}], scatter [{x,y,group?}], bar [{cat,value,series?}], table [object], vega object.

omittedboolean

True when data was left out. Fetch with keys=<key>.

sizeinteger

Rows in the full data.

caveatsarray of string

Interpretation warnings (small sample, overlapping events, …).

truncatedboolean

True if the 1 MB response cap cut data.

409Conflictapplication/json

The run is not finished, or it failed or was cancelled (run_not_finished).

object · Error
errorobjectRequired
Show fields
codestringRequired

Stable. Branch on this, never on message.

One of unauthorized forbidden_scope plan_limit not_found version_conflict script_invalid in_use out_of_coverage unknown_instrument ambiguous_instrument unsupported_timeframe run_not_finished rate_limited busy invalid_request forbidden conflict not_in_library confirmation_required not_shared not_installable not_implemented authorization_pending slow_down access_denied expired_token internal
messagestringRequired
detailsobject
docs_urlstring (uri)
request_idstring
410Goneapplication/json

The run's results expired (7 days).

object · Error
errorobjectRequired
Show fields
codestringRequired

Stable. Branch on this, never on message.

One of unauthorized forbidden_scope plan_limit not_found version_conflict script_invalid in_use out_of_coverage unknown_instrument ambiguous_instrument unsupported_timeframe run_not_finished rate_limited busy invalid_request forbidden conflict not_in_library confirmation_required not_shared not_installable not_implemented authorization_pending slow_down access_denied expired_token internal
messagestringRequired
detailsobject
docs_urlstring (uri)
request_idstring
ErrorAny other statusapplication/json

Error.

object · Error
errorobjectRequired
Show fields
codestringRequired

Stable. Branch on this, never on message.

One of unauthorized forbidden_scope plan_limit not_found version_conflict script_invalid in_use out_of_coverage unknown_instrument ambiguous_instrument unsupported_timeframe run_not_finished rate_limited busy invalid_request forbidden conflict not_in_library confirmation_required not_shared not_installable not_implemented authorization_pending slow_down access_denied expired_token internal
messagestringRequired
detailsobject
docs_urlstring (uri)
request_idstring