Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    SmartWebsocket2 - If exchange type is invalid, API does not throw any error

    Python SDK
    0
    1
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      ashigro last edited by

      I thought of posting it for future improvement or helping others. Somehow, I unknowingly updated exchange type as '0' in my code and I stopped getting any streaming data. It took me a few hours to figure-out the problem after finally comparing with previous version of code.

      Documentation
      https://smartapi.angelbroking.com/docs/WebSocket2

      Following are valid exchange types:

      tokenList[].exchangeType Integer M

      exchange type

      1 (nse_cm)

      2 (nse_fo)

      3 (bse_cm)

      4 (bse_fo)

      5 (mcx_fo)

      7 (ncx_fo)

      13 (cde_fo)

      1 Reply Last reply Reply Quote 0
      • First post
        Last post