Navigation

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

    To admin, Can you please provide sample code to place MARKET DELIVERY order...thanks in advance

    Python SDK
    0
    3
    40
    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.
    • K
      kn last edited by

      i got error while placing delivery market NFO order.while intraday order placed successfully.
      sample code
      pdtype="DELIVERY"
      token='54465'
      symbol='NIFTY19MAY2216200CE'
      qty='50.0'
      buy_sell='BUY'
      ordertype='MARKET'
      price='0'
      exch_seg='NFO'
      variety='NORMAL'
      triggerprice=0
      #try:
      orderparams = {
      "variety": variety,
      "tradingsymbol": symbol,
      "symboltoken": token,
      "transactiontype": buy_sell,
      "exchange": exch_seg,
      "ordertype": ordertype,
      "producttype": pdtype,
      "duration": "DAY",
      "price": price,
      "squareoff": "0",
      "stoploss": "0",
      "quantity": qty,
      "triggerprice":triggerprice
      }
      orderId=credentials.SMART_API_OBJ.placeOrder(orderparams)
      error:
      orderResponse= self._postRequest("api.order.place", params)['data']['orderid']

      TypeError: 'NoneType' object is not subscriptable

      1 Reply Last reply Reply Quote 0
      • D
        Developer last edited by

        producttype = "CARRYFORWARD"
        For future and options orders in positional trading

        K 1 Reply Last reply Reply Quote 0
        • K
          kn @Developer last edited by

          Thank you

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