ChartnautDocs

Remove a script you added from your library

DELETE/library/{author}/{slug}
Base URL
https://api.chartnaut.com/v1
Auth
Bearer key
Operation ID
removeFromLibrary

Removes the library entry only; the scripts added with it stay. Works after the author made the script private or archived it. Your own scripts and chartnaut/ built-ins cannot be removed (400).

Path parameters#

authorstringRequired

The author's username (or me / chartnaut where allowed), in any letter case.

Example bob
slugstringRequired

The script's slug. No @N; a library entry is the live script.

Example vwap-bands

Query parameters#

kindstring

Required when you added an indicator and a definition with that slug.

One of indicator definition

Responses#

200OKapplication/json

Removed.

object
removedtrueRequired
refstringRequired
Example bob/vwap-bands
kindstringRequired
One of indicator definition
400Bad requestapplication/json

invalid_request: your own script or a built-in, @N in the path, or a bad kind.

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
404Not foundapplication/json

not_found: it is not in your library.

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
409Conflictapplication/json

conflict: you added an indicator and a definition with that slug. Pass kind.

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
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