ChartnautDocs

List your scripts

GET/scripts
Base URL
https://api.chartnaut.com/v1
Auth
Bearer key
Operation ID
listScripts

Query parameters#

kindstring · ScriptKind
One of indicator definition study
qstring

Substring match on slug, name and description.

cursorstring

Opaque cursor from a previous page's next_cursor.

limitinteger
Default 501 to 500

Responses#

200OKapplication/json

A page of scripts (no source).

object

Includes Page

next_cursorstringNullable
dataarray of object · ScriptSummary
Show item fields
idstring

The script's id for the Terminal SDK and partner API: ind_<n> for an indicator, flw_<n> for a definition. Pass it to cn.scripts.publish({ script }) or chart.scripts.add. Absent for a study.

Example ind_1298
slugstring
kindstring · ScriptKind
One of indicator definition study
namestring
descriptionstring
visibilitystring · Visibility

Studies are always private; setting visibility on a study is refused with 400.

One of private public
latest_versioninteger
updated_atstring (date-time)
app_urlstring (uri)

Opens this script in the Chartnaut app.

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