Navigation

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

    nisha

    @nisha

    0
    Reputation
    12
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    nisha Follow

    Best posts made by nisha

    This user hasn't posted anything yet.

    Latest posts made by nisha

    • What is FEED_TOKEN in websocket connection?

      What is FEED_TOKEN in websocket connection?

      posted in General Discussion
      N
      nisha
    • Unable to login using SmartAPI Javascript Library - Getting Invalid Token - AG8001

      Code

      let { SmartAPI, WebSocket } = require("smartapi-javascript");
      
      let smart_api = new SmartAPI({
          api_key: appConfig.angel.marketApiKey,    // PROVIDE YOUR API KEY HERE"
      });
      
      smart_api.generateSession(appConfig.angel.clientId, appConfig.angel.clientPwd)
          .then((data: any) => {
              return smart_api.getProfile();
          })
          .then((data: any) => {
              // Profile details
              console.log(data);
          })
          .catch((ex: any) => {
              //Log error
              console.log(ex);
          })
      
          // TO HANDLE SESSION EXPIRY, USERS CAN PROVIDE A CUSTOM FUNCTION AS PARAMETER TO setSessionExpiryHook METHOD
          smart_api.setSessionExpiryHook(customSessionHook);
      
          function customSessionHook() {
              console.log("User loggedout");
              
              // NEW AUTHENTICATION CAN TAKE PLACE HERE
          }
      

      Error

      User loggedout
      {
        success: false,
        message: 'Invalid Token',
        errorCode: 'AG8001',
        data: ''
      }
      

      Client ID: N174188

      @admin

      posted in Bugs
      N
      nisha
    • RE: USER ID OR PASSWORD IS INVALID , error code : 'AB1007'

      @nisha said in USER ID OR PASSWORD IS INVALID , error code : 'AB1007':

      @admin
      Hi Team,
      Kindly migrate my account too: N174188

      @admin

      Hi Team,

      Kindly migrate my account too: N174188

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

      @admin

      Hi Team,

      Kindly migrate my account too: N174188

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

      @admin

      Upgrade my account too N174188 plese

      posted in Python SDK
      N
      nisha
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Hi Team,

      Kindly migrate my account too: N174188

      @admin

      posted in General Discussion
      N
      nisha
    • RE: Account Migration

      Hi Team,

      Kindly migrate my account too: N174188

      posted in General Discussion
      N
      nisha
    • RE: Error at login API - "YOUR USER ID OR PASSWORD IS INVALID"

      Hi Team,

      Kindly migrate my account too: N174188

      posted in Bugs
      N
      nisha
    • RE: Login Problem

      Hi Team,

      Kindly migrate my account too: N174188

      posted in Bugs
      N
      nisha
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Hi Team,

      Please migrate my user id N174188

      posted in General Discussion
      N
      nisha