Navigation

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

    Unable to place the stoploss SL-M order

    NodeJS SDK
    stoploss market
    3
    3
    50
    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
      Mahesh last edited by

      @admin Unable to place the stoploss SL-M BUY order
      There is an active SELL position, and placing SL-M order is returning null order id

      The payload for placing SL-M order is
      {
      "exchange": "MCX",
      "transactiontype": "BUY",
      "quantity": 7500,
      "price": 0.0,
      "producttype": "INTRADAY",
      "ordertype": "SL-M",
      "duration": "DAY",
      "variety": "STOPLOSS",
      "tradingsymbol": "NATURALGAS21JULFUT",
      "triggerprice": "263.99999392032623",
      "symboltoken": "229392"
      }

      A S 2 Replies Last reply Reply Quote 0
      • A
        admin @Mahesh last edited by

        HI @Mahesh Ok we will test it and update you.

        1 Reply Last reply Reply Quote 0
        • S
          Surya 1 @Mahesh last edited by

          @Mahesh

          Your order type is wrong.. it has to be

          STOPLOSS_MARKET

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