Skip to main content

Why do I see error code '51008 order failed' on OKX?

This error means you have insufficient quote currency to open a new position. Top up your balance or wait for an open position to be sold to resolve it.

Written by Pete Darby
Updated this week

This error means your OKX trading bot doesn't have enough quote currency to open a new position.

Cause

Your available quote currency balance is lower than the amount needed to place the order.

How to fix it

There are two ways to resolve this:

  • Top up your balance — deposit more of the quote currency into your OKX account so there are enough funds to cover the order.

  • Wait for an open position to be sold — once Cryptohopper sells an existing position, the quote currency is returned to your balance and new orders can be placed again.

You can check your available quote currency balance under Current assets on the Dashboard or under the $ symbol on the Advanced Dashboard.

Example of the error

Example of the error in the trading bot output:

05/22/2024 6:25:02 PM ERROR Error placing buy order, data: {"error":"{\"code\":\"51008\",\"message\":\"Order failed. Insufficient EUR balance in account. \"}"}

05/22/2024 6:25:02 PM ERROR Error placing buy order, data: {"error":"{\"code\":\"51008\",\"message\":\"Order failed. Insufficient EUR balance in account. \"}"}

Did this answer your question?