It looks like you're new here. If you want to get involved, click one of these buttons!
*** kiteconnect.exceptions.InputException: Unknown `tradingsymbol`.
The relevant code for buying is as shown:
def placeMarketOrder(symbol, buy_sell, quantity):
# Place an intraday market order on NSE
if buy_sell == "buy":
t_type = kite.TRANSACTION_TYPE_BUY
elif buy_sell == "sell":
t_type = kite.TRANSACTION_TYPE_SELL
kite.place_order(tradingsymbol=symbol,
exchange=kite.EXCHANGE_NSE,
transaction_type=t_type,
quantity=quantity,
order_type=kite.ORDER_TYPE_MARKET,
product=kite.PRODUCT_MIS,
variety=kite.VARIETY_REGULAR)
placeMarketOrder('BANKNIFTY2181236200CE', 'buy', 25)