Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. B199593
    3. Posts
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 3
    • Best 0
    • Groups 0

    Posts made by B199593

    • Trading

      from smartapi import SmartConnect

      Replace with your actual details:

      API_KEY = "nBvKVLPi" # Your actual API key
      CLIENT_ID = "Your AngelOne client ID (e.g. R123456)"
      PASSWORD = "Your login password"
      TOTP = "Your TOTP code if 2FA enabled (optional)"

      obj = SmartConnect(api_key=API_KEY)

      Login session

      data = obj.generateSession(CLIENT_ID, PASSWORD, TOTP)
      refresh_token = data['data']['refreshToken']
      access_token = obj.getAccessToken()

      Check profile (optional)

      profile = obj.getProfile(refresh_token)
      print("Profile:", profile)

      posted in Python SDK
      B
      B199593
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin Please migrate Client Id: K53761

      posted in General Discussion
      B
      B199593
    • Get Token Error

      @admin Please migrate Client Id: K53761

      posted in General Discussion
      B
      B199593