Critical-risk tools in Okx Trade
24 of the 70 tools in Okx Trade are classified as critical risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at critical risk
-
grid_amend_orderDestructiveAmend a running grid bot. [CAUTION] Modifies a running bot. Use grid_list_orders to confirm the bot is running and obtain the algoId before calling. Supports two modes, which ca...
-
option_batch_cancelDestructive[CAUTION] Batch cancel up to 20 OPTION orders.
-
option_cancel_algo_ordersDestructiveCancel OPTION algo orders (TP/SL). Each item: {algoId, instId}.
-
option_cancel_orderDestructiveCancel an unfilled OPTION order. Provide ordId or clOrdId.
-
spot_batch_cancelDestructive[CAUTION] Batch cancel up to 20 spot orders.
-
spot_cancel_algo_orderDestructiveCancel a spot algo order (TP/SL).
-
spot_cancel_orderDestructiveCancel an unfilled spot order.
-
swap_batch_cancelDestructive[CAUTION] Batch cancel up to 20 SWAP/FUTURES orders.
-
swap_cancel_algo_ordersDestructiveCancel one or more pending SWAP/FUTURES algo orders (TP/SL). Accepts a list of {algoId, instId} objects.
-
swap_cancel_orderDestructiveCancel an unfilled SWAP/FUTURES order.
-
account_transferFinancialTransfer funds between accounts (trading, funding, etc.). [CAUTION] Moves real funds.
-
grid_create_orderFinancialCreate grid bot (spot, USDT-margined, or coin-margined contract). [CAUTION] Locks funds. Spot: quoteSz|baseSz. Contract: direction+lever+sz.
-
grid_stop_orderFinancial[CAUTION] Stop a grid bot or close its remaining open position — real trades, irreversible. Workflow: (1) If the user has not specified which bot to stop, call grid_get_orders f...
-
option_place_algo_orderFinancialPlace OPTION TP/SL algo order (conditional/oco). [CAUTION] Executes real trades. conditional=single TP/SL; oco=TP+SL pair. -1=market.
-
option_place_orderFinancialPlace OPTION order. instId: {uly}-{expiry}-{strike}-C/P, e.g. BTC-USD-241227-50000-C. Before placing, use market_get_instruments to get ctVal (contract face value) - do NOT assu...
-
spot_batch_ordersFinancial[CAUTION] Batch place/cancel/amend up to 20 spot orders. action: place|cancel|amend.
-
spot_place_algo_orderFinancialPlace a spot algo order. [CAUTION] Executes real trades. conditional: single TP/SL. oco: TP+SL pair. move_order_stop: trailing stop. trigger: pending order at triggerPx. chase: ...
-
spot_place_orderFinancialPlace a spot order. Attach TP/SL via tpTriggerPx/slTriggerPx. [CAUTION] Executes real trades.
-
swap_batch_ordersFinancial[CAUTION] Batch place/cancel/amend SWAP/FUTURES orders (max 20). action=place|cancel|amend.
-
swap_close_positionFinancial[CAUTION] Close entire SWAP/FUTURES position at market.
-
swap_place_algo_orderFinancialPlace a SWAP/FUTURES algo order. [CAUTION] Executes real trades. conditional: single TP, single SL, or both on one order. oco: TP+SL simultaneously - first trigger cancels the o...
-
swap_place_move_stop_orderFinancial[DEPRECATED] Use swap_place_algo_order with ordType='move_order_stop' instead. Place a SWAP/FUTURES trailing stop order. [CAUTION] Executes real trades. Specify callbackRatio (e...
-
swap_place_orderFinancialPlace SWAP/FUTURES order. Attach TP/SL via tpTriggerPx/slTriggerPx. Before placing, use market_get_instruments to get ctVal (contract face value) - do NOT assume contract sizes....
-
swap_set_leverageFinancialSet leverage for a SWAP/FUTURES instrument or position. [CAUTION] Changes risk parameters. Scenarios (SWAP/FUTURES only): • cross + any instId under the index -> sets leverage...
Attacks that target this class
Critical-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.