Can you give the complete request param for the order_margins call? Also, you seem to be sending the wrong value for transaction_type, it should be Uppercase SELL. Go through the input params details.
Hi Rakesh, I changed the transaction_type in order parameters for margin calculation from 'buy' to kite.TRANSACTION_TYPE_BUY and it rectified the error. I guess there must be some recent change because today is the first time it showed this error. You can close this thread.
Also, you seem to be sending the wrong value for
transaction_type
, it should be Uppercase SELL. Go through the input params details.