Navigation

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

    Please give an example for buy, stoploss and sell order in intraday trading

    General Discussion
    0
    4
    48
    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.
    • A
      asiyaafreen01992 last edited by

      @admin Hello
      Can you please give me an example code to place buy order, stop loss and sell order without using ROBO order type.

      Thanks

      1 Reply Last reply Reply Quote 1
      • D
        Deepak8052 last edited by

        orderparams = {
        "variety": "STOPLOSS",
        "tradingsymbol": "SBIN-EQ",
        "symboltoken": "3045",
        "transactiontype": "BUY",
        "exchange": "NSE",
        "ordertype": "STOPLOSS_LIMIT",
        "producttype": "INTRADAY",
        "duration": "DAY",
        "price": "302.50",
        "squareoff": "0",
        "stoploss": "280",
        "quantity": "1"
        }

        R 1 Reply Last reply Reply Quote 0
        • R
          Rakhi @Deepak8052 last edited by

          @Deepak8052

          when you mention "280" in front of "stoploss" property, does that mean, when we place Buy order, it will automarically create a Stoploss order for that Buy order ?

          is this the "Bracket Order" / "Cover Order" , please clarify ?

          D 1 Reply Last reply Reply Quote 1
          • D
            Deepak8052 @Rakhi last edited by

            @Rakhi Cover Order, also u need to give "transactiontype": "BUY", then only it will buy

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