It looks like you're new here. If you want to get involved, click one of these buttons!
margins = kite.margins() equity_opening_balance = margins['equity']['available']['opening_balance']commodity_opening_balance = margins['commodity']['available']['opening_balance']
I tried kite.user() and that didnt work.
refer below code-