Navigation

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

    Convert position error: 'Something went wrong. Please try after sometime', 'errorcode': 'AB1004'

    Python SDK
    0
    9
    59
    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
      ashigro last edited by ashigro

      {'message': 'Something went wrong. Please try after sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}

      dict1 = obj.position()
      for stock in dict1['data']:
          if stock['symboltoken'] == '6705':
              stock['newproducttype']: 'INTRADAY'
              print(stock)
              posParameters = {
                  "exchange": stock['exchange'],
                  "symboltoken": stock['symboltoken'],
                  "producttype": stock['producttype'],
                  "newproducttype": "INTRADAY",
                  "tradingsymbol": stock['tradingsymbol'],
                  "symbolname": stock['symbolname'],
                  "instrumenttype": stock['instrumenttype'],
                  "priceden": stock['priceden'],
                  "pricenum": stock['pricenum'],
                  "genden": stock['genden'],
                  "gennum": stock['gennum'],
                  "precision": stock['precision'],
                  "multiplier": stock['multiplier'],
                  "boardlotsize": stock['boardlotsize'],
                  "buyqty": stock['buyqty'],
                  "sellqty": stock['sellqty'],
                  "buyamount": stock['buyamount'],
                  "sellamount": stock['sellamount'],
                  "transactiontype": "BUY",
                  "quantity": quantity,
                  "type": "DAY"
              }
              status = obj.convertPosition(posParameters)
              print(status)
      
      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_2 @ashigro last edited by

        Hi @ashigro

        Kindly let us know if the issue persists if request is initiated from postman. Please share us the client code/issue timing/scrip details to analyze from our end.

        Regards,
        SmartAPI team

        A V 3 Replies Last reply Reply Quote 0
        • A
          ashigro @Moderator_2 last edited by

          @Moderator_2
          No I have not used postman in past.
          Client code is MVY398, convert position was issued multiple times between 11:00 am - 2:00 pm, script PAYTM.

          1 Reply Last reply Reply Quote 0
          • A
            ashigro @Moderator_2 last edited by

            @Moderator_2 any update?

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

              Hi @ashigro

              Apologies for the delayed response. We are verifying on this matter. Please confirm if the issue consistent or intermittent from your end.

              Regards,
              SmartAPI team

              A 2 Replies Last reply Reply Quote 0
              • A
                ashigro @Moderator_2 last edited by

                @Moderator_2 It is consistent.

                1 Reply Last reply Reply Quote 0
                • A
                  ashigro @Moderator_2 last edited by

                  @Moderator_2 it is consistent

                  1 Reply Last reply Reply Quote 0
                  • V
                    vigousinvest @Moderator_2 last edited by

                    Hi @Moderator_2
                    Facing the same issue below are the payloads

                    Clint Code: V520010
                    Url: https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/convertPosition
                    Method: POST
                    Request:
                    {
                    "exchange": "NSE",
                    "symboltoken": "17869",
                    "producttype": "DELIVERY",
                    "newproducttype": "INTRADAY",
                    "tradingsymbol": "JSWENERGY-EQ",
                    "symbolname": "JSWENERGY",
                    "instrumenttype": "",
                    "priceden": "1",
                    "pricenum": "1",
                    "genden": "1",
                    "gennum": "1",
                    "precision": "2",
                    "multiplier": "-1",
                    "boardlotsize": "1",
                    "buyqty": "1",
                    "sellqty": "0",
                    "buyamount": "548.85",
                    "sellamount": "0",
                    "transactiontype": "BUY",
                    "quantity": 1,
                    "type": "DAY"
                    }

                    Response:
                    {
                    "message": "Something went wrong. Please try after sometime",
                    "errorcode": "AB1004",
                    "status": false,
                    "data": null
                    }

                    Screenshot:
                    conversion.PNG

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      ashigro @vigousinvest last edited by

                      @Moderator_2 , Please help. My auto trading on AngelOne is halted for months because convertPosition is not working.
                      I tried with postman as well, getting same error.

                      {
                      "message": "Something went wrong. Please try after sometime",
                      "errorcode": "AB1004",
                      "status": false,
                      "data": null
                      }

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