Skip to content

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. 1

    Open the OKX API page

    Sign in to OKX and open okx.com/account/my-api.

  2. 2

    Check the key type

    A demo key connects the demo account only.

  3. 3

    Copy the key and secret

    Copy each one fresh. Avoid extra spaces.

  4. 4

    Paste them in Nyria

    Add the API key, secret key and passphrase.

  5. 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

Try a paper bot first

No card required. Paper is free. Live trading from $15 a month.