Navigation

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

    Sample Python code

    Python SDK
    5
    8
    173
    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.
    • S
      sudhakar last edited by

      Does any one help me with working sample python code to get LTP, place orders and modify orders.

      I need guidance to use this API pls?

      James Bond 1 Reply Last reply Reply Quote 0
      • James Bond
        James Bond @sudhakar last edited by James Bond

        @sudhakar

        Sample code to receive live LTP

        https://smartapi.angelbroking.com/topic/329/working-websocket-sample-code-to-retrieve-ltp-python?_=1615048794146

        Sample code to Place order

        https://smartapi.angelbroking.com/topic/411/working-sample-code-to-place-orders-python

        Note: These are just a generic examples to get LTP and place orders. You had to modify or change your program according to your needs.

        “Bond. James Bond.”

        M 1 Reply Last reply Reply Quote 0
        • M
          MyAgent @James Bond last edited by

          Hi @James-Bond , Can you confirm if we can place STOPLOSS_MARKET or ROBO orders? I am getting errors while placing these types of orders. Normal LIMIT orders are working fine for me.

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

            @jax248

            In addition to changing order_type you need to change order variety as well.. for stoploss orders..

            @admin please remove this limit.. we are only helping your team.. and this is almost like a punishment for helping..
            Screenshot 2021-03-08 at 09.53.36.png

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

              @rajanprabu Your request has been approved limit has changed.

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

                @admin

                Thanks. But now I have to wait even longer. Now I need to wait 240 seconds between two posts, it was 120 seconds before. Do you guys want me to post less ??

                Screenshot 2021-03-09 at 06.55.50.png

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

                  Hi @rajanprabu Limit has been removed.You can check now.

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

                    @admin Thanks appreciate it.

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