Skip to content
OKX logo

OKX automation

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 OKX spot pairs quoted in USDT, USDC or EUR. You connect with an API key.

Crypto spot

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.

Nyria reads the account and places and cancels orders. Without withdrawal permission, the key can't move funds out.

What OKX supports

Asset classSupportedNotes
Crypto spotSupportedSpot pairs quoted in USDT, USDC or EUR
StocksNot supportedNot offered on this connection

Trading features

Live tradingSupported
Paper trading with an OKX Demo Trading keySupported

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

  1. 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.
  2. 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.
  3. 3Create the key. Create a new API key. Set a passphrase. OKX can't recover it.
  4. 4Set permissions. Turn on Read and Trade. Leave Withdraw off.
  5. 5Add Nyria's IP. Link Nyria's IP address to the key. Email contact@nyria.io for the address.
  6. 6Copy the keys. Copy the API key, the secret key and the passphrase.
  7. 7Add them in Nyria. Select Integrations, then the OKX card. Paste the API key, secret key and passphrase. Select Connect OKX.
  8. 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.

TradingView alerts to OKX

Point a TradingView webhook at Nyria, and each alert becomes an OKX spot order.

Automate TradingView alerts to OKX

Discord alerts to OKX

Nyria reads one channel in a Discord server you run. Each alert there becomes an OKX spot order.

How to automate Discord alerts to OKX

Telegram alerts to OKX

Nyria joins a Telegram group or channel you run and only reads. Each alert there becomes an OKX spot order.

How to automate Telegram alerts to OKX

Questions

Can I automate OKX trades from TradingView alerts?
Yes. Point a TradingView alert's webhook at your Nyria strategy. Each alert becomes a market order in your OKX account. Nyria trades OKX spot pairs quoted in USDT, USDC or EUR.
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.

Test for free on paper first

Free on paper, no card required. Then run the same strategy on OKX.