0. Introduction to OKX trading
Advantages: Unified account, Shared margin and PnL offset
- OKX unified account is a brand-new trading system launched by OKX, through which users can trade spot and derivatives simultaneously in multiple currencies by one account without transferring funds back and forth between multiple accounts, making the trading process much easier.
- Moreover, users’ profits and losses generated from different business lines can offset each other, significantly improving the use of funds.
- There are 4 account modes in unified account and TradingView supports 2 of them: Simple and Single-currency margin.
- You can trade all OKX products except for the Options on TradingView site.

1. Connect OKX to TradingView
Step 1: Search OKX products on TradingView
On TradingView you can search for OKX products in the ticker search using
the prompt "OKX:".
Then choose your trading symbol and click on the "Launch chart" button.

Step 2: Choose OKX from the trading panel on TradingView
If you don’t see OKX listed on the trading panel, use the button with
three dots to view more brokers.

Step 3: Click "Connect" and "Continue" to connect to OKX
Step 4: Sign up / Log in to authorise TradingView
If you have OKX account, sign in directly. Otherwise, sign up first.
Reference 1
|
Reference 2
|
|
Sign up
|
![]() |
![]() |
Log in
|
![]() |
![]() |
Step 5: Trade or deposit
Make sure you have crypto assets in your OKX trading account.
- If yes, please go to 3. Trade section for trading directly
- If no, please refer to next section 2. Deposit
2. Deposit
2.1 Deposit - Buy crypto
If you are a newbie to cryptocurrency without any crypto assets on the chain,
navigate to "Buy Crypto" panel in the top left corner
on OKX site and
choose "Buy with card", "P2P Trading" or "Third-party payment". You can buy
crypto via any of these 3 approaches.
Buy Crypto panel:

Buy with card:

P2P trading:

Third-party payment:

2.2 Deposit - On chain
If you already have crypto assets on chain, please follow the steps below
to deposit crypto assets into OKX.
- You can choose to deposit into the trading account . This is recommended way.
- You can choose to deposit into the funding account. Need to transfer into trading account as mentioned in section 2.3 (Transfer).
Step 1: Click
the "Deposit" menu from "Assets" panel in the top right corner on OKX web
page.

Step 2: Deposit
on the following page.

References:
2.3 Transfer
If there are no assets in your trading account, transfer from funding account
to trading account.
- Select the assets you have and would like to transfer out
- Transfer certain amount into trading account.
- After you have transferred successfully, start your trading journey.
Step 1: Click
the "Transfer" menu from "Assets" panel in the top right corner on OKX web
page.

Step 2: Perform
funds transfer on the following page.

Check the assets on Trading page

3. Trade
3.1 Trade Spot in TradingView
If you only focus on Spot trading, you just trade in TradingView side under
"OKX - Spot account".

3.2 Trade Derivatives in TradingView
3.2.1 Certain settings to be done on OKX site
If you intend to trade derivatives (Margin, Perpetual Swap and Futures),
change the following settings on OKX before returning to TradingView.
Step 1: Navigate
to "Trade" panel in the top left corner and choose either "Basic trading"
or "Contracts & margin trading".

Step 2: Now
click on the gear on the top right corner of the screen to get to the settings
menu.

Step 3: Click
on the "Account mode" button and select "Single currency margin".
Note: You cannot trade in TradingView if your account mode is in "Multi currency
margin" or "Portfolio margin" currently.

Step 4: Select
"Auto transfers" for the "Isolated margin trading settings" for both "Futures & Perpetual swap"
and "Margin".

Step 5: You have the option to configure the order quantity for Futures or Perpetual Swaps in the unit of [Contract or Crypto or USDT]




Note: Refresh
your browser on TradingView page if you changed the settings on OKX.
3.2.2 Switch to Derivatives account on TradingView site
In addition, please switch to "OKX - Derivatives account"
on TradingView side.
Note: Spot and Derivatives symbols have different order
panel UI in TradingView, thus we have 2 accounts (Spot account & Derivatives
account) in TradingView. However, the trading account assets are shared by
both Spot and Derivatives as you are in Unified account.

Appendix - Unified account references
4. FAQ
-
Q: After placing the bracket orders (Stop Loss and Take Profit), when I cancel one of them, why is the other also being cancelled automatically?
-
A: OKX is working on this feature. It will be available soon.
-
Q: Why can’t I modify or cancel a Stop Loss and Take Profit order when its status is inactive?
-
A: OKX is working on this feature. It will be available soon.