Navigation

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

    Posts made by Heena Shah

    • OrderBook Response

      What is pending quantity in orderbook response

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @rajanprabu

      Not accepting more than 500 tokens

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @rajanprabu

      I'm facing the websocket disconnection issue after 10 minutes for Python SDK

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @rajanprabu

      f = open("D:\Stockvision\nseToken.txt", "r")
      token=f.read()
      task="mw"

      obj=SmartConnect(api_key=api_key)
      login = obj.generateSession(client_code,your_password)
      refreshToken= login['data']['refreshToken']
      feedToken=obj.getfeedToken()

      userProfile= obj.getProfile(refreshToken)
      ss = WebSocket(feedToken,client_code)

      def on_tick(ws, tick):
      print("Ticks: {}".format(tick))

      def on_connect(ws, response):
      ws.websocket_connection()
      ws.send_request(token,task)

      def on_close(ws, code, reason):
      ws.stop()

      Assign the callbacks.

      ss.on_ticks = on_tick
      ss.on_connect = on_connect
      ss.on_close = on_close

      p1 = multiprocessing.Process(target = ss.connect())
      sys.exit()
      p1.start()

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin

      I getting data for one token
      but when I pass all nse cash token it is not giving any data
      Only tvalue is coming

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin

      How many token can be added to websocket.

      Can I send all nse cash tokens??

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin

      Getting same error after refreshing

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin
      generateSession error

      {'status': False, 'message': 'Login Id or password is invalid', 'errorcode': 'AB1007', 'data': None}

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin
      My account is new account created online not attached to any sub-brokers.
      Please check client code H104220 and migrate

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @shrikantshet

      Is my version of python & SmartAPI both ok??

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @shrikantshet
      My account is new account created online not attached to any sub-brokers. Please check client code H104220

      Presently I am using Only Market feed app.
      Order is still under development.
      Do I still have to migrate my account?

      Once after migration , I can use web based desktop application
      also at same time?

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin

      Do I need to register for market feed??

      Do I need to refresh api_key and password every day??

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin
      Login error

      {'status': False, 'message': 'Login Id or password is invalid', 'errorcode': 'AB1007', 'data': None}

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @Heena-Shah

      smartapi-python
      version
      1.2.6

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin
      python 3.8.3

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin
      token="nse_cm|2885"
      task="sfi" # mw|sfi|dp

      obj=SmartConnect(api_key=api_key)
      login = obj.generateSession(client_code,your_password)
      #refreshToken= login['data']['refreshToken']
      feedToken=obj.getfeedToken()

      #userProfile= obj.getProfile(refreshToken)
      ss = WebSocket(feedToken,client_code)

      def on_tick(ws, tick):
      print("Ticks: {}".format(tick))

      def on_connect(ws, response):
      ws.websocket_connection()
      ws.send_request(token,task)

      def on_close(ws, code, reason):
      ws.stop()

      Assign the callbacks.

      ss.on_ticks = on_tick
      ss.on_connect = on_connect
      ss.on_close = on_close

      p1 = multiprocessing.Process(target = ss.connect())
      sys.exit()
      p1.start()

      Getting only...
      <function on_connect at 0x00000227435DFEE0>
      Ticks: [{'ak': 'nk', 'msg': 'sfi', 'task': 'sfi'}]

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      @admin when will b new updated websocket code available

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      <function on_connect at 0x000001716110FEE0>

      getting above error

      posted in Python SDK
      H
      Heena Shah
    • RE: Token List downLoad

      from smartapi import SmartConnect
      from smartapi import WebSocket

      obj=SmartConnect(api_key="")
      data = obj.generateSession("","")
      feedToken=obj.getfeedToken()

      WebSocket

      token="nse_cm|2885"
      ss = WebSocket(feedToken,"")

      def on_tick(ws, tick):
      print(tick)

      def on_connect(ws, response):
      ws.send_request(token)

      def on_close(ws, code, reason):
      ws.stop()

      Assign the callbacks.

      ss.on_ticks = on_tick
      ss.on_connect = on_connect
      ss.on_close = on_close

      ss.connect()

      posted in Python SDK
      H
      Heena Shah
    • Token List downLoad

      How can I get dump of all tokens in python variable??
      Is all tokens can be added is websocket??

      posted in Python SDK
      H
      Heena Shah