Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    'NoneType' object is not subscriptable

    Python SDK
    0
    2
    42
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MOIB1200 last edited by

      Dear Team,
      I am using first time algo trading. During order placement i am getting below error,

      Order placement failed: {} 'NoneType' object is not subscriptable

      Input Parameter as follows,
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": "RVNL-EQ",
      "symboltoken": "2246",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "MARKET",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": "76",
      "squareoff": "0",
      "stoploss": "0",
      "quantity": qty
      }

      M 1 Reply Last reply Reply Quote 0
      • M
        MOIB1200 @MOIB1200 last edited by

        @MOIB1200 Please qty as number instead of string.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post