Read-only API keys: how to create one on each exchange, and is it safe?
Short answer: a read-only API key can read balances, positions and fills, but cannot place orders or withdraw. Tick Read only when you create it. Trade Replayer checks the permissions of OKX, Bybit and Binance keys and rejects any with trading or withdrawal rights; when importing, the key is only used in your browser by default, and it is stored on our server, encrypted, only if you bind a live account. You can revoke it any time.
What can a read-only key do, and not do?
It can read balances, positions, fills and the account ledger. It cannot place or cancel orders, transfer or withdraw. A leaked read-only key cannot move your money, but it does expose your trading data, so keep it private.
How do I create one on OKX?
OKX website → profile → API → Create API key, tick Read only, no IP binding needed. Note the API key, secret key and the passphrase you set.
How do I create one on Bybit?
Bybit website → profile → API → Create New Key → System-generated, choose Read-Only, no IP restriction needed. Unified Trading Accounts only for now.
How do I create one on Binance?
Binance website → Account → API Management → Create API → System generated, keep only Enable Reading, no IP restriction needed.
How do I create one on WEEX?
Create a key in WEEX API management with read permission only, no trading or withdrawal, and note the key, secret and passphrase. WEEX has no endpoint to check a key's permissions, so you confirm it is read-only when connecting.
How does Trade Replayer check a key is read-only?
When you bind a live account, our server asks the exchange for the key's permissions: OKX, Bybit and Binance keys with any trading or withdrawal right are rejected. Binance does not let web pages check permissions, so a browser import of Binance records cannot verify it for you and says so; for WEEX you tick a confirmation.
Is the key saved? Where?
It depends on what you do:
- Importing trades (Connect read-only API): OKX, Bybit and Binance keys are used by your browser to call the exchange directly and never pass through our server; WEEX does not accept requests from web pages, so its key is relayed through our server and discarded. A key is kept in this browser only if you tick "Remember".
- Binding a live account (My assets): the key is stored encrypted on our server; each user can only read their own bindings, and it is only used to read.
How do I revoke access?
Unbind under Accounts in Trade Replayer and delete any remembered key in the replayer. The most complete step is deleting the API key on the exchange itself; it stops working immediately.