Cancel a queued or running run
/runs/{run_id}/cancel- Base URL
https://api.chartnaut.com/v1- Auth
- Bearer key
- Operation ID
cancelRun
Path parameters#
run_idstringRequiredResponses#
200OKapplication/json
The run, now cancelled (or already terminal).
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