Funds refunding after order canceling

Hi,
I have some question,
What is the delay between order canceling and funds refunding?
I mean, I’m using python api, after order canceling I’m checking if status of cancelled order is CANCELED. Then I want to recreate order and yeah, have to be sure that founds are back on the account. But dont want to check funds difference before and after canceling.

So, If order status has changed to CANCELED

  1. Is there also some delay between this moment and funds are back on the account?
  2. That also means that funds are already back on the account?

Which one is correct?

The CANCELED is for the order condition, not a guarantee for the return of funds in the balance as the system is asynchronous.
You should subscribe to websocket https://binance-docs.github.io/apidocs/spot/en/#payload-account-update to know the latest balance update

1 Like

That is what I was looking for. Thank you!