decker
v1.10.0Deterministic market-state engine for trading agents — state, gate, coordinates, with receipts.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
decker.get_assembly
THE answer for 'what is the situation and what do I do on this symbol now' — the head decision: one decision object per symbol, computed every 30 minutes from every timeframe's judgment state and stored (no scores or weights). Each item: `head` = the stored answer {as_of, price, valid_until, action BUY|SELL|WAIT, entry, stop, target, next_target, reason, if_wait[] (WAIT: the judging place's two branches — price, when, action, target), invalid_if, fresh}; `lines` = the same answer as Korean sentences (first line = reason: where it came from → where it is now → judging / confirmed; WAIT…
| Parameter | Type | Description |
|---|---|---|
detail | boolean | Add `decision` — the full stored decision object (basis, bar, prev, path, branches, close_questions, sequence, why). Default false: the answer only. |
symbol | string | Optional symbol or alias (BTC, 비트코인, GOLD, 테슬라...). Omit for all 14 symbols. |
decker.get_market_state
PER-TIMEFRAME judgment state of a symbol — the evidence behind decker.get_assembly's single verdict (call get_assembly first for 'what do I do'). DEFAULT (detail=false): per timeframe (top→short) `reading` = one Korean line: target (touch kind, touch bar time) · phase (대상선정 / 테스트 국면 / 확인 국면 with hold count / outcome) · bar role now and what the next bar makes it · latest signal and its outcome (signal bar time, close) · action · price vs target · next close and what confirms or fails it; `chain` = the last 3 targets: selected → judge bar·signal bar result…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT, XYZ_GOLDUSD |
detail | boolean | false (default) = per timeframe only `reading` (one Korean line: target, phase, bar role and what the next bar makes it, latest signal, action, next close and what confirms/fails) + `chain` (recent ta… |
events_limit | integer | |
timeframe | string | Alias for a single-element `timeframes` (backward compatible). |
timeframes | array | Subset to return. Omit for all timeframes. |
decker.get_view
DEPRECATED — for the 14 engine symbols this returns exactly the default decker.get_market_state answer: `head` = the symbol's stored decision {as_of, price, valid_until, action BUY|SELL|WAIT, entry, stop, target, next_target, reason, if_wait[], fresh} plus the per-timeframe evidence rows (`timeframes[].reading`). `tf` is accepted and ignored (`ignored_args`). Call decker.get_market_state instead. KRX symbols (005930.KRX) keep the old Korean status card (lines · direction · verdict). Before placing an order call decker.validate_intent. layer=STATE_VIEW: a market-state reading, NOT a trade i…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT, XYZ_GOLDUSD (crypto + HL TradFi synthetics; KRX daily lineage not yet covered by view v1) |
tf | string | Optional view timeframe — the grounded narrative is composed on this TF's bar (e.g. '1h' when the user asks about the 1-hour picture). Omit for the engine's default action TF (usually 4h, same as th… |
decker.get_reading
How ONE timeframe looks right now, in plain language: state (phase, this timeframe's key direction, posture GO/WATCH/HOLD — a stance, not an order), mtf.by_tf (the same for other timeframes), narrative, plus `head` = the symbol's stored decision (the same answer decker.get_assembly and decker.get_market_state return: action BUY|SELL|WAIT, entry/stop/target, reason, if_wait[], fresh). `state.direction` is only this timeframe's signal side — for the decision use `head`. KRX symbols carry `assembly` (the per-stock verdict) instead of `head`. For the structured per-timeframe judgment use decke…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT |
include_tfs | string | Comma-separated additional TFs (e.g. '1h,4h,1d'). |
tf | string |
decker.get_signals
Active trading signals for the current user (with Skill Overlay applied), in customer-facing shape: coordinates (entry/target/stop), decision (ENTER/WAIT/SKIP — is_actual_trigger=true only for ENTER; WAIT/SKIP are standing candidates, not executed triggers), action_gate posture (GO/WATCH/HOLD — a stance, not an order command), progress, MTF verdict, and a plain-language summary_ko line. risk_reward_ratio is computed on the DISPLAYED coordinates (after overlay). Signals are retained rather than cut when they age (turn-retention policy) — read freshness_state (open|aged) / age_bars / fresh…
| Parameter | Type | Description |
|---|---|---|
action_gate | string | Engine action gate filter (3-layer grammar: gate = transition posture, not an order command). Rows where the engine emitted no gate for this bar (effective_action_gate null, e.g. KRX daily) are exclud… |
limit | integer | |
min_progress | number | Minimum progress_pct (0-100). |
symbols | array | Symbol filter (e.g. ['BTCUSDT','ETHUSDT']). Omit for all. |
timeframe | string | Signal horizon filter (30m=scalp, 1h=swing, 4h/8h/1d=position). The same symbol can hold OPPOSITE directions on different horizons — omit to get the latest active signal regardless of horizon (its t… |
decker.get_episodes
Price-axis EPISODE history — answers 'where did I buy/sell last time, what was the target value and the event chain then, and where did price move WITHOUT a signal (and which target values it passed = missing points)'. Read-only from the persisted event ledger (no recompute). `episodes` (newest first) = one target selection until the next: target {price, from_price, reason}, chain (primary-unit judgment events), signals {ts, side, entry, targets, resolved{status, close, bar_low, bar_high}}, left (unit ends in that episode: result CONFIRMED | FAILED | MISSING = a target price passed before it…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT |
timeframe * | string | |
limit | integer | number of episodes |
decker.get_trigger_history
ACTION axis — actual historical GO triggers (not standing WATCH/HOLD candidates) for a symbol, with entry/target/stop coordinates and realized performance (mfe_pct/mae_pct/exit_reason/exit_price from trigger_performance, null = still open). Distinct from decker.get_signals (which reflects only the current-moment state, not a searchable history — its action_gate filter answers 'what does symbol×tf look like right now', not 'when did this last fire'). Use this to answer 'what did the engine actually trigger recently and at what price' — decker.get_signals/get_market_state cannot answer th…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT |
limit | integer | |
since | string | ISO8601 lower bound on trigger time (exclusive). Optional. |
timeframe | string | Optional — omit for all timeframes. |
decker.get_positions
Axis③ (Order/Execution) — this user's actual exposure (each open row of the 14 engine symbols carries `vs_head` = the held side vs the symbol's stored decision (relation same | opposite | wait | no_answer; position_answer comes once positions carry their board key); KRX rows keep `vs_verdict` with `knots` / `exit_levels`): real open futures positions (execution_mode=real, with live sl_price/tp_price), virtual (paper) open positions, and the last 10 closed round-trips per mode. This is what your money actually did, distinct from decker.get_signals (axis②, what the engine recommends) — u…
decker.validate_intent
Pre-trade gate check for a proposed order intent. Call this BEFORE placing any order through any execution tool (e.g. a broker MCP's review→place flow). Checks the intent (symbol + side) against Decker's deterministic market state: engine action_gate (GO/WATCH/HOLD — a transition posture, not an order command), current structural state, and the active signal's direction / invalidation (stop) coordinates. Returns a stance reading, NOT an approval or rejection: the vocabulary is the engine gate as-is plus a mechanical tf_signal_alignment (aligned/opposed vs the active signal's direction). co…
| Parameter | Type | Description |
|---|---|---|
side * | string | Proposed order direction (buy/long = +, sell/short = -). |
symbol * | string | e.g. BTCUSDT, SILVER, 테슬라 — aliases resolve to the engine symbol (XYZ_SILVERUSD, XYZ_TSLAUSD, …). |
order_type | string | Optional, informational (market/limit/…) — recorded in the ledger, does not change the state verdict. |
timeframe | string | Gate horizon. Omit = your open position's entry TF if you hold one on this symbol, else decker.get_assembly's entry TF (the single judgment authority's current best-path TF), else the engine's default… |
decker.get_user_skills
Trading skill catalog + currently active overlay for this user. Returns 8 published skills (conservative_v0/standard_v0/aggressive_v0/default_v0/scalp_v0/tight_v0/wide_v0/swing_v0) and the user's selected one. Also returns symbol_skills: the symbols where this user's paper account turns the symbol verdict's entry event into an order (turn on/off with decker.set_symbol_skill or REST /auto-order-rules/symbol-skills).
decker.set_skill_overlay
Change active trading skill overlay for this user. Immediately affects all subsequent get_signals calls and downstream channels.
| Parameter | Type | Description |
|---|---|---|
skill_id * | string | trading_skills.id (e.g. 'aggressive_v0'). |
decker.set_symbol_skill
Turn the per-symbol integrated skill on or off for this user's paper (virtual, default) or live (execution_mode=real, quantity required) account. When on, the symbol verdict's entry event (decker.get_assembly) opens an order and the same verdict's exit / opposite-entry events close it — same algorithm in both modes; per-timeframe rules never close a position this skill opened. Defaults: paper notional quantity, engine stop/target. replace_timeframe_rules=true pauses this user's paper per-timeframe rules for the symbol and hands their open positions to the skill (adopted_position_ids); paused…
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | true = on (idempotent), false = off (rule kept, paused). |
symbol * | string | e.g. BTCUSDT, XYZ_GOLDUSD (a symbol with an engine verdict). |
execution_mode | string | virtual (default) = paper account; real = live exchange (Binance USDT-M futures / Hyperliquid), same verdict→order→exit algorithm. With enabled=false: turn off only that mode's skill. |
horizon | string | Horizon timeframe to hold: orders every just-born signal at or below it toward that timeframe's next cell (≥2%), exits on that timeframe's action. own (default) = each signal's own timeframe. Omitte… |
quantity | number | Optional order size. Omitted = paper default notional. Required when execution_mode=real. |
replace_timeframe_rules | boolean | Pause this user's paper per-timeframe rules for the symbol (default false). |
restore_rule_ids | array | With enabled=false: re-activate these paused per-timeframe rules. |
decker.place_order
Axis③ (Order/Execution) — unlike every other tool here, this one moves money. It places a market order through DECKER'S OWN execution engine (same path as the decker-ai.com chat trading UI, source='mcp') — it does NOT hand off to your own broker connection or exchange account; Decker executes using whatever exchange credentials this user has separately linked to their Decker account on the website. execution_mode (virtual|real) is NOT chosen by the caller — it is resolved server-side from this user's account settings (user_settings.execution_mode) AND the platform's real-trading kill s…
| Parameter | Type | Description |
|---|---|---|
notional_usd * | number | Order size in USD (quantity = notional_usd / current price). This is the value checked against the account's tier notional cap. |
side * | string | Order direction (buy/long or sell/short). |
symbol * | string | Crypto-6 only for this MCP write path. |
decker.close_position
Axis③ (Order/Execution) — closes (or partially reduces) an existing position through DECKER'S OWN execution engine (see decker.place_order for what that means — same account-linkage requirement applies here for real positions). Unlike place_order, there is no crypto-6 restriction — this reduces risk, not adds it, so any symbol you actually hold (including HL-synthetic/KRX paper positions) can be closed. Mode is NOT chosen by the caller — this looks up whatever position(s) actually exist for the symbol (real via live exchange query, virtual via the paper ledger) and closes whichever a…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT, XYZ_GOLDUSD — whatever symbol you hold. Aliases resolve like other tools. |
close_fraction | number | Fraction of the current position to close, 0 < x <= 1. Default 1.0 = full close. E.g. 0.5 closes half. |
decker.update_protective_stops
Axis③ (Order/Execution) — modifies the stop-loss and/or take-profit on an EXISTING open position. There is no cancel_order tool because Decker only places market orders (there is no resting order to cancel) — the actual gap this fills is modifying protective stops on a position you already hold. real: cancels the old exchange stop/take-profit order(s) and places new ones at the given price(s) (new order placed first, old one canceled only after — no unprotected window). virtual: updates the paper position's stop_loss/take_profit columns directly (polled by the paper monitor). Provide a…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | e.g. BTCUSDT — must be a symbol you currently hold. |
mode | string | Only required when both a real and a virtual position are open for this symbol — says which one to modify. |
sl_price | number | New stop-loss price. Omit to leave the current stop unchanged. |
tp_price | number | New take-profit price. Omit to leave the current target unchanged. |