Closed narenkram closed 3 months ago
@narenkram api.get_limits() can provide you payin which can be used.
limit = api.get_limits()
marginused = (float((limit['marginused'])))
margin_available = round(((float((limit['cash']))) - marginused + float((limit['payin']))),2)
This issues has been fixed fix negative total available fund (issues 11)
@suresh-n appreciate it, but I found a better way. When fundlimit.cash is zero, app now just shows the fundlimit.payin now.
If you have just added funds today in your Shoonya broker account, it will not immediately reflect on the app until after a day. This is an endpoint issue on Shoonya side, because they are not updating available cash margin immediately. So i have to find a way to handle this on the frontend using payin