Skip to content

Command line ​

Every command says what it did. Exit code 0 means cleared, 1 means a gate said no, 2 is a usage error. --json gives machine-readable output and --plain gives text instead of panels. tra --help lists every command and tra <command> --help lists its flags.

Getting started ​

CommandWhat it does
traopens the console
tra init my-desk --profile autonomousa desk wired as the core for the agents; every experiment written off, commented
tra checkevery setting read against the others, with what to fix
tra keys --probeproves every key works, the exchange's included once its keys are set; no key is printed, no prompt or order sent
tra keys --preparethe same, and on a demo or testnet API sets the account to one-way mode when it is hedged and nothing is open
tra models groqthe models your key can use on a provider, read from the vendor; no prompt sent
tra init my-desk --profile autonomous --venue okxa desk wired for one exchange: data, orders, demo or testnet API, keys
tra venuesevery venue the docs describe, and what each can do
tra venues okx --setupwhat a venue can do, and the blocks to paste to trade on it
tra mandatethe text venue mode requires; --sign "Your Name" keeps it as MANDATE.md and signs [execution] in one step, and --venue-mode also turns orders on

Running ​

CommandWhat it does
tra runone autonomous cycle
tra run --every 15m --cycles 12twelve scheduled passes: the first now, then one on every fifteenth minute of the clock
tra run --nowask the roster even if the trigger would have held a quiet market
tra watch --every 5sa read-only view of a running desk
tra auditboth auditors over the records; nothing is applied
tra pause, tra pause --offhold every new entry while open positions keep their exits; lift the hold
tra kill, tra kill --offflatten and stop a running desk at its next pass; disarm
tra hindsightwhat the trades each gate refused would have done, beside the ones it let through
tra arena --instruments BTCUSDT,ETHUSDT --from 2025-07-01 --to 2025-09-30 --spread-bps 1 --slippage-bps 0every row replayed over the market archive and settled the same way (The arena)
tra sizingwhat the desk's own round trips support: the Kelly ceiling, the drawdown ahead, the excursions; changes nothing
tra backtest, tra paper, tra livereplay, paper, canary

Data ​

CommandWhat it does
tra data get BTCUSDT 2025-01-01download a day, verify its checksum, audit it, write Parquet and funding
tra data bars BTCUSDT 2025-07-01 --to 2025-07-31one-minute flow bars from the venue archive and the market's derivatives history, into data/market/ (Market data)
tra data klines BTCUSDT 2021-01-01 --to 2026-10-31hour candles with the taker split, and funding, for arena runs of years, into data/klines/ (The arena)
tra runs verify --market dataevery market day file and hour part against its manifest
tra record, tra record --once 30morder flow, the book, liquidations, derivatives and news kept while they happen, per [record] in data.toml (Market data)
tra record statuscoverage, gaps and latency of the recording over the last day
tra text judge --from 2026-10-25the archived headlines of a range of days, read by the typed judge in [judge] (The typed judge)
tra data audit export.csv --mapping mapping.tomlyour own CSV or Parquet, through the same audit (Your own data)
tra data pull BTCUSDTone live snapshot through the chains in data.toml
tra sources show, tra sources pullwhere the readings' series come from and how old they are; refresh them now
tra sources add macro us10y --from fred --id DGS10 --high bearisha series onto the shelf in one step: pulled now, its lines drawn from its own history
tra universewhich perpetuals discovery finds on the venue now, and what each filter took out
tra runs verifyevery cycle's files against their hashes, and its briefs against its raw inputs
tra runs prune --keep 90dwhat old cycle directories would be removed; add --yes (and --archive) to do it

The ladder, research and hosts ​

CommandWhat it does
tra ladder show, promote, demotewhich tier the desk stands at; one step up with evidence, or down
tra chain floor, observe, check, validatethe research chain, layer by layer (The falsification chain)
tra ledger showevery idea that died, and what killed it
tra agent session, eval, tracethe research session, model comparison, a run read back
tra mcp servethe read-only gates as tools for any MCP host

Released under the MIT License.