Navigation

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

    Unable to place MCX Option Orders

    General Discussion
    0
    2
    20
    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.
    • V
      venkuu last edited by

      Hello All, I am try to place the MCX Option Orders using the below code. MCX has enabled . Any one faced similar issue. Anu Suggestions and help. Thank you!
      orderparams={
      "variety":"NORMAL",
      "tradingsymbol":"CRUDEOIL24MAR6200CE",
      "symboltoken":"427032",
      "transactiontype":"BUY",
      "exchange":"MCX",
      "ordertype":"MARKET",
      "producttype":"CARRYFORWARD",
      "duration":"DAY",

          "squareoff":"0",
          "stoploss":"0",
          "quantity":1 #100
          }
          obj.placeOrder(orderparams)
      

      Error: rderResponse= self._postRequest("api.order.place", params)['data']['orderid']
      TypeError: 'NoneType' object is not subscriptable

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

        Hi @venkuu

        We have fixed the "Nonetype" error on our SDKs. Please make sure if the new sdk version is consumed.

        Regards,
        SmartAPI team

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