NoneObject is not subscriptable

arun0024
Hi Team,

I am receiving the "NoneObject is not subscriptable" error when trying to execute Option Contract PE Sell order using Kite Connect API version.

Please advise how to fix the option contract PE sell order issue

Regards
Arun
  • rakeshr
    "NoneObject is not subscriptable"
    It's an python error. Can you paste here the complete order params/order placed code?
  • arun0024
    thank you for helping. Here is the code

    kite.place_order(variety=kite.VARIETY_REGULAR,
    exchange=NFO,
    tradingsymbol=FINNIFTY2451421650PE,
    transaction_type=kite.TRANSACTION_TYPE_SELL,
    quantity=375,
    product=kite.PRODUCT_MIS,
    order_type=kite.ORDER_TYPE_MARKET,
    validity=None,
    disclosed_quantity=None,
    squareoff=None,
    stoploss=None,
    trailing_stoploss=None,
    tag="SELL")
  • arun0024
    Please let me know if I have an update on this
  • rakeshr
    validity=None,
    You need to use the correct validity type. Go through the documentation here.
Sign In or Register to comment.