To unlock these “locked” assets, you need to cancel the active orders that are reserving these funds. You can do this using the DELETE /api/v3/order endpoint, which allows you to send a request to cancel an order on Binance. Here’s a brief overview of how to perform this:
Identify the Order: You need the orderId, symbol, and other optional parameters like origClientOrderId (if you set it during order creation) to specify which order to cancel.
Send a Cancel Request: Use the DELETE /api/v3/order endpoint with the necessary parameters to request cancellation.
Check the Response: The response from the API will confirm whether the order was successfully canceled. After cancellation, the funds that were “locked” in this order will be released back into your “free” balance.