ChartnautDocs

The Script object

A Script is one of your indicators, definitions or studies. List scripts returns its list form; Get a script, Create a script, Save a script version and Update script details return the full form.

Fields

The list form carries the first eight fields. The full form adds version, interface, dependencies and, with include=source on Get a script, files.

Field

Type

Description

slug

string

The script's slug. It never changes, even when the name does

kind

string

indicator, definition or study

name

string

Display name

description

string

Description, or ""

visibility

string

private or public

latest_version

integer

The newest version's number. 0 when the script has no version yet

updated_at

string

When the script last changed

app_url

string

Opens the script in Chartnaut

version

integer

The version this response describes. 0 when the script has no version yet

interface

Interface

What Chartnaut read from this version's code

dependencies

array of Dependency

The scripts this version depends on

files

array of File

This version's source. Present only with include=source