Error 51155 means OKX is blocking your bot's orders because the quote currency you selected is not allowed for trading in your country or jurisdiction. This is a local compliance restriction enforced by OKX — it is not an API key issue.
How to fix it
Go to Configuration and open Base config.
Click the Coins and amounts tab.
Change the first option to a quote currency that is permitted in your country.
Convert your funds to the new quote currency so your bot can continue trading.
Verify the issue is resolved
After saving your changes, check your bot's log. If the fix worked, error 51155 will no longer appear and your bot will resume placing orders.
Example of this error in your bot's log
Error placing buy order, data: {"error":"{\"code\":\"51155\",\"message\":\"Trading of this pair or contract is restricted due to local compliance requirements \"}"}
