Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    How to get funds available for intraday trading (with margin and without margin) automatically

    Python SDK
    0
    1
    49
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vivekruhela last edited by

      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) and obj.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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post