Skip to main content
All CollectionsTrading Errors & Troubleshooting
Why do I see error '51155 Trading of this pair or contract is restricted' on OKX?
Why do I see error '51155 Trading of this pair or contract is restricted' on OKX?

Error '51155' on OKX means trading restrictions due to compliance. Adjust your quote currency in settings.

Pete Darby avatar
Written by Pete Darby
Updated over 6 months ago

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 \"}"}

Did this answer your question?