Some times i`m getting max margin loan value equal to 0, after few more attempts it`s showing real value. So it looks like random issue.
Can you maybe bring some lite here ?
after further investigation i found that it happens each time after i cancel limit order and right away doing request to see max loan value. If i wait for about 30 seconds after limit order cancelation and taking max loan value again it works.
Do you think it`s a bug ? i think smth is recalculating there after order cancelation that`s why max loan value showing 0.