Hi Everyone,
I am developing a Crypto Bot for trading. I am using python binance for the same and am looking for a way to capture the error message “Due to high borrowing demand, there are currently insufficient loanable assets for . Please adjust your borrowing amount or try again tomorrow”. I tried the following function but could’nt get any response related to above status;
get_max_margin_loan(asset=‘USDT’,isolatedSymbol=‘AKROUSDT’)
Basically, i need to transfer fund from Spot to ISOLATED margin.
Hi. i am used GitHub - Binance-docs/Binance_Futures_python. its cool library
maybe you’ll find something here
Hi Boney_Kalarickan
You can get this information in this endpoint:
https://binance-docs.github.io/apidocs/spot/en/#query-max-borrow-user_data
If there are no borrowable assets, you will receive this ERROR message: -3045: The system does not have enough asset now.
If there are borrowable assets, you can receive two different results:
- If it is a cross margin account or an isolated and ENABLED margin account, you will receive the borrow limit and quantity data (see endpoint).
- If it is a DISABLED isolated margin account, you will receive this ERROR message: -3052: This isolated margin pair is disabled. Please activate it.
Best regards.