I think it would be great if there were an error_type with this response so that an exception is raised in case of an invalid payload with some information with what went wrong. I also noticed similar behaviour with /mf/sips and a few other apis. This should hopefully help work around that.
Request:
curl "https://api.kite.trade/mf/orders" -H "X-Kite-Version: 3" -H "Authorization: token <api_key>:<access_token>" -d "tradingsymbol=INF174K01LSS" -d "transaction_type=BUY" -d "amount=1000"
Response:{"status":"error","message":"Invalid `isin`","data":{}}
I think it would be great if there were an error_type with this response so that an exception is raised in case of an invalid payload with some information with what went wrong. I also noticed similar behaviour with
/mf/sips
and a few other apis. This should hopefully help work around that.