Navigation

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

    Posts made by adi3399

    • RE: Python Streaming Tick Data Problem with SmartAPI Websocket's

      @azkhan Uninstalled and re-installed smartapi python package. There is progress now. it is opening websocket connection and showing response. I need stock price information.. how can I get price? Please advise.

      Below is the output of same code. It is showing actual client code correctly , but to show here I changed it to "my client code"

      before connect
      __on_open################
      {'task': 'cn', 'channel': 'NONLM', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      2021-07-15 13:51:05.092349 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      2021-07-15 13:51:21.833013 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      HeartBeat Sending Failed
      2021-07-15 13:51:29.792444 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      HeartBeat Sending Failed
      2021-07-15 13:51:35.124963 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      2021-07-15 13:51:51.841917 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      HeartBeat Sending Failed
      2021-07-15 13:51:59.822315 : Start task in the background
      {'task': 'hb', 'channel': '', 'token': 'token number', 'user': 'my client id', 'acctid': 'my client id'}
      HeartBeat Sending Failed

      posted in Python SDK
      A
      adi3399
    • RE: Python Streaming Tick Data Problem with SmartAPI Websocket's

      @azkhan added on_open() function.. still it is not showing tick price info. this is new code

      7f98b4ae-2855-404c-a4df-6876335919d9-image.png

      posted in Python SDK
      A
      adi3399
    • RE: Python Streaming Tick Data Problem with SmartAPI Websocket's

      @admin Thank you

      posted in Python SDK
      A
      adi3399
    • Python Streaming Tick Data Problem with SmartAPI Websocket's

      Live streaming of stock price is not working for me in python program. It looks like running and in loop, but not displaying tick price.

      Can anyone please check and let me know if anything incorrect in the code.

      Here is the code

      7f250157-290f-4206-a29e-fb7851c776c8-image.png


      Output it is showing is "before connect", not showing "on connect" and tick value.

      posted in Python SDK
      A
      adi3399