Convert position error: 'Something went wrong. Please try after sometime', 'errorcode': 'AB1004'
-
{'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)
-
@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
} -
Hi @Moderator_2
Facing the same issue below are the payloadsClint 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:
-
@Moderator_2 it is consistent
-
@Moderator_2 It is consistent.
-
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 -
@Moderator_2 any update?
-
@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. -
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