Unknown trading symbol

Hsadikot
Hi,

I have downloaded the instrument dump using the kiteconnect api

I wanted to trade in banknifty weekly option(12th August Expiry)

I found the following Put and call options for the same from the dump:

11095810 43343 BANKNIFTY2181236000PE BANKNIFTY

11098114 43352 BANKNIFTY2181236200CE BANKNIFTY

I am also able to find out the ltp of the given options and also download the historical data for the given options iusing kite api.

The only issue is that when I try to buy or sell the same instruments it gives me he following exception:
*** 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)
  • rakeshr
    exchange=kite.EXCHANGE_NSE,
    Exchange should be NFO.
  • Hsadikot
    I tried Doing that too. Does not work
  • rakeshr
    I just placed the above order with the exchange as NFO. Order was placed successfully.
    kite.place_order(tradingsymbol = 'BANKNIFTY2181236200CE',
    variety = kite.VARIETY_REGULAR,
    exchange = kite.EXCHANGE_NFO,
    transaction_type = 'BUY',
    quantity = 25,
    product = kite.PRODUCT_MIS,
    order_type = kite.ORDER_TYPE_MARKET)
    I tried Doing that too. Does not work
    Can you paste here complete error trace back for this?
Sign In or Register to comment.