AG8001 error, can't place order. (Can login to API, but just can't place order)
-
When I try to place market order, I get this error:
'{"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}'
(Also, we don't need the price in market order, right?)
-
Hi @adiknowsall
-
@admin Thanks for your response. It works now! It was a small error from my side.
-
HI @adiknowsall said in AG8001 error, can't place order. (Can login to API, but just can't place order):
@admin https://smartapi.angelbroking.com/topic/411/working-sample-code-to-place-orders-python
I used this code exactly, and it gives this error:
orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptable
And when I try to manually send a request to the "placeOrder" route using POST method, the error I get is AG8001 error, INVALID TOKEN.Its seems to be working fine from our end kindly go through the req response and the order id generated from our code.
-
HI @adiknowsall
![alt text](![image url]([image url](link url)))
-
@admin https://smartapi.angelbroking.com/topic/411/working-sample-code-to-place-orders-python
I used this code exactly, and it gives this error:
orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
TypeError: 'NoneType' object is not subscriptableAnd when I try to manually send a request to the "placeOrder" route using POST method, the error I get is AG8001 error, INVALID TOKEN.
-
@admin said in AG8001 error, can't place order. (Can login to API, but just can't place order):
e regenerate your to
As soon as I generate a new session, I am placing order. Still no success.
-
HI @adiknowsall said in AG8001 error, can't place order. (Can login to API, but just can't place order):
When I try to place market order, I get this error:
'{"success":false,"message":"Invalid Token","errorCode":"AG8001","data":""}'
(Also, we don't need the price in market order, right?)
Please regenerate your tokens. -
@admin S456858
-
HI @adiknowsall Post your client id here.