How do I trade with a smart account?

Publicado em 22 de ago. de 2025Atualizado em 22 de ago. de 2025Leitura de 4min

Smart accounts currently support advanced trading strategies on both EVM and Solana networks via OKX DEX, with ongoing plans to expand support to additional blockchains and features. To trade using a Smart Account, start by selecting a supported trading product on OKX Wallet and entering your order details as usual. Before submitting the order, make sure to select your Smart Account as the funding method.

How are smart account orders executed?

1. User order placement & signing

  • When an order is placed, your device signs the order intent using your private key (e.g., order type, trading quantity)

  • This signed order is securely stored on the OKX DEX backend

2. Condition monitoring by OKX DEX

The OKX DEX backend continuously monitors the market to check if the trigger conditions (e.g., reaching the target price) are met.

3. TEE-enabled secure signing

  • Once triggered, the transaction calldata and your original signature are sent to the TEE

  • The TEE validates that the transaction matches your intent and signs it using the wallet’s private key stored securely within the TEE

4. On-chain transaction broadcast

  • The signed transaction is automatically broadcast to the blockchain for execution

What advanced trading strategies are supported?

OKX TEE (Trusted Execution Environment) enables secure and automated trading with advanced on-chain execution. Below are the currently supported and upcoming features:

Currently supported

Market order

Executes immediately at the best available market price

Ideal for fast trades with immediate settlement

Limit Order (USD denominated)

A conditional order that triggers only when the market reaches a specified USD-denominated price.

Once activated, the trade executes via a swap transaction.

Note: slippage may affect the final amount received.

Limit Order (Swap rate)

A conditional order that triggers only when the swap rate guarantees more tokens than a specific threshold

Once activated, the trade executes via a swap transaction.

Note: slippage may affect the final amount received.

Auto Sell - Take Profit / Stop Loss (TP/SL)

When placing a market buy order, users can set auto-sell strategies (Take Profit or Stop Loss):

Take Profit (TP): Sell when price increases to a target profit

Stop Loss (SL): Sell when price drops to a stop-loss threshold

Note: both TP and SL are based on USD values, calculated from the initial buy price.

Coming soon

Copy Trade

Automatically mirror trades of expert traders

Dev Sell

Automatically sell your tokens once the creator sells their holdings

Sniper Migration

Buy and sell the token right after its migration

DCA (Dollar-Cost Averaging)

Spread buys/sells over time to reduce volatility impact

Trailing Stop

Dynamically adjusts TP/SL thresholds to lock in profits or limit losses as the market moves

Where can I view my orders?

You can view your active and past orders from:

  1. Trading Page (under Place Order Section)

  2. Transaction Records

Order types:

  • Open Orders: active, pending execution, etc.

  • Order History: completed, canceled, or expired orders, etc.

Why is authentication required to view open orders?

To access your orders, you'll be asked to sign a message to verify your wallet ownership. This protects your account and strategy.

Order Protection

  • Without authentication, others could access your pending orders, risking:

    • Front-running: malicious actors could exploit your order details to manipulate prices before execution

    • Targeted attacks: adversaries might artificially drive the market to your trigger price (e.g., stop-loss hunting)

How it works:

  • You'll sign a verification message with your private key

  • Your ownership is confirmed without exposing your actual key

Why are my orders paused, and how do I resume them?

Open orders are automatically paused when:

  • Your Smart Account (SA) has expired, or

  • An upgrade is required

This helps avoid:

  • Failed on-chain transactions: if the SA is inactive, triggered orders would fail on-chain, wasting gas and leaving positions unexecuted

  • Invalid or unsigned orders: without a valid SA, orders cannot be signed, rendering them obsolete

How do I resume the paused orders?

Re-activate your smart account

You can re-activate your smart account by uploading your private key to the TEE (Trusted Execution Environment) to restore signing access

You can check more details here: How do I enable or disable my smart account?

Manually resume orders

  1. Go to your order list and review the paused orders, and

  2. Check if orders are still relevant (e.g., market conditions may have changed)

  3. Select Resume for orders you still want

  4. If no longer needed, cancel them to free up resources

You can also learn more by checking DEX FAQ