ChartnautDocs

List a definition's events

GET/scripts/{slug}/events
Base URL
https://api.chartnaut.com/v1
Auth
Bearer key
Operation ID
listDefinitionEvents

Every event this definition has collected in Chartnaut — from the app or through collectDefinition — across instruments, timeframes and windows. Studies read these. Runs return only their own events; this is the stored history. Own definitions only.

Path parameters#

slugstringRequired

Your script's slug, optionally pinned as slug@N.

Pattern ^[a-z0-9][a-z0-9-]{1,62}(@[0-9]+)?$Example vwap-reclaim@3

Query parameters#

instrumentstring
timeframestring · Timeframe
One of 1m 5m 15m 30m 1h 2h 4h 1d 1w 1mo
eventstring

Declared event id.

fromstring (date-time)

Events starting at or after (RFC 3339).

tostring (date-time)

Events ending at or before (RFC 3339).

versioninteger

Only events collected by this version.

wherestring

Payload filters as JSON: [{"key":"range","op":"gt","value":10}]. Ops: eq neq contains gt gte lt lte between (valueTo) is_empty is_not_empty.

formatstring
One of json csvDefault json
cursorstring

Opaque cursor from a previous page's next_cursor.

limitinteger
Default 1001 to 1000

Responses#

200OKapplication/json

A page of events, oldest first.

object
eventsarray of object · Event
Show item fields
eventstring

The declared event id.

intentstring
instrumentstring
timeframestring · Timeframe
One of 1m 5m 15m 30m 1h 2h 4h 1d 1w 1mo
startstring (date-time)
endstring (date-time)
bar_indexinteger
payloadobject
totalinteger
next_cursorstringNullable
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