Request method not allowed for IOC

I am constantly getting an error saying "Requested method not allowed" when i put variety in kite.orders() as "IOC".

Here is the whole kite.order()
kite.place_order(tradingsymbol="CRUDEOIL19SEPFUT", exchange="MCX", quantity=2, transaction_type='SELL', order_type="LIMIT",price=order_price, product="MIS", variety='IOC')
  • sujith
    You seem to be sending an invalid variety. IOC is a validity param which indicates immediate or cancel order.
    You can check out documentation for correct variety types.
Sign In or Register to comment.