How to get funds available for intraday trading (with margin and without margin) automatically
-
Hello,
I am trying to set my python script for automated trading. But during stock buying/selling, I don't know how to get the available fund information (with intraday margin or without intraday margin) in an automated fashion so that I can calculated I many stock I can buy to sell automatically. I the following code, I can get the userprofile basic information and holdings using
obj.getProfile(refreshToken)
andobj.holding()
. But I don't know how to get the funds available in my account for intraday (with intraday margin).obj=SmartConnect(api_key="****")
data = obj.generateSession("****","****")
refreshToken= data['data']['refreshToken']
#fetch the feedtoken
feedToken=obj.getfeedToken()
#fetch User Profile
userProfile= obj.getProfile(refreshToken)
Let me know how can I have this information using python SDK module (
smartapi-python
). Thanks