Guide
Why does Nyria say OKX rejected this key?
Nyria shows OKX rejected this key when OKX refuses the API key or secret you pasted. Copy both again and paste them in. A demo key only works for paper, so use a live key for a live account.
Official documentation
Fix an OKX rejected key
- 1
Open the OKX API page
Sign in to OKX and open okx.com/account/my-api.
- 2
Check the key type
A demo key connects the demo account only.
- 3
Copy the key and secret
Copy each one fresh. Avoid extra spaces.
- 4
Paste them in Nyria
Add the API key, secret key and passphrase.
- 5
Select Connect OKX
Nyria shows OKX connected when it accepts the key.
What the message means
- OKX refused the key or the secret.
- Nyria passes on the answer.
- Nothing connected.
- No order was placed.
- A fresh copy is the usual fix.
Common causes
- A character was missed in the copy.
- A space came along with the paste.
- The key was deleted at OKX.
- A demo key went into a live connection.
- The secret belongs to a different key.
Demo keys
- OKX makes demo keys on a separate page.
- They work for paper only.
- A live account needs a live key.
- Nyria Paper needs no key at all.
Permissions to set
- Turn on Read and Trade.
- Leave Withdraw off.
- Nyria never needs to move funds out.
- Link Nyria's IP address, 116.202.227.157, to the key.
Still stuck
- Create a new key at OKX.
- Set a passphrase and write it down.
- OKX can't recover a lost passphrase.
- Paste the new key, secret and passphrase.
Questions
- What does OKX rejected this key mean?
- OKX refused the key or the secret you pasted.
- How do I fix it?
- Copy the key and secret again and paste them in.
- Why does my demo key fail?
- A demo key only works for paper.
- Should withdrawals be on?
- No. Leave Withdraw off.
- Does Nyria need the passphrase?
- Yes. Paste the one you set.
- Can I test first?
- Yes, on Nyria Paper.
Next
- Paste an alert into the alert tester to see how Nyria reads it.
- Step by step for one account: how to automate TradingView to Nyria Paper.
- Step by step for one account: how to automate Webhook to Nyria Paper.
- Alert tester.
Guides
How broker API trading works
What a broker API does and does not do, and the receiver that reads your alerts and places the orders for you.
Read guideCan Nyria withdraw money from my broker account?
No. Nyria reads balances and sends orders. Your cash stays at your broker.
Read guideWhy does Nyria say the OKX passphrase is wrong?
Paste the passphrase you set. If it's lost, create a new OKX key.
Read guideWhy does Nyria say OKX blocked its IP address?
Link Nyria's IP address, 116.202.227.157, to the OKX key, then try again.
Read guideTry a paper bot first
No card required. Paper is free. Live trading from $15 a month.