Get a run's status, progress and summary
/runs/{run_id}- Base URL
https://api.chartnaut.com/v1- Auth
- Bearer key
- Operation ID
getRun
Path parameters#
run_idstringRequiredQuery parameters#
waitintegerBlock up to this many seconds for the run to finish.
Responses#
200OKapplication/json
The run has finished (succeeded, failed or cancelled).
idstringkindstring · ScriptKindscriptstringThe resolved ref that ran (vwap-reclaim@3), or inline.
instrumentstringThe instrument's display symbol (short in /instruments).
timeframestring · TimeframewindowobjectThe resolved window after clamping.
Show fields
fromstring (date-time)tostring (date-time)settingsobjectstatusstring · RunStatusprogressobjectShow fields
pctnumberphasestringfailureobjectNullableShow fields
kindstring · FailureKindWhy a run failed. retryable on the run says whether trying again can help.
messagestringretryablebooleandiagnosticsarray of object · DiagnosticShow item fields
severitystringRequiredcodestringmessagestringRequiredpathstringlineintegersettingstringThe setting a finding is about, if any.
summaryobjectNullableSmall, always inline once finished.
indicator: {bars, outputs:{id:{last, min, max, count}}, warnings?, errors?}
definition: {bars, events_total, events_kept?, by_event:{id:count}, warnings?, errors?}
study: {events_processed}
errors are runtime errors on some bars; the run still produced results.
consolearray of objectNullableThe first 50 console lines the script printed. null until the run has finished, or when it printed nothing.
Show item fields
levelstringmessagestringtimestring (date-time)usageobjectShow fields
barsintegerBars evaluated, warmup and dependencies included.
compute_unitsnumberapp_urlstring (uri)NullableStudy runs only; indicator and definition runs are not stored in the app.
results_expire_atstring (date-time)created_atstring (date-time)started_atstring (date-time)Nullablefinished_atstring (date-time)Nullable202Acceptedapplication/json
The run is still queued or running (after wait, if given). Poll again.
idstringkindstring · ScriptKindscriptstringThe resolved ref that ran (vwap-reclaim@3), or inline.
instrumentstringThe instrument's display symbol (short in /instruments).
timeframestring · TimeframewindowobjectThe resolved window after clamping.
Show fields
fromstring (date-time)tostring (date-time)settingsobjectstatusstring · RunStatusprogressobjectShow fields
pctnumberphasestringfailureobjectNullableShow fields
kindstring · FailureKindWhy a run failed. retryable on the run says whether trying again can help.
messagestringretryablebooleandiagnosticsarray of object · DiagnosticShow item fields
severitystringRequiredcodestringmessagestringRequiredpathstringlineintegersettingstringThe setting a finding is about, if any.
summaryobjectNullableSmall, always inline once finished.
indicator: {bars, outputs:{id:{last, min, max, count}}, warnings?, errors?}
definition: {bars, events_total, events_kept?, by_event:{id:count}, warnings?, errors?}
study: {events_processed}
errors are runtime errors on some bars; the run still produced results.
consolearray of objectNullableThe first 50 console lines the script printed. null until the run has finished, or when it printed nothing.
Show item fields
levelstringmessagestringtimestring (date-time)usageobjectShow fields
barsintegerBars evaluated, warmup and dependencies included.
compute_unitsnumberapp_urlstring (uri)NullableStudy runs only; indicator and definition runs are not stored in the app.
results_expire_atstring (date-time)created_atstring (date-time)started_atstring (date-time)Nullablefinished_atstring (date-time)NullableErrorAny other statusapplication/json
Error.
errorobjectRequiredShow fields
codestringRequiredStable. Branch on this, never on message.
messagestringRequireddetailsobjectdocs_urlstring (uri)request_idstring