Kotak-Neo / kotak-neo-api

113 stars 105 forks source link

AMO Order is not allowed to be cancelled #48

Open syedasif11 opened 1 year ago

syedasif11 commented 1 year ago

I placed some AMO orders yesterday via API and when I tried to cancel those today I got this error. Note that I was able to cancel orders which were placed today, problem is with AMO orders only.

Error: {'data': {'error': [{'code': '91400', 'message': 'Request not allowed. Cancel, Modify and OrderHistory will only be available if order was placed via API'}]}}

Kotak-Neo commented 12 months ago

Kindly let us know if you are still facing this issue. If yes, please share the response of Place Order API and Modify Order API.

syedasif11 commented 12 months ago

Why do you need response of

Place Order API and Modify Order API

when I am saying the issue was with cancelling the AMO order?

Kotak-Neo commented 11 months ago

It seems you have placed these orders from Mobile/Web and trying to cancel from API. If that's not the case please share your client code we will contact you.

syedasif11 commented 11 months ago

It seems you have placed these orders from Mobile/Web and trying to cancel from API.

No, as I mentioned in my very first comment, the order was placed via API. Here is the AMO order that I was trying to cancel: Order number 230830001381765 placed at 2023-08-30 17:00:28.537. Was trying to cancel the order at 2023-08-31 09:16:04.777361.