Connecting OKX to a Tracker Without Losing Half the Balance
6 min read · Verified September 2026
OKX keeps assets in two places, a Funding account and a Trading account, with Earn positions outside both. Create the key under Profile, API and connections; grant Read only; leave Trade and Withdraw switched off; set a passphrase you record. A read-only key cannot move funds.
You connect OKX, the balance loads, and it is short. Not by a rounding error. Short by exactly the amount you deposited last month and never moved anywhere.
That is almost never a broken connection. It is OKX's account model doing what it was designed to do, and once you know the shape of it the fix takes a minute.
Why does OKX show two balances for the same coin?
Because OKX runs two account containers side by side, and your USDT can be in either.
The Funding account is where deposits land, where P2P purchases settle, and where money waits before you do anything with it. The Trading account is where spot, margin and derivatives balances live, and it is what fills after a trade executes. Same coin, same exchange, two different pockets, and OKX will happily let you sit with a balance split across both for months without ever mentioning it.
Any tool reading your account has to ask about both. If a tracker only queries the trading balance, everything you deposited and left alone is invisible, and the total it reports is honestly, precisely wrong. This is the single most common OKX support ticket in every portfolio app, and it is the first thing to check before you assume the key is faulty. Why your portfolio balance is wrong covers the same failure mode across other venues.
There is a third place assets go. Positions in OKX Earn, covering flexible savings, on-chain staking, dual investment and structured products, sit outside both containers, and the balance endpoints do not report them as spot holdings. Anything locked in Earn generally needs to be entered by hand if you want it in the total. Tracking staked and locked assets explains how to record those without corrupting your cost basis.
One more wrinkle worth knowing before you start: OKX's account can run in different trading modes, from simple spot through to portfolio margin. Switching modes changes how positions are represented internally, which occasionally changes what a tracker reads back. If your figures shift the same week you changed account mode, that is the cause.
Read permission only, passphrase pasted, and the OKX balance appears next to everything else you hold.
How do I create a read-only API key on OKX?
The control lives in different places on web and mobile, which is worth stating plainly because the two paths look nothing alike.
On the website, open your Profile menu and choose API and connections, then Create API key. In the OKX app, tap the menu icon, scroll to API, and tap Create API key. Either way you land on the same form.
- Name the key after the app you are connecting. In six months you will want to know which one to revoke.
- Pick the account. The dropdown offers your master account and any sub-accounts. A key issued to the master does not read the sub-accounts, so choose deliberately.
- Set the purpose. OKX asks what the key is for, separating personal use from binding a third-party application. Read-only tracking is a third-party binding.
- Enter the IP allowlist. OKX accepts up to twenty addresses, comma or space separated. Enter the addresses your tracker publishes, not your own — the requests come from the tracker's servers, never your handset.
- Tick Read. Nothing else. OKX offers Read, Trade and Withdraw, and depending on what your account has enabled it may also offer Transfer, Loan and Earn. Read is the only one a portfolio tracker uses. Trade and Withdraw stay off. Transfer stays off too, even though it only moves money between your own accounts.
- Set a passphrase, then copy the key, the secret and the passphrase before you close the page.
The permission list is enforced by OKX, not by the app you paste the key into. A request to sell something, signed with a key that carries no Trade permission, is rejected at OKX's servers. Trading and withdrawal permissions stay off, and with them off the key is read-only by construction: it can answer questions about your account and it cannot move funds, no matter who is holding it. That is why read-only access is safe in a way that a promise from an app never would be, and read-only API keys sets out the mechanics in full.
Why does OKX ask for a passphrase, and what happens if I lose it?
Most exchanges hand you two strings. OKX hands you three.
The passphrase is one you invent at creation, and it is folded into the signature on every authenticated request. A tracker holding your key and secret but not your passphrase cannot authenticate at all. It is not your account password, not your fund password, and not your 2FA code, though people conflate all four constantly.
OKX will not show it to you again. You can go back later and edit a key's name, its permissions and its IP list, but the passphrase is not editable and not recoverable. If you cannot remember it, the only route forward is to delete the key and generate a replacement. Treat it exactly as you treat the secret: stored somewhere encrypted, never in a chat message, never in a screenshot.
What does OKX do about key expiry and IP restriction?
OKX ties the two together in a way that quietly rewards the cautious setup.
A key that carries transaction or withdrawal permission and has no IP binding gets deactivated after fourteen days without use. A read-only key bound to an IP address does not expire on that clock. The published rules are set out in OKX's own API FAQ, and the practical reading is simple: the narrowest, most restricted key you can issue is also the one least likely to go stale on you six months from now.
Allowlisting matters for a second reason. A read-only key that leaks is a privacy problem rather than a custody problem, because it still cannot place an order or move a coin. Bind it to the tracker's addresses and even that privacy exposure closes, because OKX refuses requests arriving from anywhere else. Is it safe to connect an exchange works through what the residual exposure actually is.
What will not come across from OKX?
Four things, and none of them indicate a fault.
Sub-account holdings need their own keys, as above. Earn positions need manual entry. Anything in the OKX Web3 Wallet is outside the exchange entirely. It is self-custody, secured by a recovery phrase you hold, and no exchange API key can see it. Track those balances by adding the public addresses as watched wallets, which is the same approach covered in tracking one identity across several chains.
The fourth is trade history depth. OKX limits how far back the API will return fills, so a tracker connecting today reconstructs recent activity rather than your entire history. If you need years of cost basis, export it from OKX directly and add the older positions manually.
Once the key is in and both account containers are reporting, the OKX number stops being something you verify and starts being something you glance at. The right time to check it again is the next time you move funds between Funding and Trading, because that is the one action on OKX that can make a correct total look broken.
Common questions
Check which account the missing coins are sitting in. OKX credits deposits to the Funding account and settles spot trades into the Trading account, and a tracker that reads only one of them reports a total that is genuinely too low. Move nothing; just confirm the connection covers both.
It is a third secret you invent when you create the key, and it forms part of every signed request. It is not your login password and OKX cannot show it to you again. Lose it and the key is dead, so delete that key and make a new one.
Read-only keys bound to an IP address do not expire. Keys carrying trade or withdrawal permission with no IP binding are cut off after 14 days of inactivity. Choosing read-only and allowlisting the tracker's address is therefore also the choice that keeps working.
No. A sub-account issues its own key with its own passphrase, and the master account's key does not reach into it. If you use sub-accounts to separate strategies, each one needs a separate connection.
No, and this catches people constantly. The OKX Web3 Wallet is self-custody with its own recovery phrase; it is not part of the exchange account the API key authenticates against. Add its public addresses as watched wallets instead.
One portfolio across 100+ exchanges and 15+ chains, so the OKX exchange account and the OKX Web3 wallet finally add up to one number.
Keep reading
Read-Only API Keys: What a Portfolio Tracker Can and Cannot Do
What read, trade and withdraw permissions actually grant, why a read-only key cannot move funds, and the exact settings to switch off before you connect.
Is It Safe to Connect Your Exchange to a Portfolio Tracker?
A read-only key cannot move funds. A tracker breach still exposes your holdings. The real risk, why withdrawal permission is never granted, how to revoke.
Why Your Crypto Portfolio Balance Is Wrong
Your tracker says one number, your exchange says another. The eight things that cause a wrong crypto portfolio balance, and how to fix each one.
Where Your Staked and Pooled Assets Went
Staked ETH, LP positions and lending receipts don't show up as the asset you deposited. Why DeFi totals read low and how to account for what's missing.
One Address, A Dozen Chains, One Number You Don't Trust
Your EVM address exists on every EVM chain whether you used it or not. How to decide which chains to watch, and why a tracker double-counts or misses one.
What a Portfolio Tracker Can Actually See
Balances and trade history, yes. Private keys, seed phrases and moving funds, no. What the app, the company and the public can each actually see.
How to Revoke an Exchange API Key Properly
Deleting a connection in an app does not revoke the key. Where the real control lives on Binance, Kraken and Coinbase, and how to audit old keys.
How to Track a Crypto Portfolio Across Multiple Wallets and Exchanges
Coins in four places and no single number. The three ways to connect an account to a tracker, what each one can see, and the order to set them up in.