Navigation

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

    Stop loss oder

    Python SDK
    4
    8
    238
    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
      algok last edited by

      How to put stoploss order , if anyone have idea or code pls share.

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

        @algok

        combine code here
        https://github.com/angelbroking-github/smartapi-python

        with this table according to your requirement

        Screenshot 2021-01-21 at 07.16.14.png

        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"
                }
        
        A 1 Reply Last reply Reply Quote 0
        • A
          algok @Surya 1 last edited by

          @rajanprabu said in Stop loss oder:

          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"
          }

          where I can put trigger price

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

            @algok

            https://smartapi.angelbroking.com/docs/Orders

            you can use trigger price as given in the table below.

            Screenshot 2021-01-21 at 07.45.02.png

            A B 2 Replies Last reply Reply Quote 0
            • A
              algok @Surya 1 last edited by

              @rajanprabu thanks bro,let me try

              1 Reply Last reply Reply Quote 0
              • B
                bincyajithm @Surya 1 last edited by

                @rajanprabu we are getting this error warning16408 : Trigger price entered has invalid characters

                J S 2 Replies Last reply Reply Quote 0
                • J
                  jiwan1986 @bincyajithm last edited by

                  @bincyajithm Please share you code so that everyone can check.

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

                    @bincyajithm

                    Isn't the message clear itself ? Invalid characters.. Are you sure you are passing the correct value..

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