I have already completed that step.and this access token got from there. Currently getting ticks using websocket using this access token. I also have another question. where will I get instruments codes for ticks to be used on websocket ?
I am also able to get ticks but getting "kiteconnect.exceptions.GeneralException: Request method not allowed", when I try to place order. I am using Python APIs and code below to place order.
@rs7683 You are using the wrong variety and product param. Variety should be kite.VARIETY_REGULAR and product should be kite.PRODUCT_NRML. Go through this documentation, to know about all order input param.
You can get list of instrument token from this link.
I agree with @ZI4453, please don't post app or account specific tokens on the public threads.
order_id = kite.place_order(variety= kite.PRODUCT_NRML,
tradingsymbol="NIFTY20MAYFUT",
exchange=kite.EXCHANGE_NFO,
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=75,
order_type=kite.ORDER_TYPE_SLM,
price = 9900,
product = kite.VARIETY_REGULAR)
Kindly help.
You are using the wrong variety and product param. Variety should be
kite.VARIETY_REGULAR
and product should bekite.PRODUCT_NRML
.Go through this documentation, to know about all order input param.