Navigation

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

    GTT - Rule List api is throwing error

    Test
    0
    8
    43
    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.
    • A
      akumar42 last edited by

      Endpoint : Error occurred while making a POST request to https://apiconnect.angelbroking.com/rest/secure/angelbroking/gtt/v1/ruleList.

      Error : Request: {'status': ['NEW', 'ACTIVE'], 'page': 1, 'count': 50}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

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

        Hello @akumar42

        Could you please provide the header and request body here

        Regards,
        SmartAPI Team

        1 Reply Last reply Reply Quote 0
        • A
          akumar42 last edited by

          Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '', 'X-ClientPublicIP':'' , 'X-MACAddress': '', 'Accept': 'application/json', 'X-PrivateKey': '', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'status': ['NEW'], 'page': 1, 'count': 50}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

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

            Hello @akumar42

            You are not passing the Authorization in header ,Kindlt cross check with the below attached link and confirm
            https://smartapi.angelbroking.com/docs/Gtt

            Regards,
            SmartAPI Team

            1 Reply Last reply Reply Quote 0
            • A
              akumar42 last edited by

              Hi,

              I can't share the full header since it contains my secret key but I am sending it. This API was working fine till last week from past 3 months.
              I have not made any changes to my script.

              Request : smartApi.gttLists(status=['NEW'], page=1, count=100)

              Possible to have a google meet ?

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

                Hello @akumar42

                Please hide your secret information with some special character(*,- etc).So that we can confirm that you are passing the expected headres or not from our side.

                Regards,
                SmartAPI Team

                1 Reply Last reply Reply Quote 0
                • A
                  akumar42 last edited by

                  Hi,

                  I confirm that I am passing the header correctly in the request. This is not the only API I am using couple other API's [get positions, candledata etc] as well and they are working fine. Also, it worked all fine till now yesterday as well it worked fine once so that means the issue is not with headers. Possible to have a google meet or some kind of connect? talking like this back and forth is not helping at all. Hope you understand.

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

                    Hello @akumar42

                    One on one support is cuurently we are not providing
                    If possible can you please share the clientId So that we can check the logs from our side

                    Regards,
                    SmartAPI Team

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