Exchanges
OKX trades, conversions, and balances, locally signed
Connect OKX to rotki to import spot trades, conversions, deposits, withdrawals, and balances. rotki uses a read-only API key signed from your machine.
Supported features
- Spot trades imported as swap events from your OKX account.
- OKX conversions imported as trades.
- Deposits and withdrawals imported as asset movements.
- Balance reconciliation across your OKX account.
Limitations
- Margin and derivatives history is not imported.
Setup
- 1In OKX, open Account → API → Create V5 API Key.
- 2Set permissions to "Read" only. Leave trade and withdraw permissions disabled.
- 3Set an API passphrase - you'll need it in rotki.
- 4Whitelist your IP for additional safety.
- 5In rotki, open API Keys → Exchanges → Add OKX and paste the key, secret, and passphrase.
Frequently asked questions
Why does OKX need a passphrase?
OKX uses a user-set passphrase as part of its API signing. rotki needs the API key, secret, and passphrase to authenticate.
Where are my OKX API keys sent?
rotki is a local application: your OKX API key is stored on your computer and used to sign each request, which goes directly from your machine to OKX's API. No rotki-operated server ever sees the key or the request.
Can rotki trade or withdraw on OKX?
No. rotki only requests the Read scope and never sends trading or withdrawal calls.