Navigation

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

    Posts made by sunnysingh123987

    • RE: New Feature Announcement: Enhanced Real-Time Market Data with our Market Data API!

      hi @admin I am getting Internal Error and is unable to fetch any data using Market Data API. Here below are the details.
      Language: Python
      request:
      smartAPi.getMarketData('FULL',{'NSE':['3045']})
      response:
      {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

      Please Reply as soon as possible.

      posted in General Discussion
      S
      sunnysingh123987
    • How to generate session when login is made through url?

      from SmartApi import SmartConnect
      api_key = "#####"

      smartapi = SmartConnect(api_key)

      login-url = smartapi.login_url()

      # user is logged in using login url here and required tokens are collected using redirect url

      #session = smartapi.generate_session(clientid,pwd,totp) <-- cannot be used!
      profile = smartapi.get_profile() <-- Throws error: AG8001

      Note: This is a simiplified version of code to understand the proccess.

      posted in Python SDK
      S
      sunnysingh123987