ChartnautDocs

Make an insight active, so it shows on your charts of its definition, instrument and timeframe

POST/insights/{insight_id}/activate
Base URL
https://api.chartnaut.com/v1
Auth
Bearer key
Operation ID
activateInsight

Works for your own insights and ones you added. One insight is active per definition, instrument and timeframe: activating where another is active replaces it (replaced), and never needs a slot. Otherwise it takes one of the plan's Forward Insights on charts (Free 1, Pro 5); when they are full the refusal names the active ones, so you can deactivate one first. Activating one that is already active changes nothing.

Path parameters#

insight_idstringRequired
Pattern ^ins_[0-9]+$Example ins_61

Responses#

200OKapplication/json

Active.

object
insightstringRequired
Example ins_61
activebooleanRequired
Only true
statestringRequired

paused when the account is over its plan's limit (after a downgrade): active but not shown until it fits.

One of live paused
replacedarray of string

The insights it took the place of on the same definition, instrument and timeframe. Absent when none.

in_useintegerRequired

Active insights now, live and paused.

limitone of 2 types · ActiveInsightsLimitRequired

The plan's Forward Insights on charts: a number, or unlimited.

Show options

One of

integer
At least 0
string
Only unlimited
400Bad requestapplication/json

invalid_request: the insight cannot be made active (for example its series no longer resolves).

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
403Forbiddenapplication/json

plan_limit: your charts hold the plan's Forward Insights on charts. details.limit is the limit and details.active the active insights (ActiveInsight); deactivate one and try again.

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: no such insight in your list.

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