Navigation

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

    Session got Expired in between the market working hours

    Python SDK
    0
    7
    47
    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.
    • P
      Preetham last edited by

      Hello @Moderator_2, @administrators

      I have generated a session at 09:00 AM using my credentials and as per my code the session should only terminate at 15:15 PM, but my session got terminated in between hours. In the below referred screenshot you can see that I was able to ping and get the LTP data of BANKNIFTY futures but when trying to place an order it has thrown me this error.

      After restarting the code it worked fine but I wanna know the reason for its termination. Also I am using the getLTPData() to check my SmartApi connection is active or not, but based on my connection if it returns the LTP data as shown in the screenshot below and throws me an error while placing order what needs to be done?

      I am not able to attach the screenshot of the error message its showing me a popup saying that, Something went wrong while parsing server response while uploading.

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @Preetham last edited by

        hi @Preetham

        Apologies for your trouble. Kindly share us the client code and date of the issue to analyze further on this.

        Regards,
        SmartAPI team

        P 1 Reply Last reply Reply Quote 0
        • P
          Preetham last edited by

          Hello @Moderator_2 please refer to the details below,

          Client ID: B430541
          Date of Issue : 20-02-2024
          Issue : Session terminated in between market hours and unable to place the orders but was able to fetch the LTP data of the BNF future.

          1 Reply Last reply Reply Quote 0
          • P
            Preetham last edited by

            Hello @Moderator_2 , I have faced this issue once again today. Please refer the below screenshot in which you can see that I got the LTP data of the BNF future but while trying to place the order it is throwing me an error that session has expired. Please update me regarding this issue.

            362418b4-cce3-4bcd-86fd-4e26fbe633ee-image.png

            P 1 Reply Last reply Reply Quote 0
            • P
              PareshBhatiya @Moderator_2 last edited by

              @Moderator_2 Today all client's token is expired.
              getting rejected while placing an order
              AG8001 - Invalid Token

              1 Reply Last reply Reply Quote 0
              • P
                Preetham @Preetham last edited by

                Hello @Moderator_2, any update regarding this?

                M 1 Reply Last reply Reply Quote 0
                • M
                  Moderator_2 @Preetham last edited by

                  Hi @Preetham

                  We are able to notice there is multiple session created for single ID. Please validate and let us know if required no. of sessionID is generated.
                  Please note: We invalidate sessions if it reaches our threshold.

                  Regards,
                  SmartAPI team

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