Navigation

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

    Historical data for options

    Python SDK
    4
    13
    415
    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.
    • T
      techalgo @admin last edited by

      @admin
      Do you have any timeline for this ? It will be very helpful for backtesting

      S 1 Reply Last reply Reply Quote 0
      • A
        admin @ganesh last edited by

        @ganesh please go thorugh the doc below
        https://smartapi.angelbroking.com/docs/WebSocketStreaming

        1 Reply Last reply Reply Quote 0
        • S
          Sukhwant280 @techalgo last edited by

          hi @admin & community,

          i am using below code to execute option trades:

           orderparams = {
              "variety": "NORMAL",
              "tradingsymbol": symbol,
              "symboltoken": token,
              "transactiontype": "BUY",
              "exchange": exch,
              "ordertype": "LIMIT",
              "producttype": "INTRADAY", #"CARRYFORWARD",
              "duration": "DAY",
              "price": pricequote,
              "squareoff": "0",
              "stoploss": stoplossno,
              "quantity": qty
              }
              orderId = smartApi.placeOrder(orderparams)
          

          Need confirmation on below 2 points:

          • product type is Intraday means after 3.15pm, trade will get squareoff automatically?
          • Stoploss feature doesnot work for option trading? as the variable "stoplossno" has a value but when executed, it doesn't gets captured

          thanks
          Sukhwant

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

            @admin please opine on my 2 points as this will help a lot for me to understand stoploss feature using api

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

              hi @admin

              i got clarity on point 1 of intraday - product type, will unwind the postion after 3.15 pm daily. so thats cool.

              i need your guidance around while booking option trades via python ap., how we can put stoploss in the same order, as i am failing to do so. as mentioned in my orderparameters, i am able to book Buy option order but in stoploss field, even if i give a value. it books the order without taking stoploss value.

              please assist. really appreciate if you tell me where i am going wrong

              thanks
              Sukhwant

              A 1 Reply Last reply Reply Quote 0
              • A
                admin @Sukhwant280 last edited by

                @sukhwant280 said in Historical data for options:

                hi @admin

                i got clarity on point 1 of intraday - product type, will unwind the postion after 3.15 pm daily. so thats cool.

                i need your guidance around while booking option trades via python ap., how we can put stoploss in the same order, as i am failing to do so. as mentioned in my orderparameters, i am able to book Buy option order but in stoploss field, even if i give a value. it books the order without taking stoploss value.

                please assist. really appreciate if you tell me where i am going wrong

                thanks
                Sukhwant

                mail us at api@angelbroking.com we will connect you.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Sukhwant280 @admin last edited by

                  @admin hi,

                  i have dropped a mail on Friday but no response yet. please opine

                  i am able to book buy order but not able to book Buy and Stop loss on that buy successfully using python api.

                  thnaks

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @Sukhwant280 last edited by

                    @Sukhwant280 said in Historical data for options:

                    hi,

                    i have dropped a mail on Friday but no response yet. please opine

                    i am able to book buy order but not able to book Buy and Stop loss on that buy successfully using python api.

                    thnaks

                    your issue has been discussed and solved.

                    1 Reply Last reply Reply Quote 0
                    • D
                      dhayalram @admin last edited by

                      @admin This been 3 years, any update on this?

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        Moderator_3 @dhayalram last edited by

                        Hello @dhayalram
                        We have the historical data option , please check this link to get to know that how you can use
                        Regards,
                        SmartAPI Team

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