Navigation

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

    Topics created by Jeet Pattani

    • J

      Cannot Retrieve live market data
      Bugs • • Jeet Pattani  

      4
      0
      Votes
      4
      Posts
      79
      Views

      D

      @Jeet-Pattani i used it like this it working mode="FULL" exchangeTokens= {"NSE": ["3045"]} marketData=smartApi.getMarketData(mode, exchangeTokens) print(f"Market Data : {marketData}")
    • J

      Cannot connect more than one websocket connection
      Bugs • • Jeet Pattani  

      4
      1
      Votes
      4
      Posts
      88
      Views

      A

      Thanks @Jeet-Pattani for the update.
    • J

      Not able to get indices data
      Bugs • • Jeet Pattani  

      2
      0
      Votes
      2
      Posts
      10
      Views

      M

      Hi @Jeet-Pattani Apologies for delayed response. We have checked for indices token of NIFTY 100, NIFTY 500, NIFTY FIN SERVICES(99926012, 99926004, 99926037) on getLTPData API. We are able to retrieve the data for the same, Kindly reverify and let us know if the issue still occurs Thanks & Regards, SmartAPI team
    • J

      The Below JS Code Works
      General Discussion • • Jeet Pattani  

      1
      0
      Votes
      1
      Posts
      13
      Views

      No one has replied

    • J

      cannot login even after adding correct password and api key
      Bugs • • Jeet Pattani  

      28
      0
      Votes
      28
      Posts
      58
      Views

      J

      @admin DONE 👍
    • J

      How to get the live data from market feed for different stocks ?
      Bugs • • Jeet Pattani  

      19
      0
      Votes
      19
      Posts
      295
      Views

      J

      @admin I connected using websocket. let { SmartAPI, WebSocket } = require("smartapi-javascript"); let web_socket = new WebSocket({ client_code: "P529774", feed_token: "097948399" }); web_socket.connect() .then(() => { web_socket.runScript("nse_cm|2885", "cn")// SCRIPT: nse_cm|2885, mcx_fo|222900 TASK: mw|sfi|dp web_socket.runScript("nse_cm|2885", "mw") setTimeout(function() { web_socket.close() }, 3000) }) web_socket.on('tick', receiveTick) function receiveTick(data) { console.log("receiveTick:::::", data) } But I am getting the following response. receiveTick::::: [ { ak: 'ok', task: 'cn', msg: 'connected' } ] receiveTick::::: [] receiveTick::::: [ { tvalue: '07/12/2021 16:19:25', name: 'tm' } ] receiveTick::::: [ { tvalue: '07/12/2021 16:19:26', name: 'tm' } ] receiveTick::::: [ { tvalue: '07/12/2021 16:19:27', name: 'tm' } ] Socket closed will it send response during market hours only?