Skip to content

Guide

How do I make an OKX API key for Nyria?

Create a key at okx.com/account/my-api with Read and Trade on. Leave Withdraw off. Set a passphrase and link Nyria's IP address, 116.202.227.157, to the key. Then paste the key, secret and passphrase in Nyria.

Official documentation

Make the OKX key in six steps

  1. 1

    Open the API page

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

  2. 2

    Create the key

    Create a new API key and set a passphrase. OKX can't recover it.

  3. 3

    Set permissions

    Turn on Read and Trade. Leave Withdraw off.

  4. 4

    Add Nyria's IP

    Link 116.202.227.157 to the key.

  5. 5

    Copy the keys

    Copy the API key, the secret key and the passphrase.

  6. 6

    Connect in Nyria

    Paste all three and select Connect OKX.

Permissions to turn on

  • Read.
  • Trade.
  • Nyria needs both.

Permissions to leave off

  • Withdraw stays off.
  • Nyria doesn't need that permission.
  • A key without Withdraw can't send funds away.

The passphrase

  • You set it when you create the key.
  • OKX can't recover it.
  • Nyria asks for it next to the key and secret.
  • If it's lost, create a new key.
  • A wrong passphrase gives its own message.

Link Nyria's IP address

  • OKX expires a trading key with no IP address.
  • That happens after 14 days without use.
  • Link 116.202.227.157 to the key.

Test first

  • OKX has a demo account.
  • Go to Trade, Demo Trading, Personal Center, then Demo Trading API.
  • A demo key connects the demo account only.
  • Nyria Paper also runs the same alerts with no exchange.

What Nyria shows

  • Nyria fills in the account number from the key.
  • It shows OKX connected when the key is accepted.

Questions

Which permissions does the OKX key need?
Read and Trade. Leave Withdraw off.
Do I need a passphrase?
Yes. You set it when you create the key.
Can I recover the passphrase?
No. Create a new key if it's lost.
Which IP address do I link?
Nyria's: 116.202.227.157.
Does a demo key work for real money?
No. A demo key connects the demo account only.
Can I test first?
Yes, on OKX demo or Nyria Paper.

Next

Try a paper bot first

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