# Vike documentation > Docs for Vike Trader (the Rust trading platform). The Vike Data API is > documented at https://vike.io/data/api (its own index: https://vike.io/llms.txt). > Page links below are relative to https://vike.io — append .md to any > page URL for its raw-markdown twin, or fetch /trader/docs/llms-full.txt for > everything in one file. # Docs - Trader: The Vike trading platform - **Start here** - [Vike Trader](/trader/docs): A Rust trading platform — a desktop GUI, a headless daemon and an agent-native CLI over one execution core, one backtester and 14 venue bridges. - Getting started - [Getting started](/trader/docs/getting-started): Pick the surface you actually want — the desktop app, the headless daemon, the data service or the one-shot runner — then install it and run something that cannot reach a real account. - [What is Vike Trader?](/trader/docs/getting-started/what-is-vike-trader): Three surfaces over one execution core, fourteen venue bridges, a backtester that shares its fill model with paper trading, and a safety model in which every venue starts on paper. - [Where it runs](/trader/docs/getting-started/deployment-targets): The desktop app, the headless daemon, the data service, the standalone runner and the two container images — what each can do, who manages it, and what it needs. - [Requirements](/trader/docs/getting-started/requirements): Windows and Linux, no macOS build; what each surface needs in GPU, memory, disk and network, with the numbers that were measured rather than guessed. - [Install with Docker](/trader/docs/getting-started/install-docker): One backend image and one viewer image, a project folder mounted from your disk, and a first paper mount that can reach nothing real. - [Install on Windows](/trader/docs/getting-started/install-windows): The two Windows assets, the unknown-publisher prompt on an unsigned executable, one project folder, and the first launch. - [Install on Linux](/trader/docs/getting-started/install-linux): The release assets, the checksum, one project folder with everything in it, the first commands, and the systemd unit when you want the daemon to outlive your shell. - [Updating](/trader/docs/getting-started/updating): What a release is, how to tell which build is running, the order to update in, image tags, the runtime tools, and what a version bump does to a write-ahead journal. - [Quickstart: first backtest](/trader/docs/getting-started/quickstart-backtest): Zero credentials to a report — scaffold the examples, seed the demo tape, and run the shipped strategy through the data service or the standalone runner. - [Quickstart: first paper mount](/trader/docs/getting-started/quickstart-paper): A live Binance feed, every venue on the paper exchange, and a first order that cannot reach a real account. - [Your first chart](/trader/docs/getting-started/first-chart): Launch the desktop app, find a symbol in the cross-venue picker, and read what the live chart is actually showing you. - [Glossary](/trader/docs/glossary): The terms the concepts pages define — ceiling, mount, lane, fold, divergence, emulated order, terminal, wiring class, kind, run and their neighbours — one line each, with the symbol behind the word and a link to the page that defines it. - **Concepts** - Concepts - [Concepts](/trader/docs/concepts): How Vike Trader is put together — the crate layering, the single-writer core, the seam every venue implements, the order state machine, the gates in front of a live order, and the data the whole system shares. - [Architecture](/trader/docs/concepts/architecture): A Cargo workspace whose dependency direction is down-only and machine-checked, and one startup sequence that every binary runs through the same owner. - [The execution core](/trader/docs/concepts/execution-core): One dedicated thread owns all mutable trading state and is its only mutator; everything reaches it through one totally-ordered queue, so determinism is by construction rather than by locking. - [The ExecutionClient seam](/trader/docs/concepts/execution-client-seam): The one trait every venue bridge implements — only submit and cancel are required, every state change comes back as an event, and one method exists precisely so a venue never overrides it. - [Order lifecycle](/trader/docs/concepts/order-lifecycle): Every order folds through one state machine with one mutator, must reach exactly one terminal state, and may never silently vanish — and a shared harness proves that against every venue's real decoder. - [Risk and arming](/trader/docs/concepts/risk-and-arming): The gates between an order and the wire, in the order they run — the per-venue arming ceiling read before any credential, the credential gate behind it, the pre-trade RiskGate on every order, and the halt — with paper the default under all of them. - [The data model](/trader/docs/concepts/data-model): The value types every crate shares — bars and ticks, the L2 book and its one delta-apply law, the per-symbol instrument grid, the fill primitive, the twenty-variant Event enum the core consumes — and the interning rule that decides which fields may be a pointer. - [The history store](/trader/docs/concepts/hist-store): One Parquet store under the project, thirteen declared layouts, a gate that derives the live set from the code, many parts per day, and the resolver that decides where the store lives when nobody said. - [The paper exchange](/trader/docs/concepts/paper-exchange): Paper trading is the backtest fill model running behind the live core's own seam, built from the same primitives — so backtest equals paper by construction, and a gate proves it bit-for-bit rather than asserting it. - [The parity gate](/trader/docs/concepts/parity-gate): Frozen golden fixtures compared bit-for-bit, a second oracle in the vectorized kernel, and one rule that outlived the oracle the fixtures came from — a tolerance is never widened to make a test pass. - [The latency gate](/trader/docs/concepts/latency-gate): The execution core's fold is measured in CI on reserved cores and gated on its tail, not its median — and only three of the harness's variants gate on a derived budget, because an uncalibrated ceiling is worse than no gate at all. - [Settings](/trader/docs/concepts/settings): One directory, five files split by who is allowed to change a value — and the risk ceilings have no environment layer at all, because a ceiling you can raise from a shell export is not a ceiling. - [The event bus](/trader/docs/concepts/event-bus): A defer-and-deliver FIFO whose delivery order is load-bearing, whose handler reports whether it actually folded an event, and whose drain guard salvages the event a panic was holding. - [Ingest lanes](/trader/docs/concepts/ingest-lanes): The producer-side channels every venue adapter holds — lossless where a missed message is a hole, latest-wins where only the freshest value matters — and why they live one crate below the core that drains them. - [The account](/trader/docs/concepts/account): Positions and realized PnL are a read model folded from the fill stream, with one writer, no equity cache, insertion-ordered sums pinned by the parity gate, and a fill-dedup ledger welded to the money it protects. - [Contingent orders](/trader/docs/concepts/contingency): One-triggers-other arming and one-cancels-other cancellation are decided by a single resolver that every fill lane calls, so the paper book and the backtest broker can no longer disagree about what a bracket does. - [Halt](/trader/docs/concepts/halt): An engaged halt stops orders that open risk and admits orders that close it; the two mechanisms that enforce that rule agree on policy and differ only in how much they can verify. - [Margin calls](/trader/docs/concepts/margin-call): A pure margin-call model over the live account computes liquidation intents that the core submits through the normal risk gate, on one liquidation law whose pool is the parameter, priced by the same resolver the operator sees. - [The price board](/trader/docs/concepts/price-board): One cell per (venue, symbol) holds a price from every source that has spoken, and a side-aware read walks them in a fixed order so a position is valued at the price it could actually be exited at. - [Emulated orders](/trader/docs/concepts/emulated-orders): The core keeps its own book of stop and trailing-stop arms for venues and strategies without native conditional orders; arming bypasses the risk gate, and only the fire crosses it, as a plain market order. - [The dead-man's switches](/trader/docs/concepts/dead-mans-switch): Two of them, with opposite defaults because they read opposite evidence — the connection switch is on unless you turn it off and trips on a link the venue's own bridge reports dead; the silence switch is off unless you write the key and trips on a feed that has gone quiet, which is also what a closed market looks like. - [The watchdog](/trader/docs/concepts/watchdog): The core's cold-path sweeps — a confirm-grace ladder for orders stuck before acknowledgement, a reject-free early confirm, managed expiry, safe-state entry after a panic, the margin-call sweep and the drawdown latch. - [Timers](/trader/docs/concepts/timers): One allocation-free, deterministic deadline wheel, advanced once per drain-loop boundary and never per message, carries every periodic sweep the live core runs. - [Portfolio and snapshot](/trader/docs/concepts/portfolio-and-snapshot): The core publishes one immutable state view through an arc-swap cell that the window reads on repaint and can never back-pressure; the portfolio inside it is the named cross-venue aggregator, with the two totals that must not be printed as one. - [The control boundary](/trader/docs/concepts/control-boundary): The live core has exactly one external control surface — commands and order intents in, snapshot queries out — and every front end, in-process or remote, is a translator over it. - [Mounting](/trader/docs/concepts/mounting): A run profile names the whole assembly in one auditable file, a strategy mount has a deterministic identity with a durable state sidecar beside it, and runtime mounts survive a restart through a sidecar of their own rather than through the journal. - [Accounts](/trader/docs/concepts/accounts): More than one account per venue — a credential-key grammar that cannot misread an existing key, a per-account arming ceiling that inherits nothing for a second account, and a shared-book rule that reports instead of refusing. - [Startup preflight](/trader/docs/concepts/startup-preflight): A pure go/no-go gate that runs once before the first live order — clock skew, credential validity, disk headroom and network — with per-venue thresholds derived from measurement, a bound on every leg, and a demotion to paper that is enforced. - [The live data seam](/trader/docs/concepts/live-data-seam): DataClient and LiveDataSink — the live mirror of the history store that every venue feed implements, where subscribing returns nothing and every datum arrives through a sink chosen at construction. - [The node protocol](/trader/docs/concepts/node-protocol): How the desktop app and the CLI talk to a running daemon — length-prefixed JSON frames, an HMAC nonce-challenge handshake with capability bound into the signature, and a wire vocabulary that mirrors the core without depending on it. - [Options](/trader/docs/concepts/options): The venue-free options core — a normalized chain model, Black–Scholes price and greeks with every transcendental from one portable library, implied vol by bisection, second-order greeks, realized-vol estimators and multi-leg basket analytics. - [Alerting](/trader/docs/concepts/alerting): A persisted rule set, a pure evaluator and a delivery seam that run strictly off the hot fold — with a default build that links no trading crate at all, because the watchdog it exists for must be able to page without the core. - The command journal - [The command journal](/trader/docs/concepts/journal): An opt-in write-ahead journal of every exec-lane message the execution core folds, appended before the fold on pre-allocated memory-mapped segments — so a session can be replayed through the real core, restored after a crash, and proven bit-identical. - [Records](/trader/docs/concepts/journal/records): The journal's serde schema — the externally-tagged JournalRecord enum every frame carries, its eleven variants and what replay does with each, and the compile-time contract that stops a new variant from being silently dropped at recovery. - [Frames](/trader/docs/concepts/journal/frames): The [len][check][payload] frame codec, the one frame walk every reader layers over, and the three torn-tail causes it tells apart — because a benign post-crash tear and a segment written by a different build deserve opposite readings. - [Segments](/trader/docs/concepts/journal/segments): How journal segment files are named, why a segment is built under a staging name before it goes live, what pre-allocation and page warming buy the append path, how a roll carries the sequence and the lock forward, and when whole segments are pruned. - [Sync policy](/trader/docs/concepts/journal/sync-policy): Every blocking msync the journal performs runs on one dedicated syncer thread the appender never joins, hand-off is a monotonic watermark rather than a queue, and the append side pays one store, one swap and at most one channel send — the fold-path latency contract, with the measurements behind it. - [Reading](/trader/docs/concepts/journal/reading): The offline reader half — read_since and the durable checkpoint a materializer resumes with, the full read that halts at the first corrupt frame, and the rule that no reader ever takes the writer's lock. - [Replay](/trader/docs/concepts/journal/replay): A recorded session re-folded through the real single-writer core from its first checkpoint and fenced against the recorded final state hash — what replays, what is deliberately replay-neutral, the three fences, and the crash-restart restore that shares the engine. - [Locking](/trader/docs/concepts/journal/locking): The duplicate-instance interlock — one exclusive advisory lock on a sentinel file per journal directory, taken before any segment is mapped, released by the operating system on any exit, and never taken by a reader. - Events - [Events](/trader/docs/concepts/events): The tagged union every part of Vike Trader speaks, and the three rules — emitter split, no silent vanish, exactly one terminal — that every venue adapter is machine-checked against. - [Fill](/trader/docs/concepts/events/fill): The Fill event: what it carries, which side emits it, and whether it ends an order's life. - [OrderSubmitted](/trader/docs/concepts/events/order-submitted): The OrderSubmitted event: what it carries, which side emits it, and whether it ends an order's life. - [OrderAccepted](/trader/docs/concepts/events/order-accepted): The OrderAccepted event: what it carries, which side emits it, and whether it ends an order's life. - [OrderRejected](/trader/docs/concepts/events/order-rejected): The OrderRejected event: what it carries, which side emits it, and whether it ends an order's life. - [OrderDenied](/trader/docs/concepts/events/order-denied): The OrderDenied event: what it carries, which side emits it, and whether it ends an order's life. - [OrderTriggered](/trader/docs/concepts/events/order-triggered): The OrderTriggered event: what it carries, which side emits it, and whether it ends an order's life. - [OrderPartiallyFilled](/trader/docs/concepts/events/order-partially-filled): The OrderPartiallyFilled event: what it carries, which side emits it, and whether it ends an order's life. - [OrderFilled](/trader/docs/concepts/events/order-filled): The OrderFilled event: what it carries, which side emits it, and whether it ends an order's life. - [OrderCanceled](/trader/docs/concepts/events/order-canceled): The OrderCanceled event: what it carries, which side emits it, and whether it ends an order's life. - [OrderExpired](/trader/docs/concepts/events/order-expired): The OrderExpired event: what it carries, which side emits it, and whether it ends an order's life. - [OrderLiquidated](/trader/docs/concepts/events/order-liquidated): The OrderLiquidated event: what it carries, which side emits it, and whether it ends an order's life. - [OrderModified](/trader/docs/concepts/events/order-modified): The OrderModified event: what it carries, which side emits it, and whether it ends an order's life. - [PositionOpened](/trader/docs/concepts/events/position-opened): The PositionOpened event: what it carries, which side emits it, and whether it ends an order's life. - [PositionChanged](/trader/docs/concepts/events/position-changed): The PositionChanged event: what it carries, which side emits it, and whether it ends an order's life. - [PositionClosed](/trader/docs/concepts/events/position-closed): The PositionClosed event: what it carries, which side emits it, and whether it ends an order's life. - [AccountState](/trader/docs/concepts/events/account-state): The AccountState event: what it carries, which side emits it, and whether it ends an order's life. - [Funding](/trader/docs/concepts/events/funding): The Funding event: what it carries, which side emits it, and whether it ends an order's life. - [PositionLiquidated](/trader/docs/concepts/events/position-liquidated): The PositionLiquidated event: what it carries, which side emits it, and whether it ends an order's life. - [OrderCancelRejected](/trader/docs/concepts/events/order-cancel-rejected): The OrderCancelRejected event: what it carries, which side emits it, and whether it ends an order's life. - [OrderModifyRejected](/trader/docs/concepts/events/order-modify-rejected): The OrderModifyRejected event: what it carries, which side emits it, and whether it ends an order's life. - Data - [Store kinds](/trader/docs/concepts/data): The layout contract every stored series obeys, the thirteen kinds declared today, and the gate that derives the live set from the code rather than from this table. - [bar](/trader/docs/concepts/data/bar): The bar store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [quote](/trader/docs/concepts/data/quote): The quote store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [trade](/trader/docs/concepts/data/trade): The trade store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [book](/trader/docs/concepts/data/book): The book store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [depth](/trader/docs/concepts/data/depth): The depth store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [properties](/trader/docs/concepts/data/properties): The properties store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [equity](/trader/docs/concepts/data/equity): The equity store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [exec_fill](/trader/docs/concepts/data/exec-fill): The exec_fill store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [exec_order](/trader/docs/concepts/data/exec-order): The exec_order store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [exec_funding](/trader/docs/concepts/data/exec-funding): The exec_funding store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [chain](/trader/docs/concepts/data/chain): The chain store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [cohort](/trader/docs/concepts/data/cohort): The cohort store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - [perp_metrics](/trader/docs/concepts/data/perp-metrics): The perp_metrics store kind: its columns, partitioning, what venue and symbol mean for it, and the producers that write it. - Orders - [Orders](/trader/docs/concepts/orders): The five canonical order kinds, the trigger subset, and the capability preflight that refuses an unsupported combination at the core edge with a machine-readable reason. - [Market](/trader/docs/concepts/orders/market): The market order kind: what it does, which of the 14 venues wire it, and how an unsupported combination is refused before it reaches a wire. - [Limit](/trader/docs/concepts/orders/limit): The limit order kind: what it does, which of the 14 venues wire it, and how an unsupported combination is refused before it reaches a wire. - [Stop](/trader/docs/concepts/orders/stop): The stop order kind: what it does, which of the 14 venues wire it, and how an unsupported combination is refused before it reaches a wire. - [Stop-limit](/trader/docs/concepts/orders/stop-limit): The stop_limit order kind: what it does, which of the 14 venues wire it, and how an unsupported combination is refused before it reaches a wire. - [Take-profit](/trader/docs/concepts/orders/take-profit): The take_profit order kind: what it does, which of the 14 venues wire it, and how an unsupported combination is refused before it reaches a wire. - Instruments - [Instruments](/trader/docs/concepts/instruments): One parametric Instrument record over an eleven-variant asset-class enum, and the cross-venue catalog that fills it. - [Symbol properties](/trader/docs/concepts/instruments/symbol-properties): The per-symbol placement grid every venue fills — tick, lot, minimums, contract size, tiered ticks and the venue's own order hold. - [Sessions and market hours](/trader/docs/concepts/instruments/sessions): The one market-hours law: week-minute session calendars keyed by venue and asset class, declared as DST unions that can only ever under-block. - [Symbology](/trader/docs/concepts/instruments/symbology): Core symbols versus exchange symbols, the .P perpetual suffix and which venues use it, and the declarative field map that turns a venue payload into instruments. - [Equity](/trader/docs/concepts/instruments/equity): The Equity asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [ETF](/trader/docs/concepts/instruments/etf): The ETF asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Crypto spot](/trader/docs/concepts/instruments/crypto-spot): The Crypto spot asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Crypto perpetual](/trader/docs/concepts/instruments/crypto-perp): The Crypto perpetual asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Crypto future](/trader/docs/concepts/instruments/crypto-future): The Crypto future asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Option](/trader/docs/concepts/instruments/option): The Option asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [FX](/trader/docs/concepts/instruments/fx): The FX asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Future](/trader/docs/concepts/instruments/future): The Future asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Index](/trader/docs/concepts/instruments/index-instrument): The Index asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [Prediction market](/trader/docs/concepts/instruments/prediction-market): The Prediction market asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - [CFD](/trader/docs/concepts/instruments/cfd): The CFD asset class: what it means in Vike Trader's instrument taxonomy, which picker tab it appears under, and what it drives. - Reconciliation - [Reconciliation](/trader/docs/concepts/reconciliation): How a live mount proves its own books against the venue's own reports — the pass, the health gate, and which venues reconcile. - [Reconciliation policies](/trader/docs/concepts/reconciliation/policies): The four reconcile policies, what each one actually folds without an operator, and the rollout rule for a newly wired venue. - [Missing fill](/trader/docs/concepts/reconciliation/missing-fill): The missing-fill reconciliation divergence: what raises it, and what each of the four policies does with it. - [Missing terminal](/trader/docs/concepts/reconciliation/missing-terminal): The missing-terminal reconciliation divergence: what raises it, and what each of the four policies does with it. - [Orphan local order](/trader/docs/concepts/reconciliation/orphan-local-order): The orphan-local-order reconciliation divergence: what raises it, and what each of the four policies does with it. - [Unknown order](/trader/docs/concepts/reconciliation/unknown-order): The unknown-order reconciliation divergence: what raises it, and what each of the four policies does with it. - [Position drift](/trader/docs/concepts/reconciliation/position-drift): The position-drift reconciliation divergence: what raises it, and what each of the four policies does with it. - [Position only external](/trader/docs/concepts/reconciliation/position-only-external): The position-only-external reconciliation divergence: what raises it, and what each of the four policies does with it. - [Orphan local position](/trader/docs/concepts/reconciliation/orphan-local-position): The orphan-local-position reconciliation divergence: what raises it, and what each of the four policies does with it. - [Balance drift](/trader/docs/concepts/reconciliation/balance-drift): The balance-drift reconciliation divergence: what raises it, and what each of the four policies does with it. - [Journal divergence](/trader/docs/concepts/reconciliation/journal-divergence): The journal-divergence reconciliation divergence: what raises it, and what each of the four policies does with it. - Backtesting - [Backtesting](/trader/docs/backtesting): One event engine and one vectorized kernel, both fed by the same fill primitives the paper exchange uses, driven by a TOML profile through a harness that runs bar or tick replay against the history store. - [Run profiles](/trader/docs/backtesting/run-profiles): The BacktestProfile TOML — a data slice, an engine cost configuration and a strategy by registry name — with every opt-in knob validated at load so a typo fails the profile rather than silently changing the result. - [Running a backtest](/trader/docs/backtesting/running): One dispatcher runs a profile in bar or tick mode against any history store; the standalone backtest binary drives it locally, and vike-cli backtest ships the profile's text to a data service and brings back the report. - [The harness registry](/trader/docs/backtesting/harness-registry): What strategy.name may say — a name-to-boxed-strategy lookup over SimBroker that is the simulator half of a two-part registry, with seven names a live daemon cannot resolve and the written reason for each. - [Runs on disk](/trader/docs/backtesting/runs-on-disk): What a finished run leaves under user_data/runs — a common manifest every producer writes identically beside a report only its kind understands — and how the report's Sharpe is annualized from the profile's interval. - [The portfolio engine](/trader/docs/backtesting/portfolio-engine): The one event engine — aligned per-symbol bars stepped on one shared cash account, orders filling at the next open, a fixed per-step order of gates and settlements, and a tick path that k-way-merges recorded events. - [The vector engine](/trader/docs/backtesting/vector-engine): The vectorized time-by-symbol portfolio kernel — a deliberately narrow target-weight path with next-open fills on shared cash, reconciled bit-for-bit against the event engine on the path they share. - [The sim broker](/trader/docs/backtesting/sim-broker): The backtest fill engine and the context every strategy handler receives — its per-symbol state, the order verbs that all but one cross the live risk gate, the one fill-application path, and the diagnostics a run leaves on it. - [The queue lane](/trader/docs/backtesting/queue-lane): The opt-in queue-position fill lane of the tick replay — the queue-gated twins of the frozen per-tick fill pass, entered only when a queue model is configured, where a price touch no longer fills a resting limit on its own. - [Queue models](/trader/docs/backtesting/queue-models): The position-in-queue estimators for resting maker limits on the tick/book replay path — what they observe, how each attributes a depth change, how a new order is seeded, and why the probabilistic arm's transcendentals come from one libm. - [Fill models](/trader/docs/backtesting/fill-models): The tiered fill-price models — bar, L1 spread-crossing and the L2 book walk — selected by the data a tape carries, with the measurement that shows why the book tier exists. - [Fill resolution](/trader/docs/backtesting/fill-resolution): What happens when several resting orders trigger inside one bar — adverse-first ordering, the stop/take-profit bracket cap, and the both-hit count the result carries so the ambiguity is reported rather than hidden. - [The cost model](/trader/docs/backtesting/cost-model): The three canonical cost scalars the backtest engines charge through — adverse fill price, fee and funding, the first two shared with the paper exchange — with the one deliberate deviation from the port, a floor that keeps an adverse move from inverting a price. - [Staleness](/trader/docs/backtesting/staleness): The opt-in stale-price wait discipline — a market order that would fill against a forward-filled or otherwise stale price waits for a fresh print instead, with three rules, an event-time clock, and a counter that says when it bit. - [Market impact](/trader/docs/backtesting/market-impact): The opt-in size-dependent slippage model for bar-mode backtests — the Almgren–Chriss cost function, its published constants and units, what it charges and what it deliberately does not, and where its output is bounded. - [Latency models](/trader/docs/backtesting/latency-models): Order latency on the tick/book replay path — the entry and response legs, the constant and recorded-series models, the venue-enforced holds, what the response leg delays and what it deliberately does not. - [Tick replay](/trader/docs/backtesting/tick-replay): How recorded quote, trade and book rows become the replay stream a strategy sees, and the integrity rule the replayed book obeys. - [Timeframes](/trader/docs/backtesting/timeframes): How a backtest synthesises higher timeframes from one fine base stream, and why a coarse bar is never visible before its window closes. - [Scheduling](/trader/docs/backtesting/scheduling): Scheduled strategy callbacks fired at bar boundaries, and the one wall-clock rule the backtest shares with the live runtime. - [Sweeps](/trader/docs/backtesting/sweeps): How a profile's [sweep] table expands into a cartesian grid of single runs, how the grid is ranked, and why the parallel and sequential paths are byte-identical. - [Search](/trader/docs/backtesting/search): The two optimizers that reach a good parameter set in fewer backtests than the grid, successive halving and TPE Bayesian optimization. - [Objectives](/trader/docs/backtesting/objectives): The pluggable scalar that ranks a sweep's rows, the two laws every objective obeys, and the composite multi-metric score. - [Walk-forward](/trader/docs/backtesting/walk-forward): Anchored out-of-sample evaluation that runs one fixed strategy over successive windows and stitches the results, and never re-fits. - Analytics - [Analytics](/trader/docs/analytics): The pure, engine-free performance-analytics cluster — every number a backtest report or a live tearsheet prints, computed in one place from vike-model and nothing else. - [The result type](/trader/docs/analytics/result): BacktestResult is the one shape every engine fills — the trades, the equity curve, and the diagnostic counters that let a run with no trades explain why. - [The report](/trader/docs/analytics/report): BacktestReport composes the metrics catalog over a result into one flat, serializable summary — no math of its own, one JSON contract for the sentinel, and an annualization rule derived from the bar interval. - [Metrics](/trader/docs/analytics/metrics): Every performance statistic Vike Trader computes, one row per metric with its inputs, its definition and its unit, plus the sentinel, summation, percentile and platform conventions the whole catalog shares. - [Periods](/trader/docs/analytics/periods): Calendar-period returns, the year-by-month matrix and the top-N drawdown table — bucketed on the same UTC day law the history store partitions by. - [Benchmark](/trader/docs/analytics/benchmark): Beta, alpha, correlation, tracking error, information ratio, the capture ratios and Treynor over two aligned equity curves — and the length rule every one of them enforces. - [Excursions](/trader/docs/analytics/excursions): MAE and MFE per trade from the bars between entry and exit, the edge ratio over them, and the running trade metrics — one excursion primitive that the live tearsheet back-fills through. - [Monte Carlo](/trader/docs/analytics/monte-carlo): Shuffle and bootstrap resampling of trade P&L into many equity paths, the percentile bands and ruin statistics over them, and the seed rule that keeps every run reproducible. - [Overfitting](/trader/docs/analytics/overfitting): The probabilistic and deflated Sharpe ratios, the probability of backtest overfitting, a plain-language verdict, and the selection audit that refuses to be fed only the survivor. - [Stability](/trader/docs/analytics/stability): A single score in [0, 1] for how broad the optimum of a parameter sweep is, and the three-way label that reads it. - [Validation](/trader/docs/analytics/validation): The time-series cross-validation splitters — walk-forward by count or by duration, purged k-fold, and combinatorial purged paths — and where the embargo sits. - [Survival statistics](/trader/docs/analytics/survival-stats): Whether a signal's Sharpe survives its own autocorrelation and the fact that it was the best of many — an autocorrelation-robust t-statistic, a false-discovery correction, a block bootstrap and a reality-check p-value. - [Signals](/trader/docs/analytics/signals): How a model's probability becomes a long, short or flat position through separate entry and exit bands — one function, shared by the offline study and the live strategy so the two cannot disagree. - [The signal backtest](/trader/docs/analytics/signal-backtest): The vectorized backtest for sweeping signal variants — a position series and a log-return series in, per-bar PnL, equity and trade statistics out — plus the frictioned scorer a model search ranks by. - [Sizing, and zero-trade diagnosis](/trader/docs/analytics/sizing-and-zero-trade): The swappable position-sizer model the simulator applies to opening entries, and the analyzer that turns a flat, zero-trade run into a ranked list of probable causes. - Order flow - [Order flow](/trader/docs/orderflow): The pure trade-aggregation core behind every order-flow study — one buy/sell semantic, flow bars, CVD, footprint and volume profile folded from the trade tape, the book-fed microstructure studies beside them, and the parity discipline each builder is gated by. - [Buy/sell classification](/trader/docs/orderflow/classification): The one load-bearing semantic of the order-flow crate — how a trade's aggressor side is read off the maker flag, and how every bar, delta, footprint and profile inherits it unchanged. - [Flow bars](/trader/docs/orderflow/bars): Tick, volume and dollar bars with a buy/sell/delta split, how each one treats the trade that crosses its boundary, and the opt-in imbalance and runs bars that sample by information rather than by count. - [CVD](/trader/docs/orderflow/cvd): Cumulative volume delta — the running sum of buy minus sell volume over the trade stream, the accumulator that computes it, and the per-bar form the chart derives from footprints instead. - [Footprint](/trader/docs/orderflow/footprint): The per-bar, per-price-bucket buy/sell volume grid — how trades are bucketed on the tick grid, why the bar boundary belongs to the caller, and how the app keeps a footprint for every chart bar without losing ticks. - [Volume profile](/trader/docs/orderflow/volume-profile): Volume at price on the tick grid, the point of control, and the 70% value area — with the tie rules that make the same trades produce the same profile every time. - [Depth imbalance](/trader/docs/orderflow/depth-imbalance): Book pressure over the L2 book — the depth-N size imbalance, its inverse-distance-weighted twin, and the tracker that keeps the last readable value through a one-sided book. - [Order-to-trade ratio](/trader/docs/orderflow/otr): Quoting intensity inferred from consecutive book snapshots — the add/update/cancel proxy over the visible top-N, the per-window formula, and the event-anchored windows it is reported in. - [VPIN](/trader/docs/orderflow/vpin): Volume-synchronized probability of informed trading — fixed-volume buckets, the per-bucket imbalance, the rolling window, and the aggressor-free bulk-volume-classification twin with its side-bias read. - [Streaming quantiles](/trader/docs/orderflow/streaming-quantiles): The P² single-quantile estimator — five markers, constant space, an O(1) update per observation, exact below five samples, and gated against a full-sort oracle and the published paper example. - [In the GUI](/trader/docs/orderflow/in-the-gui): Where each order-flow study renders — the one footprint substrate the app feeds, the Footprint style, the volume-profile overlay and CVD pane derived from it, the study panes the chart engine carries, and which of those the desktop app has wired. - Research - [Research](/trader/docs/research): The research loop in Vike Trader — a study reads the history store, may fit a model, scores its own numbers and leaves a run behind — and the headless crate that hosts every step of it. - [Studies](/trader/docs/research/studies): What a study is, where the interpreted and compiled tiers live under user_data, and how studies and the runs they produce are listed with every failure named rather than skipped. - [Running a study](/trader/docs/research/running-a-study): How a surface runs the study a listing handed it — one entry point for both tiers, the order of operations that mints a run, and what the manifest records so a study run is never mistaken for a backtest. - [Rhai studies](/trader/docs/research/rhai-studies): The interpreted study tier — the script contract, every host function a study may call, the operation ceiling, and the side channel that lets a typed store error survive the interpreter. - [Rust studies](/trader/docs/research/rust-studies): The compiled study tier — a study as a folder under user_data compiled into the operator's own binary by a build script, the entry contract, the dependency table that is its whole API, and what a study is deliberately handed and denied. - [The run pipeline](/trader/docs/research/the-run-pipeline): The Studio's resolve → backtest → score pipeline, headless so CI tests it directly — the one strategy vocabulary it branches on, the data slice it loads, and the run, sweep, walk-forward and compare entry points over one store handle. - [Models](/trader/docs/research/models): The learner seam in vike-ml — two traits that make a trainer substitutable, the capture contract that keeps one fit one fit, and the one learner that drives a real LightGBM binary. - [Training](/trader/docs/research/training): How vike-ml trains — the upstream LightGBM binary driven as a child process over a rendered config and a CSV, parameters spelled in LightGBM's own names, the traps the renderer closes, and the measurements behind bin-once-fit-many. - [Inference](/trader/docs/research/inference): The pure-Rust tree walker that predicts from a LightGBM model text with nothing native behind it — the parser's refusals, the routing rules read out of LightGBM's own source, and the two gates that prove the walker agrees with the trainer. - [The fit cache](/trader/docs/research/fit-cache): The cross-run cache over the learner seam — a validation score content-addressed by everything the fit consumed, why a wrong hit is worse than no cache, and what the key deliberately leaves to the caller. - [Feature importance](/trader/docs/research/feature-importance): Gain and split count per feature, reconstructed from the trainer's own model text in a separate pass inference never reads — the refusals that keep the table aligned with the caller's columns, and the one scorer the crate ships. - [Model pins](/trader/docs/research/model-pins): The two constants that decide whether a model file and the crate agree — what each proves, what neither proves, the equality gate that is the real bump proof, and the category map that is a wire format with no version of its own. - Market making - [Market making](/trader/docs/market-making): The SpreadMaker reference strategy, the HftBroker seam it is written against, the layers it composes and the rule that each one is byte-identical when off. - [Avellaneda–Stoikov](/trader/docs/market-making/avellaneda-stoikov): The reservation-price pricing layer — its three closed forms, the bounded-variance adaptation, the width ladder that refuses rather than bleeds, and the GLFT model that rides the same assembly. - [Intensity fits](/trader/docs/market-making/intensity-fits): The κ estimators the spread's adverse-selection floor reads — the public-tape MLE, the censored own-fill hazard fit, the shrink between them, and the base-intensity profile GLFT prices with. - [Short-term alpha](/trader/docs/market-making/short-term-alpha): The Cartea–Jaimungal additive reservation shift, the book-imbalance and order-flow-imbalance signals that feed it, and the OFI-synthesized toxicity fallback. - [Multi-asset](/trader/docs/market-making/multi-asset): The correlation-aware Guéant core — a covariance-matrix inventory skew whose value is entirely in the off-diagonal terms — and the fact that no live path calls it yet. - [Binary outcomes](/trader/docs/market-making/binary-outcomes): Pricing a bounded [0,1] outcome token — the LMSR log-odds reservation, and the LS-LMSR and Glosten–Milgrom half-spread sources that replace the A-S vol/κ term. - [Quote emission](/trader/docs/market-making/quote-emission): The one shared tick step both lanes drive — its stages in order, what each one consumes, the two gates only a re-price consults, and the hold that must never be silent. - [Quote styles](/trader/docs/market-making/quote-styles): The four pure placement styles, the book view they price from, and the two own-order filtrations that stop a maker joining or leaning on its own quote. - [Ladder quoting](/trader/docs/market-making/ladder-quoting): The pure per-side rung builder behind the maker's N-orders-per-side mode — rung 0 is today's quote bit-for-bit, deeper rungs step outward, and the whole side is diffed to the minimal verb set each tick. - [Refresh tolerance](/trader/docs/market-making/refresh-tolerance): The pure "is this re-quote worth the wire?" predicate — a relative basis-point band on the resting price and size that skips a modify, gates only the re-price path, and is off by default. - [Inventory skew](/trader/docs/market-making/inventory-skew): The pure size-shaping multipliers that lean the maker toward a target inventory, and the round-trip netting behind the per-side fill-rate breaker that pulls a side being picked off. - [Taker flatten](/trader/docs/market-making/taker-flatten): The Guilbaud–Pham impulse-control leg — a pure decision that crosses the book with a market order when inventory breaches a hard band, cutting only the excess over the band. - [Liquidity rewards](/trader/docs/market-making/liquidity-rewards): Reward-aware quoting for a venue that pays for resting liquidity near the midpoint — the pure scoring model, the band clamp and min-order-age hold that fold it into the quote, and the two safety authorities that outrank it. - [Settlement](/trader/docs/market-making/settlement): The resolution-aware risk heuristics for a binary market — a linear force-flatten schedule that shifts the reservation toward flat as time runs out, and a time-accelerated pull that trips the fill-rate breaker sooner. - Cross-exchange - [Cross-exchange market making](/trader/docs/market-making/xemm): The xEMM — rest passively on one venue at prices derived from another's touch and hedge every fill there — its pure pricing core, its four safety layers, and the fact that no binary mounts it. - [Basis](/trader/docs/market-making/xemm/basis): The event-time EWMA of the maker-versus-reference basis — a diagnostic and a halt band, never a term in a quote price, folded from paired market touches only. - [The hedge ledger](/trader/docs/market-making/xemm/hedge): Why the xEMM's only inventory authority holds two signed positions and derives what is owed, so a retried hedge can never double the position. - [Guards](/trader/docs/market-making/xemm/guards): The xEMM's pure safety verdicts — the freshness bounds, the soft and hard naked-inventory bands, and the halt vocabulary every stop is named in. - **Build** - Strategies - [Strategies](/trader/docs/strategies): The one Strategy trait, the Broker handle it trades through, and why a strategy written against the common denominator runs unchanged on the simulator and on the live core. - [The portable registry](/trader/docs/strategies/the-registry): Name to boxed strategy, generic over the broker — the one table that serves both the simulator and the live daemon, and the four refusals it makes possible. - [The controller seam](/trader/docs/strategies/controller-seam): The Controller decides whether to open a position; the ControllerHarness is itself a Strategy and owns the executors, the routing and the cooldown. - [The position executor](/trader/docs/strategies/position-executor): One position, driven from Pending to Closed over a portable Broker — the lifecycle states, the triple barrier and its fixed precedence, and the realized-PnL law. - [Authoring in Rust](/trader/docs/strategies/authoring-rust): The seam a native strategy implements, the reader convention its parameters follow, and the folder that compiles a user strategy into your own binary. - [Simulator-only strategies](/trader/docs/strategies/simulator-only): The 7 strategy names a backtest resolves that a live daemon cannot, each with the registry's own reason — plus the script arm that resolves by path, not by name. - Templates - [Buy & hold (buy_hold)](/trader/docs/strategies/templates/buy-hold): The buy_hold portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Grid (grid)](/trader/docs/strategies/templates/grid): The grid portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [DCA accumulate (dca_accumulate)](/trader/docs/strategies/templates/dca-accumulate): The dca_accumulate portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Spread maker (spread_maker)](/trader/docs/strategies/templates/spread-maker): The spread_maker portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Guéant maker (gueant_maker)](/trader/docs/strategies/templates/gueant-maker): The gueant_maker portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Trailing scalper (trailing_scalper)](/trader/docs/strategies/templates/trailing-scalper): The trailing_scalper portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Momentum (momentum)](/trader/docs/strategies/templates/momentum): The momentum portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Funding carry (funding_carry)](/trader/docs/strategies/templates/funding-carry): The funding_carry portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Funding capture (funding_capture)](/trader/docs/strategies/templates/funding-capture): The funding_capture portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - [Pairs z-score (pairs_zscore)](/trader/docs/strategies/templates/pairs-zscore): The pairs_zscore portable strategy: what it trades, every parameter key with its TOML type, and whether it mounts live today — rendered from the strategy registry. - Scripting - [Scripting](/trader/docs/scripting): A Rhai script as a real strategy in Vike Trader — the two-part script contract, the user-written indicator seam beside it, where the files live, and what mounts a script live. - [The engine](/trader/docs/scripting/the-engine): The resource-limited rhai::Engine a strategy script runs in — what build_engine registers, what it refuses, why an unbound indicator is unbound, and where a script's print goes. - [The order vocabulary](/trader/docs/scripting/order-vocabulary): The Intent verbs a script records and the ScriptCtx they land in — what the reads snapshot, what the verbs push, and how a bar's intents become broker calls. - [Writing a strategy](/trader/docs/scripting/writing-a-strategy): The compiled-script strategy — the three hooks, param() knobs, why the top level runs exactly once, the fail-safe, and the three ways a finished script is run. - [Writing an indicator](/trader/docs/scripting/writing-an-indicator): A Rhai file under user_data/indicators is a real Indicator — the state-first contract, param() knobs, multi-output lines, chart placement, and what an indicator may never do. - [Loading indicators](/trader/docs/scripting/loading-indicators): How user_data/indicators/*.rhai becomes a process-wide set every strategy can call — the load report, its five diagnostics, the once-per-process install, and which binaries do it. - [User strategies](/trader/docs/scripting/user-strategies): A user's strategies are files under user_data/strategies, not rows in a blob — the layout, the two trees, the scan that compiles every script, and its named diagnostics. - [Presets](/trader/docs/scripting/presets): How a strategy's preset.toml becomes the params it is constructed with — the flat-table rule, the two roads a Rhai and a built-in strategy take, and the keys that are named rather than dropped. - [Migration](/trader/docs/scripting/migration): The one-time move of the Studio's studio_strategies.json rows into user_data/strategies/ — what each row becomes, what is reported instead of written, and why the JSON is never touched. - [Limits](/trader/docs/scripting/limits): The resource ceilings build_engine sets on every strategy script, what trips each one, and what the strategy does when one trips. - [Cheatsheet](/trader/docs/scripting/cheatsheet): Every host function a strategy script can call, every hook it can define, and the indicator call forms — one scannable page beside the full ones. - Indicators - [Indicators](/trader/docs/indicators): The built-in indicator catalog — 171 single-series indicators across nine categories plus 8 pair indicators — and the one guarantee every one of them carries. - [Overlap indicators](/trader/docs/indicators/overlap): The 21 built-in overlap indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Momentum indicators](/trader/docs/indicators/momentum): The 36 built-in momentum indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Volatility indicators](/trader/docs/indicators/volatility): The 16 built-in volatility indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Volume indicators](/trader/docs/indicators/volume): The 14 built-in volume indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Statistics indicators](/trader/docs/indicators/statistics): The 13 built-in statistics indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Pattern indicators](/trader/docs/indicators/pattern): The 63 built-in pattern indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Price indicators](/trader/docs/indicators/price): The 4 built-in price indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [Structure indicators](/trader/docs/indicators/structure): The 4 built-in structure indicators Vike Trader ships, with every parameter, its default and its sweep range — rendered from the indicator registry. - [User indicators](/trader/docs/indicators/user): Where the indicators you write yourself land in the catalog — and why the category ships empty. - [Pair indicators](/trader/docs/indicators/pairs): The 8 two-series indicators — spread and benchmark kernels behind their own seam — with every parameter and default, rendered from the pair registry. - Tutorials - [Tutorials](/trader/docs/tutorials): Sixteen worked runs, end to end. Every number on these pages was pasted from a real execution, and the few illustrative ones say so on the page. - [RSI mean-reversion backtest](/trader/docs/tutorials/rsi-mean-reversion-backtest): Take the shipped rsi_meanrev example from vike-cli init to a report on the demo tape, and read what the run actually says. - [A Rhai strategy from scratch](/trader/docs/tutorials/rhai-strategy-from-scratch): Write, validate and backtest an interpreted strategy against the same Strategy seam a compiled one uses, and learn the four rules the engine will not forgive. - [A custom feature, proven](/trader/docs/tutorials/custom-indicator): Implement a ColumnFeature over one numeric column and prove its streaming form equals its batch form bit for bit with the shipped parity harness, then write the same idea as a user indicator script and run it. - [Sweep, then walk forward](/trader/docs/tutorials/sweep-and-walk-forward): Search a parameter grid with a ranked sweep, then put the winner through an anchored out-of-sample walk-forward that deliberately never re-fits. - [Bayesian parameter search](/trader/docs/tutorials/tpe-parameter-search): Run a TPE search over a sweep profile, compare it against successive halving and the exhaustive grid, and keep the result reproducible. - [A multi-timeframe strategy](/trader/docs/tutorials/multi-timeframe-strategy): Synthesise a higher timeframe from one fine base stream, read it without look-ahead, and know which of the two reads is portable. - [Pairs stat-arb with a cost gate](/trader/docs/tutorials/pairs-stat-arb): Run the pairs_zscore template over two real Binance symbols with its round-trip cost floor armed, and read the negative result it exists to produce. - [A funding carry across two venues](/trader/docs/tutorials/funding-carry-two-venues): Open a delta-neutral perp carry from recorded funding rates on two venues, and watch the fee table decide whether the differential was ever worth collecting. - [The grid template on paper](/trader/docs/tutorials/grid-on-paper): Mount the grid strategy on the production live core with the paper exchange behind it, and understand every refusal the profile has to pass first. - [The A-S maker on a paper book](/trader/docs/tutorials/spread-maker-on-paper): Mount the Avellaneda-Stoikov SpreadMaker on the production live core with a paper exchange behind it, and see why the tick-to-bar bridge is the piece that makes it fill. - [Tick replay with a queue model](/trader/docs/tutorials/tick-replay-with-queue-model): Replay a recorded tape and make a resting maker order wait its turn — seeded from the book, gated by trades, and held long enough that the round trip could have happened. - [Record a feed, then replay it](/trader/docs/tutorials/record-and-replay): Accumulate your own market tape with the headless recorder, stop it without losing the buffer, and replay the result deterministically into a backtest. - [Replay a journal and pass the fence](/trader/docs/tutorials/journal-replay-determinism): Turn on the write-ahead command journal, re-fold a recorded session through the real core, and read the state-hash fence that proves it reproduced bit for bit. - [A VPIN study over a recorded tape](/trader/docs/tutorials/orderflow-vpin-study): Fold a recorded trade tape into cumulative volume delta, a footprint grid and two flavours of VPIN, and understand the one classification decision all three inherit. - [Fit a model and read what it learned](/trader/docs/tutorials/train-a-model): Run a study that fits a gradient-boosted classifier through the pinned trainer, then turn the saved model into a probability series and a feature-importance table. - [Monte Carlo and overfitting over a finished run](/trader/docs/tutorials/monte-carlo-and-overfitting): Ask a completed backtest two different questions — how much of its path was the order the trades happened to land in, and whether its Sharpe survives the number of configurations you tried. - **Run** - Desktop app - [The desktop app](/trader/docs/gui): The window model of vike-desktop — a multi-window egui shell over one published core snapshot, twelve window kinds, two builds, and the crate split that decides what CI can test. - [The chart](/trader/docs/gui/chart): The vike-chart engine — twenty styles, draggable panes, streaming indicators, price-scale modes, compare series, microstructure studies and timestamp-keyed cross-window sync. - [The DOM ladder](/trader/docs/gui/dom-ladder): The depth-of-market order-entry ladder — side-bound click-to-trade over a live L2 book, the Elite liquidity heatmap, the cost-to-fill readout, and the PAPER/LIVE badge that says where a click goes. - [The cockpit](/trader/docs/gui/cockpit): The Polymarket scalp cockpit — the rolling-window chain rail, the Price-to-Beat header, the one-click ticket with its arm switch, and the probability ladder over integer-cent rungs. - [Connections](/trader/docs/gui/connections): The venues × Sim/Demo/Live credential grid, the live Status column, the masked editor behind the one sanctioned credential write, per-venue accounts, and the remote-backend registry. - [Observe mode](/trader/docs/gui/observe-mode): vike-desktop --observe against a headless daemon — the one mode the shipped binary can compose, the two the library still declares and nothing reaches, the self-healing bridge, and the control channel that can place real orders. - [Workspaces](/trader/docs/gui/workspace): The multi-window desktop — arrangement, the minimized-window rail, the menu bar, and how a chart layout is persisted to workspace.json and named layouts without ever bricking startup. - [The trade panel](/trader/docs/gui/trade-panel): Order entry and sizing from a window — the equity hero, the per-venue accounts table, the trade card with its size modes, leverage and TP/SL bracket, and the one dispatch chokepoint every order crosses. - [The options chain](/trader/docs/gui/options-chain): The Options window is a mirrored calls–strike–puts ladder over Deribit's public book, kept live between polls and painted with the trader's own orders and positions; the Greeks window prices those positions off the same chains. - Studio - [Studio](/trader/docs/gui/studio): The in-app IDE for a strategy over recorded history — a Rhai editor, a store-backed slice picker, worker-thread Run, Sweep and Walk-Forward, and a tabbed results pane, in one window of the desktop app. - [The editor](/trader/docs/gui/studio/editor): A code editor bound to the strategy source, compiled on every change through the same path Run uses, with the verdict as a chip, an inline banner naming the line, and an amber dot while the buffer has drifted from its last save. - [Data and slices](/trader/docs/gui/studio/data-and-slices): The toolbar picker that lists every runnable series in the store — bars, then ticks — discloses what is recorded but cannot be replayed, and never lets a failed scan wear an empty store's clothes; and the Data tool that browses the whole inventory. - [The indicators pane](/trader/docs/gui/studio/indicators-pane): Browse the indicator registry by category, set an indicator's parameters on sliders, and preview it over the picked slice's bars — a synchronous compute the pane asks the shell for, because the pane itself never touches the store. - [The templates gallery](/trader/docs/gui/studio/templates-gallery): Three starter Rhai strategies, each declaring its knobs with param() so it drops straight into the sweep grid — loadable blind from a dropdown, or previewed card by card in the gallery before they overwrite the editor. - [The research pane](/trader/docs/gui/studio/research-pane): The studies a user has written, the one button that runs one, and the runs that came out — one list for the interpreted and compiled tiers, and a results surface that keeps a study's numbers out of any column a backtest's could share. - [Results](/trader/docs/gui/studio/results): The tabbed pane over a backtest result — equity, trades, performance, the returns distribution, and a validation tab that combines the probabilistic Sharpe of one run with the deflated Sharpe, PBO and walk-forward consistency a sweep and a walk-forward add. - [Saved strategies and workspace](/trader/docs/gui/studio/saved-and-workspace): Two files with two owners — a workspace snapshot of restorable UI state under the project's state directory, and the legacy saved-strategies JSON blob beside the store that the file-tree migration moves off, since a user's strategies are files now. - [The AI copilot](/trader/docs/gui/studio/ai-copilot): The Studio's chat pane sends a description to a model, compiles and backtests what comes back on held-out data, and shows a diff before anything touches the editor. - [Connect your own Claude](/trader/docs/gui/studio/connect-claude): The chat pane's Connect to Claude button writes the claude mcp add line that registers vike-cli mcp against the datahub the Studio already dials — and what that button does in a build that left the feature off. - [Remote runs](/trader/docs/gui/studio/remote-runs): The Backend toggle sends a Run, Sweep or Walk-Forward to a vike-datahub server over TCP and folds the answer into the same results pane, with the one refusal the split-plane rule adds. - Data Manager - [Data Manager](/trader/docs/gui/data-manager): The tool window that shows what the history store holds — one shared catalog view mounted by both the desktop app and the Studio, and the sub-tabs around it. - [The catalog](/trader/docs/gui/data-manager/catalog): The stored-series grid — one rollup row per venue, one row per series, six sortable columns, a search box, and in the app a checkbox column with a bulk-action bar. - [Coverage](/trader/docs/gui/data-manager/coverage): The span bar and its shared scale, the stale tint, gap cut-outs from the file index, the cross-kind Partial column, and the two smart views that filter on them. - [Backfill from the GUI](/trader/docs/gui/data-manager/backfill): What the Backfill button plans from a selection, the one resolved address that decides whether it runs in this process or on a data service, and what a venue backfill cannot repair. - Command line - [The command line](/trader/docs/cli): What vike-cli is, what it deliberately is not, the ten verbs it dispatches, and which of the three surfaces over the platform to reach for. - [A first session](/trader/docs/cli/a-session): One end-to-end pass at the command line — scaffold the project, prove which settings and store are being read, list what a strategy may call, and get a backtest report back from a data service. - [The trade REPL](/trader/docs/cli/repl): What driving a live node from a terminal is actually like — the two connections, the preview before every write, what the local guardrail is and is not, and why each command reports its own outcome. - [The daemon and the app](/trader/docs/cli/daemon-and-app): Three clients of one trading node — the desktop app in observe mode, the CLI's REPL and read verb, and the MCP server — what each is best at, and what strategy-status actually reads. - [The agent door](/trader/docs/cli/mcp-door): What vike-cli mcp is as a CLI verb — a local stdio server, one vocabulary shared with the REPL, a preview gate that fails closed, a profile that can withhold the write tools outright — and where the tool-by-tool reference lives. - [Scripting it](/trader/docs/cli/scripting): The machine-facing half — which verbs have --json and what each one emits, the two exit codes, the stdout/stderr split, and how to branch on all of it in a shell script. - [When it goes wrong](/trader/docs/cli/troubleshooting): The failures a real vike-cli install actually hits — a store that is not there, a data service that is not listening, a variable that no longer exists — and what each message is telling you. - **Reference** - [vike-cli](/trader/docs/reference/cli): The unified command-line surface — a subcommand dispatcher that resolves settings once, opens a credential only when a verb needs one, and answers --help on stdout with exit 0. - [Global flags](/trader/docs/reference/cli/global-flags): The one flag grammar every vike-cli verb shares — both spellings, the rule that a token beginning with -- is never a value, and where help becomes exit 0. - [vike-cli mcp](/trader/docs/reference/cli/mcp): A local stdio MCP server exposing the create, backtest and live-trade tools to an agent — with a mandatory preview in front of every order, a profile that can withhold the write tools outright, an initialize string telling the model what lies outside this surface, and an optional record of what the agent attempted. - Set up - [Set up](/trader/docs/reference/cli/set-up): Scaffold a project, read its settings, hold its secrets, and attach a box to a running node — the four verbs you run before any of the others. - [vike-cli init](/trader/docs/reference/cli/set-up/init): Scaffold the user-content directory with runnable examples in every folder, print the map, and never overwrite something you edited. - [vike-cli config](/trader/docs/reference/cli/set-up/config): Two verbs over one settings directory: show discloses every setting and where its value came from, check judges the same tree and makes the exit code the product. - [vike-cli secrets](/trader/docs/reference/cli/set-up/secrets): Inspection of the one credential store — where it is, which key names it holds, which accounts those names resolve to, an empty grid to start one from — and the one narrow writer: set a single key, value from stdin or an environment variable, never from the command line. - [vike-cli backend](/trader/docs/reference/cli/set-up/backend): Mint a vike-tradehub node's authentication keys on the daemon's own box with `backend setup`, then attach a client machine to a running node with `backend connect`, `status`, and `disconnect`. - Data - [Data](/trader/docs/reference/cli/data): The hist store itself, and the key pair the server that fetches into it authenticates with. - [vike-cli data](/trader/docs/reference/cli/data/data): Get market data into the hist store without knowing a second binary's name — fetch real public bars or seed the synthetic demo tape, with an optional --json document describing the run. - [vike-cli datahub](/trader/docs/reference/cli/data/datahub): Reference page for the vike-cli datahub verb: mints a vike-datahub server's node-key pair, and why it is a separate verb from backend. - Research - [Research](/trader/docs/reference/cli/research): What a Rhai strategy can call, computing one over history, and fitting a model before a strategy exists at all. - [vike-cli indicators](/trader/docs/reference/cli/research/indicators): Print the indicators a Rhai strategy can actually call — the bound set, never the registry — with their parameters, their defaults and your own files listed beside them. - [vike-cli backtest](/trader/docs/reference/cli/research/backtest): Every flag, default, refusal and closed set of vike-cli backtest's 12 sub-verbs, rendered from the CLI's own exported surface. - [vike-cli backtest --profile](/trader/docs/reference/cli/research/backtest-profile): Every table, key, default, accepted value and refusal of the TOML file vike-cli backtest --profile takes, derived from the Rust types that declare the schema. - [vike-cli research](/trader/docs/reference/cli/research/research): The plane that investigates a signal and fits a model — the step before a strategy exists — by asking the compute daemon to run a compiled study against the hist store it holds. - Trade - [Trade](/trader/docs/reference/cli/trade): Observe and control a running vike-tradehub node, and read a tearsheet over its live journal. - [vike-cli trade](/trader/docs/reference/cli/trade/trade): An interactive REPL over a running vike-tradehub node — short verbs, a preview before every write, and each command's outcome read off its own ticket. - [vike-cli report](/trader/docs/reference/cli/trade/report): Ask a running vike-tradehub node for a live-journal tearsheet — read-only, and refused today because no node yet serves the capability. - [vike-cli surface](/trader/docs/reference/cli/surface): Writes vike-cli's own backtest-plane command surface as the cli.json asset the docs site renders this reference from. - Venues - [Venues](/trader/docs/venues): What a venue bridge is, the emitter split every one of them obeys, and the two gates — the arming ceiling first, then absent credentials — that decide whether a mount is real. - [Alpaca](/trader/docs/venues/alpaca): Alpaca on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Aster](/trader/docs/venues/aster): Aster on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Binance](/trader/docs/venues/binance): Binance on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Bybit](/trader/docs/venues/bybit): Bybit on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [cTrader](/trader/docs/venues/ctrader): cTrader on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Deribit](/trader/docs/venues/deribit): Deribit on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Dukascopy](/trader/docs/venues/dukascopy): Dukascopy on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [FXCM](/trader/docs/venues/fxcm): FXCM on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Hyperliquid](/trader/docs/venues/hyperliquid): Hyperliquid on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Interactive Brokers](/trader/docs/venues/ibkr): Interactive Brokers on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [IG](/trader/docs/venues/ig): IG on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [OANDA](/trader/docs/venues/oanda): OANDA on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [OKX](/trader/docs/venues/okx): OKX on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Polymarket](/trader/docs/venues/polymarket): Polymarket on Vike Trader: capabilities, order kinds, time-in-force handling, margin, fees, amend semantics and how the bridge is wired — rendered from the venue tables the runtime consults. - [Polymarket operations](/trader/docs/venues/polymarket-operations): The operational rules the generated venue page cannot carry — no testnet, the two opt-ins, the region pre-flight, resolution-aware settlement and auto-redeem, and the SOCKS egress. - Data providers - [Data providers](/trader/docs/data-providers): Where backfilled history comes from — the one-shot collectors in vike-backfill, grouped by family, and the capability table that says which source can fill which kind for which venue. - [Venue-direct](/trader/docs/data-providers/venue-direct): The seven collectors that page a venue's own keyless history endpoint into the store — five klines bins sharing one CLI body, plus Dukascopy ticks and Hyperliquid candles. - [Funding rates](/trader/docs/data-providers/funding-rates): Two collectors that look alike and write different things — the venue-wide market funding rate a strategy trades on, and one account's realized funding payments. - [Databento](/trader/docs/data-providers/databento): The paid equities-and-futures vendor — one schema, symbol and window from the historical HTTP API, decoded by pure fixture-tested parsers into bars, trades, quotes or the L2 book. - [Tardis](/trader/docs/data-providers/tardis): The paid crypto vendor — per-day CSV datasets of trades, quotes and the incremental L2 book, one UTC day at a time, with bars derived by resampling the ingested trades. - [The vike.io Data API](/trader/docs/data-providers/vike-data-api): Two routes into data.vike.io — the paged /v1 REST API for cohort metrics and the hourly asset panel, and the Polymarket L2 Parquet archive — plus the store's rule for when two writers cover one window. - [IBKR historical](/trader/docs/data-providers/ibkr-historical): Paging IBKR historical bars through a running TWS or IB Gateway into the store as kind=bar under venue=ibkr — the offline twin of the live feed, behind the ibkr feature. - [Polymarket](/trader/docs/data-providers/polymarket): The venue serves no history, so its two collectors read an archive and your own raw-frame captures. - [EOD, events and exec trades](/trader/docs/data-providers/eod-and-events): Three small, unrelated collectors on one page — daily index bars from Yahoo, the data.vike.io live events API, and a venue account's own trade-history export. - [Store maintenance](/trader/docs/data-providers/store-maintenance): Regrouping stray per-symbol tick series into their grouped family, seeding the benchmark store, and where most backfill bins decide their store root. - [Log volume](/trader/docs/data-providers/log-volume): Why a long backfill or an open desktop window can write gigabytes of JSON log, and the knobs — VIKE_LOG_FILE_LEVEL, the file-level preference, and retention — that bound it. - Guides - [Guides](/trader/docs/guides): Task-shaped pages — arm a venue, connect an agent, record a feed, replay a session, stop and liquidate, triage a stuck order. Each one is a thing you came here to do, start to finish. - [Connect an agent](/trader/docs/guides/connect-an-agent): Point Claude at vike-cli mcp — 17 tools to author strategies, run backtests, watch a live node, and (behind a preview gate) trade. - [Arm one venue for demo](/trader/docs/guides/arm-a-venue): Two gates stand between a credential and a live socket, and the ceiling is the one consulted first. - [Control the daemon from Telegram](/trader/docs/guides/telegram-control): A second remote write surface on the headless daemon, off at compile time, behind four gates and a mandatory preview. - [Stop, liquidate, restart](/trader/docs/guides/stop-liquidate-restart): What a stop leaves at the venue, what the kill switch does and in which order, and what a restarted node actually recovers. - [Record a live feed](/trader/docs/guides/record-a-feed): One TOML profile, one daemon, and a tape of the markets you actually watched — plus the two watchdogs that tell you it is really recording. - [Replay a recorded session](/trader/docs/guides/replay-a-session): Two different replays — a recorded market tape through the backtest engine, and a command journal through the real core against a state-hash fence. - [Run a sweep on the data service](/trader/docs/guides/sweep-on-the-service): Ship a profile to the box that holds the history, run the grid next to the data, and get back only the ranked report. - [Read a backtest report](/trader/docs/guides/read-a-report): Every row of the summary table, what the annualization factor actually is, and why a flat run prints a diagnosis instead of zeros. - [Triage a stuck order](/trader/docs/guides/triage-a-stuck-order): The core's own confirm-grace ladder, what a venue confirm can return, and which reconciliation divergence a still-missing order becomes. - Troubleshooting - [Troubleshooting](/trader/docs/troubleshooting): Symptom, cause and fix for the failures Vike Trader reports, sectioned by component and each fix naming the module that owns it. - **Reference and developer** - Reference - [Reference](/trader/docs/reference): One core, several front ends — how the desktop app, the daemon, the CLI and the data service relate, and where each one's flags, binaries and settings live. - [Environment variables](/trader/docs/reference/environment): The risk ceilings have no environment layer at all, three variables are refused at startup rather than ignored, and every read the workspace performs is declared in a CI-gated registry. - Binaries - [Binaries](/trader/docs/reference/binaries): Every binary target in the Vike Trader workspace — 46 across 17 crates — derived from cargo metadata and classified: its own page, its collector family, or an internal harness. - [vike-tradehub](/trader/docs/reference/binaries/vike-tradehub): The unattended live trading daemon — a TOML profile, newline-JSON stdio, an optional authenticated node server, and a bounded teardown. - [vike-datahub](/trader/docs/reference/binaries/vike-datahub): The headless compute-to-data backtest server — a profile in, a report out, with the history never crossing the wire. - [vike-desktop](/trader/docs/reference/binaries/vike-desktop): The desktop app — a native egui multi-window shell that is a lossy observer of a trading core it does not run, in one build with no cargo features. - [vike-study](/trader/docs/reference/binaries/vike-study): The study runner that can fit — the one host that hands a compiled study a real LightGBM learner and leaves a run behind. - [backtest](/trader/docs/reference/binaries/backtest): The standalone backtest runner — one profile, one report, and a run minted on disk; plus sweeps, successive halving and TPE. - [vike-recorder](/trader/docs/reference/binaries/vike-recorder): The headless live-tape recorder — one profile, a tick that re-resolves what to record, and a budgeted teardown that does not lose the flush. - [tearsheet](/trader/docs/reference/binaries/tearsheet): The HTML report generator for a LIVE command journal — the same metrics a backtest produces, computed from the fills that actually happened. - [replay-journal](/trader/docs/reference/binaries/replay-journal): Deterministic offline replay of a command journal through the real core, fenced on a final state hash. - [vike-stat](/trader/docs/reference/binaries/vike-stat): A read-only reader for the live core's opt-in mmap counter mirror, so a headless or remote trader can be inspected without attaching to it. - [collector_supervisor](/trader/docs/reference/binaries/collector-supervisor): The always-on supervisor that keeps a declared set of history-store series fresh and heals their historical holes, instead of an operator re-running one-shot collectors by hand. - [incident](/trader/docs/reference/binaries/incident): Freezes the perishable evidence of a live run — journal segments, trace logs, the resolved run profile, the last engine snapshot and a redacted environment — into one timestamped bundle. - [Venue setup tools](/trader/docs/reference/binaries/venue-setup-tools): Two one-off operator binaries that arrange something at a venue before trading — cTrader's OAuth catcher and Hyperliquid's builder-fee grant. - [Mount binaries](/trader/docs/reference/binaries/mount-bins): Two headless mounts that live in vike-run behind their own cargo features — a Polymarket paper maker on a live feed, and a real IBKR mount that is not paper. - Settings files - [Settings files](/trader/docs/reference/settings): Four TOML files in one directory, split by who is allowed to change a value and from where, with the precedence order and the compiler-enforced exception that makes a ceiling a ceiling. - [policy.toml](/trader/docs/reference/settings/policy): The hard ceilings — leverage, per-order notional, the emulated-market slippage band, halt admission, the two dead-man switches and per-venue arming — in the one settings file no environment variable can reach. - [config.toml](/trader/docs/reference/settings/config): Deployment settings — store roots, log and journal directories, and the three listen or dial addresses — each with its environment variable and whether a running daemon can apply it without a restart. - [preferences.toml](/trader/docs/reference/settings/preferences): Taste and tuning — the two independent log levels, the chart style and the sweep thread bound — the one settings file where nothing is a ceiling and both log levels apply without a restart. - [flags.toml](/trader/docs/reference/settings/flags): Operator toggles — every one a bool defaulting to false, every one carrying an owner, a review date and the disposition its review is expected to reach. - [alerts.json](/trader/docs/reference/settings/alerts): The persisted alert rule set — its schema, its forward-compatibility discipline, where the daemon reads and writes it, and which of its triggers a headless node can actually fire. - Developer - [Developer guide](/trader/docs/developer): How the workspace defends its own claims — what a gate is here, why prose that can rot is replaced by a test, and where each family of gates lives. - [Building](/trader/docs/developer/building): The workspace roster, the feature lanes a default build never compiles, the one committed cargo config, and why the xtask convention is spelled differently here. - [CI derivation](/trader/docs/developer/ci-derivation): One implementation of what CI runs, its selection rules and diff-base ladder, and the five gates that hold the local recipes and CI to a single spelling. - [Structure gates](/trader/docs/developer/structure-gates): Three gates over the shape of the workspace — dependency direction, compile-time paths, and re-spelled primitives — and how to read each one's failure. - [Adding a venue](/trader/docs/developer/adding-a-venue): The scaffold whose work-list is derived from the tree rather than remembered, the gate that keeps it derived, and the shared homes a new venue consumes without modifying. - [Settings gates](/trader/docs/developer/settings-gates): The environment-variable registry and its two ratchets, plus the two gates that refuse a settings key nothing reads. - [Docs gates](/trader/docs/developer/docs-gates): Six gates over prose — citations, documented defaults, documented commands, duplicated facts, and the two hand-maintained indexes. - [Safety gates](/trader/docs/developer/safety-gates): Six gates over the mechanisms that stop trading — the kill switches, the graceful stop, the feed-thread stop budget, held divergences, the live-account lock, and every paper mount. - [Supply chain](/trader/docs/developer/supply-chain): What CI may download and run on the boxes that sign real orders, how much unsafe code the workspace holds, and the single transport stack cargo-deny enforces. - [Release gates](/trader/docs/developer/release-gates): Five gates over what Vike Trader ships — the container image, the shipped units, the fxcm-linked artifact, the public mirror, and the dispatcher's boot behaviour. - [Drift gates](/trader/docs/developer/drift-gates): The committed-generated-artifact family — why two build outputs are committed rather than produced, how each is re-derived and compared, and why the comparison styles differ. - [Decision records](/trader/docs/developer/decision-records): One page per architectural verdict, what each field holds, and how to read a Status line — including which status may never be cited as settled. - Testing - [Testing](/trader/docs/developer/testing): The six tiers of verification in the Vike Trader workspace — unit, property, conformance, gate, smoke and latency — and what each one is the only tier able to prove. - [The exec contract](/trader/docs/developer/testing/exec-contract): One scenario table folded through the real order FSM against every covered venue's real event mapper — the machine-checked version of emitter-split, no-silent-vanish and exactly-one-terminal. - [The market-data contract](/trader/docs/developer/testing/market-data-contract): Three L2-book invariants — monotonic sequence, gap triggers a resnapshot, derived L1 matches the book — run against every covered venue's real book normalizer. - [Roster exhaustiveness](/trader/docs/developer/testing/roster-exhaustiveness): One canonical venue list, and the completeness tests that force every table and every harness to classify each member — covered, or deferred with a written reason. - [Property tests](/trader/docs/developer/testing/property-tests): Randomized suites over the pure cores where golden fixtures only pin examples — the laws they assert, the never-widen discipline, and why a counterexample seed is committed. - [Test doubles](/trader/docs/developer/testing/test-doubles): One owned double per seam, behind a `test-support` feature a default build never compiles — the scripted WS streams, the in-memory history store, the recording broker, and the sanitized capture writer. - [Wire quantizers](/trader/docs/developer/testing/wire-quantizers): The places an f64 becomes the decimal string a venue is sent or an order is signed over — the roster, the source gate that holds them exact, and the cliff they amplify. - [Live smokes](/trader/docs/developer/testing/live-smokes): The tier that touches a real account — never run by an ordinary `cargo test`, credential-gated wherever an account is involved, demo-only, dispatched by hand, and fronted by one shared credential refusal that a test actually runs. - [Running the latency gate](/trader/docs/developer/testing/latency): How to build, run and read the core-hop latency harness — serial execution, the reserved cores, the persisted series, and an A/B whose ranking survives a second run. - [Adding to the parity suite](/trader/docs/developer/testing/parity): The procedure for a new golden fixture, a new second-oracle gate or a new property test — where each lives, what it may assert, and the never-widen rule as a review checklist. - Build with AI - Trader: The agent surface over vike-cli mcp: author and backtest strategies, read a live node, and trade behind the same arming ceiling every other surface obeys. - [Trader MCP server](/trader/docs/ai): 17 tools over a local stdio server — author and backtest Rhai strategies, read a live trading node, and place orders behind a mandatory preview gate, or fewer tools under a profile that withholds the writes outright. - Client setup - [Client setup](/trader/docs/ai/setup): Add the local vike-cli mcp stdio server to Claude Desktop, Claude Code, Cursor, Gemini CLI, VS Code, Codex CLI, Amazon Q Developer CLI or Windsurf, or drive it from a script. - [Claude Desktop](/trader/docs/ai/setup/claude-desktop): Declare vike-cli mcp as a local command in claude_desktop_config.json, and get the node keys somewhere a GUI-launched process can actually see them. - [Claude Code](/trader/docs/ai/setup/claude-code): One claude mcp add, with the double dash that hands vike-cli its own flags — and the one client that does inherit your shell's exports. - [Cursor](/trader/docs/ai/setup/cursor): The command + args entry in mcp.json, global or per project, and why the node keys belong in the credential store rather than this file. - [Gemini CLI](/trader/docs/ai/setup/gemini-cli): gemini mcp add on the default stdio transport, with the double dash that keeps --node on the vike-cli side of the command line. - [VS Code](/trader/docs/ai/setup/vs-code): The stdio entry in .vscode/mcp.json for GitHub Copilot, and why this file should never hold a node key. - [Codex CLI](/trader/docs/ai/setup/codex-cli): The one client whose config is TOML rather than JSON — an mcp_servers table in config.toml, or codex mcp add with the double dash that keeps --node on the vike-cli side. - [Amazon Q Developer CLI](/trader/docs/ai/setup/amazon-q): The mcpServers entry in ~/.aws/amazonq/mcp.json — global or per workspace, with the merge rule that decides which one wins and why the control key belongs in the credential store. - [Windsurf](/trader/docs/ai/setup/windsurf): The mcpServers entry in ~/.codeium/windsurf/mcp_config.json, reached from Cascade's MCP panel — and why a desktop-launched editor is the case where the credential store earns its keep. - [Remote node](/trader/docs/ai/setup/remote-node): Reach a vike-tradehub node on another machine through an ssh tunnel — the daemon keeps binding loopback, -L brings the port to you, and the same tunnel serves vike-cli mcp, the trade REPL and the desktop app. - [Raw JSON-RPC](/trader/docs/ai/setup/raw-http): There is no URL to curl — the trader server is a pipe. The stdio wire protocol, the result envelope, every error shape, and the two that mean "it may have executed". - [Drive Vike Trader from Claude](/trader/docs/ai/drive-vike-from-claude): Two captured MCP sessions, annotated — the handshake, the templates, a compile error, a tool call that failed because the agent guessed, and the backtest report that came back. - Tools - [MCP tools](/trader/docs/ai/tools): The seventeen tools vike-cli mcp advertises, what each one reaches, the profile that can withhold whole rings of them, and the gates — confirm plus a single-use preview_token — that stand between an agent and a real order. - **Author** - [validate_strategy](/trader/docs/ai/tools/validate_strategy): Compile a Rhai strategy offline — and understand exactly which class of mistake a compile can and cannot catch. - [discover_params](/trader/docs/ai/tools/discover_params): Read back the tunable param() knobs a Rhai strategy declares, with their defaults, in declaration order — offline, with no server of any kind. - [list_templates](/trader/docs/ai/tools/list_templates): The three starter Rhai strategies an agent can copy, and the execution gate that stands behind them. - [list_indicators](/trader/docs/ai/tools/list_indicators): The host-bound indicators a Rhai strategy can actually call — a compact roster by default, detail pulled per name or per family. - [list_strategies](/trader/docs/ai/tools/list_strategies): The compiled native strategy names a profile's strategy.name can resolve on the datahub you are pointed at. - [list_series](/trader/docs/ai/tools/list_series): Enumerate every stored data series the remote vike-datahub server holds, each with its cheap coverage, so an agent can pick a real date range before it writes a profile. - **Backtest** - [run_backtest](/trader/docs/ai/tools/run_backtest): Ship a backtest profile to a vike-datahub server and get the report back, optionally with a Rhai script injected into it. - [run_sweep](/trader/docs/ai/tools/run_sweep): Expand a profile's parameter grid on the datahub and get every point back ranked best-first, each with its own report. - [run_walk_forward](/trader/docs/ai/tools/run_walk_forward): Walk a profile forward over its anchored out-of-sample windows on the datahub and get the stitched OOS report back. - **Trade** - [submit_order](/trader/docs/ai/tools/submit_order): Place one order on a running vike-tradehub node — preview first, execute only on a second call carrying both confirm true and the single-use preview_token that preview returned. - [cancel_order](/trader/docs/ai/tools/cancel_order): Cancel one resting order by client order id on a running vike-tradehub node — previewed by default, sent only on a second call carrying both confirm and the preview_token. - [modify](/trader/docs/ai/tools/modify): Change one resting order's quantity, price, or both — previewed by default and executed only against the preview_token that preview returned, and refused at a node with a notional ceiling when a quantity increase names no price. - [flatten](/trader/docs/ai/tools/flatten): Close one venue-and-symbol net position with a reduce-only market order sized at apply time — previewed by default, sent only against a confirming call that carries the preview_token. - [market_exit](/trader/docs/ai/tools/market_exit): The panic button — cancel every live order, then flatten every open one-way position (hedge-mode legs are skipped), optionally scoped to one venue; two-call gated like every other write tool, on confirm plus a preview_token. - [mass_cancel](/trader/docs/ai/tools/mass_cancel): Cancel every live order at once, optionally scoped to a venue and symbol — behind the confirm-plus-preview_token gate, and with one scoping combination that is deliberately ignored rather than guessed at. - [set_trading_state](/trader/docs/ai/tools/set_trading_state): The account kill switch as an MCP tool — three states, applied to every engine the node runs, gated like every other write on confirm plus the single-use preview_token, and unable to arm a venue. - [node_snapshot](/trader/docs/ai/tools/node_snapshot): The one read tool against a running vike-tradehub node — orders, positions, per-venue equity, recent events — and the tool that settles an ambiguous write. - [Authoring](/trader/docs/ai/authoring): 4 offline tools — compile a Rhai strategy, list its param() knobs, read the starter templates, and see which indicators the script host actually binds. - [Backtesting](/trader/docs/ai/backtesting): 5 tools over the datahub — backtest, parameter sweep and anchored walk-forward from a profile TOML, plus the strategy roster and the stored-series inventory. - [Live node](/trader/docs/ai/trading): 8 tools against a running vike-tradehub node — one read, and seven order-write verbs behind a two-call gate that needs both confirm and a single-use preview_token. - [Unattended runs](/trader/docs/ai/unattended): vike-agent-run — one agent session against your own node, on your own box, on your operating system's schedule, read-only unless you say otherwise, leaving a record of every run. - Trader changelog: Released versions of the Vike trading platform, newest first - [Trader changelog](/trader/docs/changelog): Every released version of the Vike trading platform, newest first — what changed for a user, what breaks on upgrade, and what was measured.