OKX automation
Beta
Nyria places your alerts as spot crypto trades in your own OKX account. Alerts come from TradingView, Discord, Telegram or AI agents (MCP). Nyria trades USDT spot pairs on OKX. You connect with an API key, in beta.
OKX isn't available in every country. Check OKX's terms for yours.
What connects
OKX connects with an API key you create in your own OKX account. Turn on Read and Trade. Leave Withdraw off.
In Nyria you enter the API key, the secret key and the passphrase. Nyria stores all three encrypted at rest and never shows them again.
OKX expires a trading key with no IP address after 14 days without use. Add Nyria's IP address to the key. Nyria connects from a fixed IP address. Email contact@nyria.io for the address.
Set your OKX account to net position mode.
Nyria reads the account and places and cancels orders. Without withdrawal permission, the key can't move funds out.
What OKX supports
| Asset class | Supported | Notes |
|---|---|---|
| Crypto spot | USDT spot pairs OKX lists | |
| Stocks | Not offered on this connection |
Trading features
Orders
Market orders, sized by each bot's budget per entry. Nothing waits at the broker between alerts. The exit comes from your alert.
How to connect
- 1Create a Nyria account. Sign up free and create a strategy for your TradingView, Discord or Telegram alerts. Run it on Nyria Paper first, then on the live account.
- 2Open the API page. Sign in to OKX and open okx.com/account/my-api. For paper, go to Trade, Demo Trading, Personal Center, then Demo Trading API.
- 3Create the key. Create a new API key. Set a passphrase. OKX can't recover it.
- 4Set permissions. Turn on Read and Trade. Leave Withdraw off.
- 5Add Nyria's IP. Link Nyria's IP address to the key. Email contact@nyria.io for the address.
- 6Copy the keys. Copy the API key, the secret key and the passphrase.
- 7Add them in Nyria. Select Integrations, then the OKX card. Paste the API key, secret key and passphrase. Select Connect OKX.
- 8Deploy a bot. Deploy a bot on the strategy, pick the OKX account it trades and set its budget per entry. A bot on a live account needs a Nyria Pro plan or a Premium strategy you have bought.
Questions
- Can I automate OKX trades from TradingView alerts?
- Yes, in beta. Point a TradingView alert's webhook at your Nyria strategy. Each alert becomes a market order in your OKX account. Nyria trades USDT spot pairs on OKX.
- Which permissions does the OKX API key need?
- Read and Trade. Leave Withdraw off. Without withdrawal permission, the key can't move funds out of OKX.
- Why does OKX need Nyria's IP address?
- OKX expires a trading key with no IP address after 14 days without use. Link Nyria's address to the key so it keeps working. Nyria connects from one fixed IP address. Email contact@nyria.io for it. If OKX blocks Nyria's IP later, link the address again.
- What if OKX says the passphrase is wrong?
- Paste the passphrase you set when you created the key. OKX can't recover a lost passphrase, so create a new key if it's gone.
- Can I test before trading real money at OKX?
- An OKX Demo Trading key connects the demo account, and a demo key only works for paper. Nyria Paper is free, with no card, and runs the same strategy against simulated fills.
- Is OKX available in my country?
- OKX isn't available in every country. Check OKX's terms for yours.
- Does Nyria hold my OKX login?
- No. An OKX API key doesn't need your password. Nyria stores the key, secret key and passphrase encrypted at rest.
- Why is OKX in beta?
- The OKX connection is new, so it carries a Beta label. Start with a small budget per entry and check the Logs tab after the first alerts.
Test for free on paper first
Free on paper, no card required. Then run the same strategy on OKX.