<APIError> code=51078, msg=NET_ASSET_MUST_LTE_RATIO

Encountered this error when trying to place borrow and sell margin order. Couldn’t found related information online. Can someone advice what this error means and what can be done to overcome it?

Thanks!

Hi @maxkaneco,

The error NET_ASSET_MUST_LTE_RATIO (51078) suggests that the net asset value in the margin account must be less than or equal to a certain ratio before placing a borrow and sell margin order.

Possible causes for this could be insufficient margin ratio, over-leveraged positions or risk management restrictions enforced by Binance.

In order to fix this you can perform the steps below:

  • Check your margin ratio: You can query your margin account details using the API endpoint:

    GET /sapi/v1/margin/account
    

    Look at the marginLevel field. If it’s too high, you may not be able to borrow more funds.

  • Repay some borrowed funds: If your margin level is too high, repaying some of your borrowed assets may lower it.

  • Deposit more collateral: Adding more funds to your margin account can improve the margin ratio and allow further borrowing.

  • Ensure correct asset selection: Some assets may have specific restrictions on borrowing and margin trading.

If you need more details, try calling the endpoint below to check how much you can borrow:

GET /sapi/v1/margin/maxBorrowable

Let us know if you need further clarification!