How to connect your OKX account to the XRP bot
The bot trades XRP only, through your own OKX account. An API key is the connection that gives the bot permission to work with that account. Follow these steps and keep your connection details private.
Setup steps
1. Create connection details in OKX
Sign in to OKX on desktop, open the profile menu and choose API. Create a new API key on the account (and sub-account, if you use one) that holds the funds the bot should trade.
2. Give the connection a name and password
Choose a recognisable name, such as XRP-bot. Set a passphrase: the connection password you will enter here along with the API key and secret. Keep all three private.
3. Enable Read, Trade and Withdraw
Read lets the bot fetch balances, fills, instrument rules and market data. Trade lets it place and cancel orders. Withdraw is required only so the accrued 30% performance fee can be transferred internally on OKX to the platform UID 528271138908980775 once it reaches $1.00 — the bot never withdraws to an external address. Pair it with an IP allowlist for extra safety.
4. Restrict the key with an IP allowlist
Bind the key to the IP addresses that will call it. If the allowlist does not include the caller's address, OKX rejects every signed request — one of the most common causes of a bot that never fills an order.
5. Add the three details to your account here
Paste the API key, secret and passphrase into Connect OKX. They are stored encrypted and are not displayed back to you. Review the 21x starting leverage and trading settings before starting; live trading can lose money.
Permissions the bot needs
Withdraw access is used exclusively for the OKX account-to-account transfer of the 30% performance fee to UID 528271138908980775. The bot never sends funds to a blockchain address or an outside wallet, and every accrual and payout is itemised in your terminal.
Troubleshooting common errors
"This API Key does not have trading permission"
The key was created with Read only. OKX permissions cannot be widened after creation for an existing key in all cases — create a new key with Read + Trade, then re-save it on the OKX Connection page.
Every request fails with an invalid signature or timestamp error
The passphrase or secret was mistyped, or the calling IP is outside the allowlist. Re-enter all three fields together and confirm the allowlist.
"Local compliance restrictions"
OKX does not permit that trading product in your region. Check product availability with OKX. Do not try to bypass restrictions or switch to another coin: this bot trades XRP only.
Next step
Once your Read, Trade and Withdraw permissions are ready, sign in and open Connect OKX. Review the fees and risk before you start live trading.