Navigation

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

    sauravthakkar

    @sauravthakkar

    1
    Reputation
    21
    Posts
    8
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    sauravthakkar Follow

    Best posts made by sauravthakkar

    • NO HISTORICAL DATA FOR TOKEN 26000AND 26009

      Historical API doesn't provide any data for 26000 and 26009 tokens pl explain why. Pl help out get that.

      posted in General Discussion
      S
      sauravthakkar

    Latest posts made by sauravthakkar

    • RE: NO HISTORICAL DATA FOR TOKEN 26000AND 26009

      @admin pl help to get hist data for 26000 and 26009.

      posted in General Discussion
      S
      sauravthakkar
    • NO HISTORICAL DATA FOR TOKEN 26000AND 26009

      Historical API doesn't provide any data for 26000 and 26009 tokens pl explain why. Pl help out get that.

      posted in General Discussion
      S
      sauravthakkar
    • RE: Unable to genrate session or refresh token

      @admin

      issue resolved. thanks for listening.

      i din't know how but my api key got inactive. after reactivating same. code is working fine.

      thanks.

      posted in Python SDK
      S
      sauravthakkar
    • RE: Unable to genrate session or refresh token

      @admin said in Unable to genrate session or refresh token:

      @lavly are you able to login into web based platform using same credentials
      @admin yes i can login into web and app ba based platform

      posted in Python SDK
      S
      sauravthakkar
    • RE: Unable to genrate session or refresh token

      @admin my client id is - VDKU062

      posted in Python SDK
      S
      sauravthakkar
    • RE: Unable to genrate session or refresh token

      @lavly said in Unable to genrate session or refresh token:

      data = obj.generateSession(username, password)
      refreshToken= data['data']['refreshToken']

      This github code is giving error after 11 dec 21.
      Pl Help.

      Error annexed.![alt text](image urlScreenshot_20211226-194224.png )

      @admin

      posted in Python SDK
      S
      sauravthakkar
    • Unable to genrate session or refresh token

      data = obj.generateSession(username, password)
      refreshToken= data['data']['refreshToken']

      This github code is giving error after 11 dec 21.
      Pl Help.

      Error annexed.![alt text](image urlScreenshot_20211226-194224.png )

      posted in Python SDK
      S
      sauravthakkar
    • RE: Working WebSocket Sample code to retrieve LTP - Python

      @James-Bond yes

      posted in Python SDK
      S
      sauravthakkar
    • RE: Working WebSocket Sample code to retrieve LTP - Python

      @James-Bond this code is giving following errorrs


      ReactorNotRestartable Traceback (most recent call last)
      <ipython-input-71-f3a22d8e176e> in <module>()
      21 ss.on_close = on_close
      22
      ---> 23 ss.connect( )

      3 frames
      /usr/local/lib/python3.7/dist-packages/twisted/internet/base.py in startRunning(self)
      841 raise error.ReactorAlreadyRunning()
      842 if self._startedBefore:
      --> 843 raise error.ReactorNotRestartable()
      844 self._started = True
      845 self._stopped = False

      ReactorNotRestartable:

      posted in Python SDK
      S
      sauravthakkar
    • wrong indentation error

      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": "SBIN-EQ",
      "symboltoken": "3045",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": "390",
      "squareoff": "0",
      "stoploss": "0",
      "quantity": "10"
      }
      orderId=obj.place0rder(orderparams)
      print("The order id is: {}".format(orderId))
      except Exception as e:
      print("Order placement failed: {}".format(e.message))

      Iam using above code. It gives following errorr

      File "<ipython-input-44-d8c4717597ee>", line 15
      orderId=obj.place0rder(orderparams)
      ^
      IndentationError: unexpected indent

      Pl help

      posted in Python SDK
      S
      sauravthakkar