ChartnautDocs

List scripts

GET/scripts

Returns your indicators, definitions and studies, most recently changed first, without their source. Call it to find a script's slug and latest version.

Scope

Heavy call

Long poll

CLI

scripts:read

No

No

chartnaut ls

Guidance

  • Only your own scripts come back. Search the library finds built-ins and other people's scripts, with the ref to run them by.

  • Each item is the list form of a Script: no interface, dependencies or files. Call Get a script for those.

  • latest_version is the number to send as base_version when you save. A 0 means the script has no version yet.

  • q is a plain substring match on slug, name and description, in any letter case. It is not ranked.

  • An unknown kind returns an empty page, not an error, so check the spelling when a filtered list comes back empty.

Query parameters

Name

Type

Required

Default

Description

kind

string

No

All kinds

indicator, definition or study. Any other value returns an empty page

q

string

No

None

Keeps scripts whose slug, name or description contains this text, in any letter case

limit

integer

No

50

Most 500

cursor

string

No

None

From the previous page's next_cursor

Response

200 with a page whose data is an array of Script in its list form.

Status codes

Status

Code

Meaning

200

-

A page of your scripts

500

internal

Your scripts could not be read. Retry