API guide
Create a secure OKX API key
Minimum configuration required to operate all three bots without ever granting TIYlab permission to withdraw your funds.
Permissions to enable
- Read
- Trade (includes internal transfers)
Forbidden permissions
- Withdraw
Never enable withdrawal permissions, even temporarily.
PassphraseRequired
IP restrictionRecommended: without it, the key expires after 30 days
WithdrawalsAlways disabled
Without IP whitelist, the key expires after 30 days.
Optional Macro lending: if you enable it, OKX may require an Earn / Simple Earn permission. Enable only that product permission if present, never Withdraw.
Exchange interfaces and labels may change. Review every permission before confirming the key. TIYlab is software, not financial advice.