Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. General Discussion
    4. Token

    Token

    General Discussion
    16
    67
    Loading More Posts
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rishi6310 last edited by @admin

      @admin i am not able to take position try to resolve my query market is running out of time

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

        Hi @rishi6310 send us your req and response.

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

          @admin said in Token:

          Hi @rishi6310 You can go through below piece of code
          https://smartapi.angelbroking.com/topic/1194/basic-smartapi-integration-using-python

          There are self explanatory codes available here.

          Reply Quote 0
            R 1 Reply Last reply
          • R
            rishi6310 last edited by @admin

            @admin C:\Users\rishi\PycharmProjects\pythonProjectnew\venv\Scripts\python.exe C:/Users/rishi/PycharmProjects/pythonProjectnew/trading.py

            Process finished with exit code 0

            Unresolved reference 'obj' line 25 in this line (orderId=obj.placeOrder(orderparams)
            this is my piece of code
            from smartapi import SmartConnect
            from smartapi import SmartWebSocket
            import login as l

            feedToken=l.feed_token

            def place_order():
            try:
            orderparams = {
            "variety": "NORMAL",
            "tradingsymbol": "ITC",
            "symboltoken": "1660",
            "transactiontype": "buy",
            "exchange": "NSE-EQ",
            "ordertype": "MARKET",
            "producttype": "CARRYFORWARD",
            "duration": "DAY",
            "price": "0",
            "squareoff": "0",
            "stoploss": "0",
            "quantity": 1
            }
            orderId=obj.placeOrder(orderparams)
            print("The order id is: {}".format(orderId))
            except Exception as e:
            print("Order placement failed: {}".format(e.message))

            Reply Quote 0
              1 Reply Last reply
            • R
              rishi6310 last edited by @admin

              @admin i am trying to create gui in tkinter for buying and selling of stocks but not able to link with orderparam with def function but it generate new session everytime when code run and not able to place order with that

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

                @rishi6310 said in Token:

                admin i am trying to create gui in tkinter for buying and selling of stocks but not able to link with orderparam with def function but it generate new session everytime when code run and not able to place order with that

                As this is a user specific requirement you need to connect with your own software team.

                Reply Quote 0
                  R A 3 Replies Last reply
                • R
                  rishi6310 last edited by @admin

                  @admin take remote access and try to solve my problem and please tell me how to contact with your software team

                  Reply Quote 0
                    1 Reply Last reply
                  • R
                    rishi6310 last edited by @admin

                    @admin market is running out kindly try to solve my query or provide a way to solve it

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

                      @admin said in Token:

                      As this is a user specific requirement you need to connect with your own software team.

                      please note this you need to connect with you own software team.

                      Reply Quote 0
                        R 2 Replies Last reply
                      • R
                        rishi6310 last edited by @admin

                        @admin i don't any software team i am an individual trader that's why i ask for help

                        Reply Quote 0
                          1 Reply Last reply
                        • R
                          rishi6310 last edited by @admin

                          @admin plz respond to query

                          Reply Quote 0
                            1 Reply Last reply