Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. tushar
    T
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Best 0
    • Groups 0

    tushar

    @tushar

    0
    Reputation
    3
    Profile views
    5
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    tushar Unfollow Follow

    Latest posts made by tushar

    • RE: Unable to recieve to tick data

      @admin Please help.

      posted in Bugs
      T
      tushar
    • Unable to recieve to tick data

      Always receiving this -

      Receive stock ticks:: [ { ak: 'nk', task: 'cn', msg: 'cn' } ]
      Receive stock ticks:: [ { ak: 'nk', task: 'mw', msg: 'mw' } ]
      

      I'm using my client_code, password, and Key.

      Below is the code, I've passed my client details (code below doesn't contain my details)

      Code

      let { SmartAPI, WebSocket } = require("smartapi-javascript");
      
      let smart_api = new SmartAPI({
          api_key: "KEY",    // PROVIDE YOUR API KEY HERE
       });
      
      
      smart_api.generateSession("client_code", "PWD")
          .then((data) => {
              // console.log(data)
              return data;
          })
          .then((data) => {
              console.log(data)
              let web_socket = new WebSocket({
                  client_code: "client_code",
                  feed_token: data.feedToken,
                  script: "nse_cm|1594&nse_cm|10738&nse_cm|277&nse_cm|144&nse_cm|685"   //exchange|token for multi stocks use & seperator
              });
      
              web_socket.connect();
              web_socket.on('tick', receiveTick)
      
              function receiveTick(d) {
                  console.log("Receive stock ticks::", d)
              }
          })
          .catch(ex => {
              console.log("EX::", ex)
          });
      
      smart_api.setSessionExpiryHook(customSessionHook);
      
      function customSessionHook() {
          console.log("User loggedout");
      }
      
      posted in Bugs
      T
      tushar
    • RE: USER IS BLOCKED FOR TRADING

      @admin Hi Please migrate my account DIYD14020 . I'm also getting the same error and I don't need Speed pro.

      posted in Bugs
      T
      tushar
    • RE: USER IS BLOCKED FOR TRADING - errorcode: 'AB1007'

      @admin Please help

      posted in General Discussion
      T
      tushar
    • USER IS BLOCKED FOR TRADING - errorcode: 'AB1007'

      Hi I'm getting this error from API but I use this account for trading ( my account is active. )

      posted in General Discussion
      T
      tushar