ChartnautDocs

Runs and results

Every run has an id, printed on the first line of chartnaut run. The summary run prints is a digest; chartnaut runs results <id> fetches everything the run produced, and chartnaut runs lists your runs, including the study runs you made in the app. From your own code the same calls are Create a run, Get run results and List runs.

List runs

$ chartnaut runs --limit 3
ID                    KIND        SCRIPT            INSTRUMENT       TF  STATUS     CREATED
run_8d1q0v5m2k7w3x9a  study       bull-bar-count@1  HYPERLIQUID:ETH  5m  succeeded  2026-09-26 10:02
run_2b7c4n8p1r6t0y3e  definition  inline            HYPERLIQUID:BTC  5m  succeeded  2026-09-26 09:55
run_4k2m9x7q1b8z3n5p  indicator   inline            HYPERLIQUID:BTC  1h  succeeded  2026-09-26 09:41
more: --cursor 3

--script <slug> keeps one script's runs (inline for runs of local folders) and --status failed keeps the failures. chartnaut runs get <id> prints one run as run did, and --watch follows a run you started with --no-wait until it finishes.

The results of an indicator or definition run are kept for 7 days. After that, runs results answers This run's results expired. Run it again. A study's results stay as long as the study run does.

Compare instruments

Give --on a comma list and run starts one run per instrument, three at a time, then prints one row each:

$ chartnaut run definitions/bull-bar --on BTC,ETH --tf 5m --last 90d
INSTRUMENT  STATUS     BARS   EVENTS_TOTAL  BULL_BAR  RUN / ERROR
BTC         succeeded  25920  12910         12910     run_6h2j9k4l7m1n5p8q
ETH         succeeded  25920  12780         12780     run_3s8d1f6g0h4j2k7l

An indicator shows BARS and each output's last value. A definition shows BARS, EVENTS_TOTAL and a column per event. A study shows EVENTS_PROCESSED and its metrics. A row that failed shows the error in the last column, and the exit code is the worst of the runs.

Each run takes one of your runs at once, shared with the app. With fewer free than instruments, indicator and definition runs wait their turn. A study run that finds none free fails with busy and exit code 5 once the CLI's retries run out.

Full results

chartnaut runs results <id> prints a readable view by default, --json the full document and --format csv a CSV. Results come a page at a time; --all follows every page, for CSV too.

Script

What comes back

Narrow it with

Indicator

Every output's points: time in unix seconds and value

--outputs ema, --from, --to

Definition

Every event: its id, start, end, instrument and payload

--event bull_bar, --from, --to

Study

Every result block: its key, kind, title and data

--keys rows, --full

--from and --to take full timestamps, such as 2026-09-01T00:00:00Z.

A definition's events look like this:

$ chartnaut runs results run_2b7c4n8p1r6t0y3e --limit 3
3 events
START             EVENT     INSTRUMENT       PAYLOAD
2026-06-29 13:35  bull_bar  HYPERLIQUID:BTC  {"range":161.5}
2026-06-29 13:45  bull_bar  HYPERLIQUID:BTC  {"range":88}
2026-06-29 13:55  bull_bar  HYPERLIQUID:BTC  {"range":104.25}
more: --cursor 3 (or --all)

Study result blocks

A study run prints events_processed and a link to the run in the app. Its results are blocks, one per results.declare in the script. Metrics come back inline; every other block is listed with its size until you ask for it:

$ chartnaut runs results run_8d1q0v5m2k7w3x9a
[metric] summary · Event count: 4102
[table] rows · Events: 4102 rows omitted (fetch with --keys rows)

--keys rows returns that block in full and --full returns every block. One response holds at most 1 MB of block data. A block that does not fit is left out and the response ends with note: response was truncated at the size cap; fetch fewer keys. For a large table, fetch it alone as CSV: --keys rows --format csv.

What each block kind holds is on Results and stats.

CSV

--format csv prints CSV to the terminal, and run … --out results.csv writes it to a file after the run:

Script

Columns

Indicator

time, then one per output, with a fill as .top and .bottom

Definition

event,intent,instrument,timeframe,start,end,bar_index,payload

Study

The columns of one table block. Needs exactly one key in --keys

run --out results.csv writes every page under one header row. runs results --format csv prints one page, 5,000 rows by default, and tells you the next --cursor; add --all for every page. With several instruments, --out writes one file per instrument, named after the full symbol.

Study runs made in the app

Study runs you start in the app, or that the Agent starts for you, are listed with --source app, or next to the CLI's runs with --source all. Their ids start with srun_.

$ chartnaut runs --source app --limit 1
ID         KIND   SCRIPT            INSTRUMENT       TF  STATUS     CREATED
srun_1532  study  bull-bar-count@3  HYPERLIQUID:BTC  5m  succeeded  2026-09-25 18:20

runs get and runs results read them the same way. runs get ends with an app: link to the same run in the app, where the report is laid out as Read the results describes.

A study run's results page in the app
The same study run, opened in the app from its link.