Navigation

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

    sudhakar

    @sudhakar

    0
    Reputation
    17
    Posts
    17
    Profile views
    0
    Followers
    2
    Following
    Joined Last Online

    sudhakar Follow

    Best posts made by sudhakar

    This user hasn't posted anything yet.

    Latest posts made by sudhakar

    • Websocket response

      I am getting some strange response from websocket, what responses I get on every message and how to interrupt ?
      __on_open################
      {'task': 'cn', 'channel': 'NONLM', 'token': '0941629945', 'user': 'SPUI1001', 'acctid': 'SPUI1001'}
      2021-06-07 14:18:04.774882 : Start task in the backgroundon open
      {'task': 'hb', 'channel': '', 'token': '0941629945', 'user': 'SPUI1001', 'acctid': 'SPUI1001'}

      [{'ak': 'ok', 'msg': 'connected', 'task': 'cn'}] 0
      [{'ak': 'ok', 'msg': 'heartbeat', 'task': 'hb'}] 1
      [{'name': 'tm', 'tvalue': '07/06/2021 14:18:06'}] 2
      [{'ap': '2211.74', 'bp': '2230.00', 'bq': '56', 'bs': '60', 'c': '2190.50', 'cng': '40.00', 'e': 'nse_cm', 'lo': '2185.00', 'ltp': '2230.50', 'ltq': '2', 'ltt': '07/06/2021 14:18:05', 'name': 'sf', 'nc': '01.8261', 'sp': '2230.50', 'tbq': '355462', 'tk': '2885', 'to': '13114764468.36', 'tsq': '667393', 'v': '5929614'}] 3
      [{'e': 'nse_cm', 'ltp': '2230.45', 'ltq': '20', 'ltt': 'NA', 'name': 'sf', 'tk': '2885'}] 4
      [{'name': 'tm', 'tvalue': '07/06/2021 14:18:07'}] 5

      posted in Python SDK
      S
      sudhakar
    • RE: websocket import error

      @rajanprabu said in websocket import error:

      pip install websocket-client --upgrade

      Thank you, its working now.

      posted in Python SDK
      S
      sudhakar
    • RE: websocket import error

      @admin Please suggest me how to update SDK, I am using python 3.8

      posted in Python SDK
      S
      sudhakar
    • RE: websocket import error

      @admin Yes I am using 3.8 latest version of python

      posted in Python SDK
      S
      sudhakar
    • websocket import error

      I am getting the below error how to fix this?
      I tried uninstall and install but didnt work.
      Below is the error message.

      ImportError: cannot import name 'SmartWebSocket' from 'smartapi' (C:\Users\Bobby\anaconda3\lib\site-packages\smartapi_init_.py)

      posted in Python SDK
      S
      sudhakar
    • RE: Streaming only 5-7 scripts even when subscribed to nifty50 stocks why?

      @dorje , I am new to algo trading, is it possible to share sample code to me please?

      posted in Python SDK
      S
      sudhakar
    • Dynamic token generation for Bank nifty options

      I want to generate Banknifty options token dynamically based on spot price. How can I find the respective token for specific spot price?

      posted in Python SDK
      S
      sudhakar
    • RE: USER ID OR PASSWORD IS INVALID , error code : 'AB1007'

      @admin still getting same error , even after changing to new password.
      'status': False, 'message': 'YOUR USER ID OR PASSWORD IS INVALID', 'errorcode': 'AB1007', 'data': None}

      posted in Python SDK
      S
      sudhakar
    • RE: 👍 Working code to get Open,Close,High,Low,Ltp price.

      Is there any way to get the token code dynamically for Bank nifty option strikes

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

      @rajanprabu , Can you help with any sample code , API guide is use less,it does not have anything.

      posted in Python SDK
      S
      sudhakar