一键导入
trading
Place, monitor, and cancel orders on configured exchanges. Includes safety-first order lifecycle, paper trading simulation, and emergency stop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Place, monitor, and cancel orders on configured exchanges. Includes safety-first order lifecycle, paper trading simulation, and emergency stop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Set up, manage, and automate Dollar Cost Averaging (DCA) plans. Supports buy (DCA-in) and sell (DCA-out) on any exchange, with optional indicator-gated triggers, per-plan lookback, and Settrade stock share ordering.
Fetch real-time and historical market data from configured exchanges — tickers, OHLCV candles, order books, and market catalogues.
Compute cost basis and profit/loss across exchange accounts — both unrealized (currently held) and realized (from closed trades). Use when the user asks about profit, loss, cost basis, ต้นทุน, กำไร/ขาดทุน, or returns on holdings across one or multiple portfolios.
Query exchange balances and portfolio values across configured exchange accounts — including crypto (Binance, Bitkub, OKX), Thai equities (Settrade/SET), and US equities (Webull).
Compute and interpret technical indicators (SMA, EMA, RSI, MACD, Bollinger Bands, ATR, Stochastic, VWAP) from live OHLCV data.
Scan, plan, monitor, and execute spot + perpetual funding-carry strategies on Binance and OKX with explicit portfolio selection and approval-based execution.
| name | trading |
| description | Place, monitor, and cancel orders on configured exchanges. Includes safety-first order lifecycle, paper trading simulation, and emergency stop. |
Follow the order lifecycle below whenever executing trades.
validate → [confirm if large] → execute → verify fill
get_assets_list before placing a buy order.get_order_rate_status to confirm tokens are available.confirm=true.create_order with confirm=true.get_order to confirm the fill status.paper_trade tool is NOT available/enabled: Assume the user always wants real execution. Never suggest simulating or paper trading — just proceed with real orders.paper_trade tool IS available/enabled: Only offer to simulate when the user's message contains words like "simulate", "test", "paper", "pretend", "practice", or "what if". Otherwise default to real execution.Place a new order. Runs 7 internal safety gates before executing.
provider, account, symbol: as per market-data skilltype: "limit" | "market" | "stop_loss" | "take_profit"side: "buy" | "sell"amount: quantity in base currencyprice: limit price (required for limit orders)confirm: set true to execute; false for dry-runCancel an open order.
provider, account, symbol: as aboveorder_id: the order ID to cancelRetrieve a single order by ID.
provider, account, symbol, order_idList all currently open orders.
provider, account: as abovesymbol: optional filter — required for Bitkub (Bitkub API does not support fetching all open orders without a specific trading pair)Retrieve closed/filled order history.
provider, account, symbol: optionalsince: Unix milliseconds start timelimit: max 200Retrieve personal trade execution history.
provider, account, symbol: optionalsince, limit: as aboveSimulate an order using live market price. Does NOT place a real order.
provider, account, symbol, type, side, amount, priceShow current rate-limit token counts per provider. No parameters.
Cancel ALL open orders across all configured providers. Irreversible.
confirm: must be true to executeUse these tools when the user asks for perpetual futures, perps, leverage,
long/short futures positions, funding fees, liquidation, or futures PnL.
Only binance and okx support this path. binanceth and bitkub are
spot-only in KhunQuant and must not be used for futures.
Symbol format is CCXT contract format:
BTC/USDT:USDTBTC/USDT:USDTBTCUSDT or BTC/USDT is accepted by the futures tools
and normalized to BTC/USDT:USDT.Open a long/short perpetual futures position with leverage. It sets leverage, places the entry, then optionally places reduce-only protection orders.
provider: binance or okxaccount: optionalsymbol: perp symbol as aboveside: long or shortamount: contract/base quantity as expected by that CCXT marketleverage: 1-125margin_mode: cross or isolated (default cross)order_type: market or limit (default market)price: required for limit entriesstop_loss: optional trigger pricetake_profit: optional trigger priceconfirm: must be true for live executionSet leverage without opening a position.
provider, account, symbol, leverage, margin_mode, position_side, confirmList current futures positions with contracts, leverage, entry, mark, unrealized PnL, and realized PnL if the exchange reports it.
provider, accountsymbol: optional filterRetrieve futures order details by ID.
provider, account, symbol, order_idCheck current funding rate and optionally account funding-fee history.
Public API — no credentials required for the current rate. Only include_history=true needs an authenticated account.
provider, account, symbolinclude_history: true to include paid/received funding feessince: optional history start (30d, 2026-01-01, ISO 8601)limit: max 100Always follow this sequence for futures operations:
futures_validate_market) — confirm the symbol is an active linear swap before anything else.futures_risk_summary, futures_estimate_funding_fee) — understand current exposure and upcoming funding payments.trading_risk.allow_leverage=true must be set in config; all live futures mutation tools reject without it.futures_open_position) — always supply stop_loss and/or take_profit. If protection placement fails, the tool returns an UNPROTECTED POSITION error; immediately call futures_modify_protection or futures_close_position.futures_get_positions, futures_risk_summary) — watch margin health and liquidation distance.futures_modify_protection, futures_reduce_position) — move stops or trim size as the trade develops.futures_close_position) — reduce-only market or limit close.futures_emergency_flatten) — cancels all futures orders then closes every open position; requires confirm=true.Load market metadata and confirm a symbol is a tradeable active linear swap.
Returns contract size, min amount, min cost, leverage min/max, and settlement currency.
Public API — no credentials required. Read-only, no allow_leverage needed.
provider, account (optional), symbolSummarize all open futures positions with margin health, liquidation distance, and PnL.
Returns per-position: side, size, entry, mark, liquidation distance %, margin mode, leverage, unrealized PnL, margin ratio %, and a risk label (safe / warn / critical).
Read-only.
provider, account (optional)symbol: optional filterEstimate the next funding payment for a symbol or all open positions. Returns next funding timestamp and estimated fee (positive = you pay, negative = you receive). Read-only.
provider, account (optional)symbol: optional — if omitted and account is set, estimates for every open positionClose a specific futures position with reduce-only order semantics. Requires confirm=true.
provider, account, symbolorder_type: market (default) or limitlimit_price: required when order_type=limitposition_side: optional hedge-mode side (long or short)confirm: must be trueReduce an open position by an absolute amount or a percentage. Requires confirm=true.
Exactly one of amount or percent must be provided.
provider, account, symbolamount: base units to reducepercent: 1–100 percent of current position size to reduceorder_type, limit_price, position_side, confirmCreate, replace, or move stop-loss and take-profit orders for an open position.
If replace=true, cancels any existing reduce-only protection orders first.
An UNPROTECTED POSITION warning is returned if cancel succeeds but placement fails.
Requires confirm=true.
provider, account, symbolstop_loss: new stop-loss trigger price (optional)take_profit: new take-profit trigger price (optional)replace: true to cancel existing protection before placing new orders (default false)confirm: must be trueCancel futures orders by ID, by symbol (all), or by type. Requires confirm=true.
provider, accountsymbol: requiredorder_id: cancel a specific order by IDtype: all | entry | stop_loss | take_profit | protection (cancels SL+TP)confirm: must be trueCancel all futures orders then close every open position with reduce-only market orders.
Always returns a final risk summary to confirm zero exposure. Requires confirm=true.
provider, account (optional — flattens all configured futures accounts if omitted)confirm: must be trueget_open_orders and get_order_history require a symbol parameter (e.g. BTC/THB). Calling without a symbol will fail — always ask the user which trading pair to check, or iterate over known pairs.binance and okx.type: market, limit (needs price), stop_loss (price = stop price); take_profit is not supported. time_in_force: DAY or GTC only. Amount is in shares and supports fractional (e.g. 0.5) — but fractional amounts require market orders (Webull rejects fractional limit/stop). side: buy or sell. ETFs (SPY, VOO, …) trade through the same equity order tools. Options are supported via the dedicated option_* tools (see below). Crypto and futures are US-only Webull products and are not available on this account.Use the dedicated option tools, not create_order (options need contract legs, not a plain symbol):
option_create_order — place a single-leg option. Params: provider (webull), underlying (e.g. "AAPL"), expiry (yyyy-MM-dd), strike, option_type (CALL|PUT), side (buy|sell), quantity (contracts), type (limit default, or stop_loss/stop_loss_limit — no market), limit_price/stop_price, time_in_force (DAY, or GTC buy-only), confirm. One contract = 100 shares (notional = price × 100 × quantity).option_cancel_order / option_get_order / option_open_orders — manage option orders by id (the client_order_id returned by placement).symbol: use SET ticker format e.g. "PTT/THB" or just "PTT"type: "limit" (Limit order) or "market" (ATO — At The Open)amount: number of sharesprice: required for limit orders, ignored for market/ATOpin to be set in config — it is sent automaticallycancel_order then place a new one — Settrade's change_order is handled internally