API Bug in order placement


  • When I try to place SELL order from API example, my order is getting placed.

    {
    "variety":"NORMAL",
    "tradingsymbol":"SBIN-EQ",
    "symboltoken":"3045",
    "transactiontype":"SELL",
    "exchange":"NSE",
    "ordertype":"MARKET",
    "producttype":"DELIVERY",
    "duration":"DAY",
    "price":"194.50",
    "squareoff":"0",
    "stoploss":"0",
    "quantity":"1"
    }

    But, when I try to put my stockname & symbol to it. it returns an error "TypeError: 'NoneType' object is not subscriptable"

    {
    "variety":"NORMAL",
    "tradingsymbol":"COALINDIA-EQ",
    "symboltoken":"20374",
    "transactiontype":"SELL",
    "exchange":"NSE",
    "ordertype":"MARKET",
    "producttype":"DELIVERY",
    "duration":"DAY",
    "price":"194.50",
    "squareoff":"0",
    "stoploss":"0",
    "quantity":"1"
    }

    This is really a frustrating problem, no proper documentation of errors is present.
    Please help & resolve it. ASAP


  • Hi @chexki

    Apologies for delayed response and inconvenience caused.
    NoneType error has been fixed at our end. Kindly reverify and let us know if the issue has resolved.

    Thanks & Regards,
    SmartAPI team