Margin max Levarage info

Hello,

Im working on my bot in order to create order in Spot margin market. I could not find any API call which show me the maximun leverage in spot/margin market.

How can i list all pairs showing all max leverage in cross and isolated markets ?

In the case of the isolated margin you can obtain this data if you use /sapi/v1/margin/isolated/account and there it is in the marginRatio field but in the case of the crossed margin I am the same as you, the solution that I can give you is that you consult /sapi/v1/margin/maxBorrowable and divide the amount you get with this query by the available (free) amount you got in the first query from either the base or the quote asset and round the number