When you see the error '51155 Trading of this pair or contract is restricted due to local compliance requirements' on your OKX trading bot, it means you have selected a quote currency that is not allowed for trading in your country/jurisdiction.
This does not mean that your API Keys are incorrect. Simply adjust the quote currency easily on the 'Currencies and amounts' tab in the Base config. Don't forget to convert your funds to the new quote currency so that the trading bot can continue trading.
Example of error message:
Error placing buy order, data: {"error":"{\"code\":\"51155\",\"message\":\"Trading of this pair or contract is restricted due to local compliance requirements \"}"}