Navigation

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

    Status 403 in generateSession

    Bugs
    0
    3
    15
    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.
    • R
      rozodkarbharat last edited by

      @Moderator_1 @Moderator_2 @Moderator_3 I am using smartapi-javascript And placing 4 order at same time. Every time while placing order generateSession is called. But Sometime generate session is giving Status 403 and out of 4 2 or 3 order are getting placed. What is solution for this?

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @rozodkarbharat last edited by

        Hello @rozodkarbharat
        Can you please reduce the generate session api call to one time and then you can place 4 orders,Generate api call should be one.
        Regards,
        SmaertAPI Team

        R 1 Reply Last reply Reply Quote 0
        • R
          rozodkarbharat @Moderator_3 last edited by

          @Moderator_3 We can do that for buying but for selling all 4 might be at the same time or at different times according to their targets. this cannot be done. As we are buying 4 different strike prices and selling after 20 points profit which depends on a lot of things whether it will be sold at the same time or not.

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