OKX · Account Opening
OKX Registration to API, Start to Finish: Sign-Up, KYC, Security, Step by Step (Tested)
The first step in quant isn't writing code — it's having a working account. Sounds simple, but plenty of people get stuck right here: does the sign-up page want an email or a phone number? Where does the invite code go? What do you prepare for verification? There's a pile of security toggles — which ones must be on? And then comes that familiar "I'll deal with it later."
In this piece, we — the MeowQuant desk — walk the whole path once, from opening the sign-up page to finally producing an API Key that can run a script. We actually did every step ourselves, including the few security details beginners tend to set wrong or skip entirely. By the end you should be able to: register an account, finish verification, get your account security fully set up, and open an API Key with the right permissions that connects to a quant script directly.
Step 1: Register by email or phone, enter the invite code
You can register OKX (also written OKEx) with either an email or a phone number — not much difference. We generally recommend a frequently used email you can keep receiving mail on for the long run — account recovery and security alerts later all rely on it. The flow looks roughly like this:
- Open the sign-up page, choose "Email" or "Phone," and enter your email address or phone number.
- Set a login password. Use one that's long and mixed enough, and don't reuse it from other sites.
- Find the "Invite code / Referral code" field and enter
OK30001. This step matters — it can only be entered at the moment of registration. - Get the verification code (in your email or by SMS) and enter it back to verify.
- Tick to agree to the terms and submit. The account is created.
About the invite code: whether or not you enter it, your account works either way, but only by entering it do you get the corresponding fee discount. And that string is bound to the account — miss it at registration and you basically can't add it later. So if you're about to register now, remember to put OK30001 in that field.
Step 2: What to prepare for KYC
Once the account is created, you'll notice a lot of features are greyed out — that's because you haven't verified yet. KYC (identity verification) is a compliance requirement, and whether to do it isn't really your choice: without it, your account's trading and withdrawals face plenty of limits, and quant is basically off the table. The good news is that once you've got everything ready, the process is usually quick.
Before you start, have these ready:
- Your own ID. Whatever document types OKX currently supports — usually an ID card or passport. It must be valid, with a clear photo, all four corners visible, and no glare.
- A device that can do the face check. Most of the time there's a liveness check (turning your head, blinking, and so on, as prompted in front of the camera), and a phone is the smoothest way to do it.
- A quiet, well-lit spot. The face check is picky about lighting and background; too dark or too cluttered and it'll fail repeatedly.
Verification usually comes in tiers — the higher the tier, the more limit and features you get. For a beginner, the tier that lets you trade and move funds normally is enough; level up later if you genuinely need more. After you submit, you'll usually hear back within a few minutes to a day or two — don't resubmit during that window.
One often-overlooked point: your verification info must match you, and one person can usually only verify one account. Don't use someone else's ID and don't register a duplicate identity — once risk control flags this kind of thing, you face feature limits at best and a frozen account at worst. Not worth it.
Step 3: Get your account security fully set up
This step is the easiest to skip and the last one you should cut. Most crypto theft stories aren't about the exchange getting hacked — they're about personal account security that wasn't set up. Before you start depositing and trading, get the items below in place.
① Two-factor authentication (2FA)
2FA is a second gate beyond your password. OKX supports several methods, and we most recommend a TOTP app like Google Authenticator: it generates offline rolling codes, doesn't depend on SMS, and so isn't exposed to "SIM-swap" style attacks. When you bind it, be sure to write down and safely store that recovery key — you'll rely on it to restore when you switch phones, and losing it is a real headache. SMS verification can be a backup, but don't rely on it alone.
② Anti-phishing code
This is a very practical little OKX feature that too many people don't know about. You set a string of your own, and after that, official emails and in-site messages OKX sends you carry it. So real and fake become obvious at a glance: carries the string you set = official; missing or wrong = phishing, delete it. It costs almost nothing yet blocks a whole class of impersonation-email scams. Find "Anti-phishing code" in the security settings and set it.
③ Fund password
The fund password (called the trading password in some places) is an extra gate when you move funds, separate from the login password. We suggest making it a strong password different from your login one. That way, even if your login password leaks, no one can directly move your assets.
Step 4: Deposit methods at a glance
Security done — now the money. There are two common ways to get funds into an exchange, each with its own use case:
- C2C / fiat buy. Use fiat (your local currency) through the platform's matching to buy USDT and other stablecoins directly. Beginners most often go this route — low barrier, intuitive. When you trade, check the counterparty's reputation and follow the platform's escrow flow; never transfer privately off-platform.
- On-chain deposit (transferring in crypto). If you already have coins elsewhere, withdraw them from there to your OKX deposit address. Here's a detail you absolutely cannot get wrong: the deposit address and the network (chain) must match exactly — USDT, for instance, has different networks like TRC20 and ERC20, and the network you choose when sending out must exactly match the network of the address OKX gives you. Pick the wrong chain and the coins may be unrecoverable. For your first transfer, we strongly suggest sending a small test amount first and only sending the larger amount after it arrives confirmed.
For quant, most people first prepare some USDT as the pricing and order capital. How much depends on your strategy and your tolerance — but remember the line the risk section below keeps hammering: use only spare money you can afford to lose entirely.
Step 5: Open API permissions
Account, verification, security, deposit — all ready. The last step is opening the API, the key that connects a quant script. Here we cover only the essentials and the security bottom line; the full application details, and how to run your first order in Python once you have the Key, we walk through line by line in the OKX API quant intro, so we won't repeat it here.
There are just two key things to opening a Key — keep them in mind and you'll save yourself a lot of trouble:
- You'll get three credentials: apiKey, Secret, and a Passphrase you set yourself (OKX-specific, called
passwordin ccxt, and the one beginners most often miss). The Secret is shown only once — save it on the spot. - Tick only "Read" and "Trade" permissions — never tick "Withdraw." Running strategies doesn't need withdrawal, and ticking it only makes losses unrecoverable if your credentials ever leak.
To find this entry in the OKX dashboard: after logging in, hover over your avatar in the top right, find "API" or "API Management" in the dropdown, go in, and click "Create API Key." Give it a label, set the Passphrase, tick the right permissions, optionally set an IP whitelist (if you run it on a fixed-IP machine), confirm and pass two-factor — and the Key is created. The details of each step, and the easy traps, are all in that cornerstone piece.
How the OK30001 fee discount takes effect, and where to see it
A lot of people misunderstand invite codes, thinking it's "a cash rebate paid into your account on every trade." It's actually more direct: an account registered with an invite code gets a discount at the fee level — the rate you're actually charged on fills is one notch lower than the standard rate. It shows up in your trading cost, not as a separate payment to you.
How do you confirm it's active? After registering and logging in, go to the account's "Fees" or "My Level" pages, where you can see your current fee tier. For an account registered with an invite code, the applicable discount is reflected in the rates you see. The exact fee numbers and the exact discount percentage are something OKX adjusts with market and policy, so always go by what OKX's site currently publishes — we don't write any numbers in stone here, to avoid misleading you with stale figures.
To work out "how much you can save," you can use the fee + rebate discount calculator on our tools page: enter your rough trading volume and it'll estimate a figure based on the rate you fill in. For the structure of fees, the maker/taker difference, and exactly how the discount math works, we go into more detail in how OKX fees are calculated.
Tested: from registration to an opened Key
To confirm the whole path really flows, we ran through it with a brand-new email from scratch.
OK30001, we confirmed it was there, set the login password, and the verification code arrived in about 1 minute. After the account was created we went straight to security: bound Google Authenticator (copying the recovery key into an offline notepad), set an anti-phishing code, and added a fund password — the three steps together took under 10 minutes. Then we submitted verification; the face check passed in one go (it failed the first time from backlighting, but redoing it by a window fixed it), and the status turned approved about half an hour later. Finally we went to API Management and created a Key labelled for practice, ticking only Read + Trade and not Withdraw, with the Secret saved on the spot. From registration to holding three credentials, the whole path was done the same day. We didn't record specific rate or discount numbers here — those go by what OKX's site currently publishes.
See the risks clearly before you start
The account's open, but before you actually put money in and run strategies, a few things have to be said up front.
Crypto is a high-risk asset class with severe price swings; the principal you put in can shrink sharply, and in extreme cases even go to zero. Quant, bots, and copy trading are tools that help you execute decisions more efficiently — they do not guarantee profit. If the strategy itself loses money, automation just makes you lose faster. If you touch leveraged contracts, the risk is amplified further, and in extreme conditions can lead to a total loss of principal.
FAQ
I didn't enter an invite code at sign-up — can I add it later?
An invite code is usually only entered at the moment of registration, and in most cases it can't be bound after the account is created. If you've already registered but missed it, you can — within what your account security allows — open a new account, enter OK30001 at sign-up, and use it specifically for quant. Don't register a duplicate or fake-identity account just to add an invite code; that violates exchange rules.
Do I have to complete identity verification (KYC)?
Without verification, your account faces a lot of feature and limit restrictions, and many trading and withdrawal actions are unavailable. If you want to do quant seriously and place orders via the API, you basically can't avoid it. Prepare your own ID, complete the face check as prompted, and the process usually takes from a few minutes to a day or two.
What is an anti-phishing code, and is it worth setting?
An anti-phishing code is a string you set yourself, and after that, official emails and in-site messages OKX sends you will carry it. An OKX email without that string, or with the wrong one, is basically phishing. It costs almost nothing yet blocks a whole class of impersonation scams, so we strongly suggest setting it right after registration.
Is the fund password the same as the login password?
No. The login password gets you into the account; the fund password (called the trading password in some places) is an extra gate when you move funds. We suggest making them two different strong passwords. Note: the fund password, the login password, and the API Passphrase are three separate things — don't mix them up.
Where can I see the OK30001 fee discount?
After registering and logging in, you can see your current fee tier and the applicable discount on the account's Fees or My Level pages. For an account registered with an invite code, the discount shows up in the rates you actually pay on fills, rather than as a separate payout to you. The specific percentage is whatever OKX currently publishes.
Do I have to finish KYC and bind security verification before opening an API?
Yes. OKX requires the account to first complete identity verification and bind two-factor verification (phone/email/Google Authenticator) before you can create an API Key. This is both the platform's rule and protection for you — an account without two-factor is harder to recover if the API runs into trouble. We suggest getting all your security settings in place, then going to open the API.
Past the account hurdle, what's next is actually getting hands-on. If you want to jump straight to scripts, read the API quant intro; if you're still mulling over what quant even is and whether it suits you, read what quant trading is; to get costs straight, use the tools while you're at it. Whichever path you take, remember the order: build the account and security on solid ground first, then talk strategy and returns.
Ready to register and get the account open?
Registration, verification, security, API — walk this path once end to end and picking strategies afterward gets easy. A new account opened with the invite code gets a fee discount, and that's the step closest to "really starting."
Crypto prices are highly volatile, and contracts and leverage can wipe out your principal. Quant and automated trading don't guarantee profit — use only money you can afford to lose.