LibraryScriptDetail
Includes LibraryScript
Bare slug for the caller's own, chartnaut/slug for built-ins, author/slug for others. Usable as script in POST /runs.
slugstringRequirednamestringRequireddescriptionstringRequiredPlain text; a rich-text description is converted. "" when empty.
authorstringRequiredThe author's username in lowercase, or chartnaut for built-ins.
officialbooleanRequiredTrue for Chartnaut's built-ins.
ownedbooleanRequiredTrue when the caller wrote it.
installedbooleanRequiredTrue when it is someone else's script the caller added to their library.
visibilitystringRequiredBuilt-ins are public.
latest_versionintegerRequired0 when no version has been saved.
adoptionsintegerRequiredNullableInstall count. null for studies.
tagsarray of stringRequiredcategorystringRequiredcreated_atstring (date-time)Requiredupdated_atstring (date-time)Requiredapp_urlstring (uri)RequiredOn GET /library only with include=interface.
Show fields
settingsmap of object · SettingDefShow value fields
typestringAn indicator's settings take their type, bounds and options from its settings dialog.
defaultanyminnumbermaxnumberstepnumberoptionsarray of anyChoices for a select. From an indicator's settings dialog each is {label, value}.
outputsarray of object · OutputDefIndicator only.
Show item fields
idstringnamestringkindstringThe output's declared kind (line, area, baseline, histogram, fill, markers, labels, hline, range, …).
panestringeventsarray of object · EventDefDefinition only. The events it can emit.
Show item fields
idstringintentstringpayload_keysarray of stringresultsarray of objectStudy only. The result blocks it produces.
Show item fields
timeframesarray of string · TimeframeExtra timeframes the script reads besides the run's own.
warmup_barsintegerversionintegerRequiredThe version this response describes. 0 when none has been saved.
Show item fields
refstring · ScriptRefslug or slug@N for your own scripts; author/slug or
author/slug@N for library scripts; chartnaut/slug for built-ins
(which always run their latest version).
asstringThe alias the script uses.
versioninteger