Navigation

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

    Issue while placing order and unauthorized order in my account.

    Test
    5
    18
    87
    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.
    • C
      c_harish @admin last edited by

      any updates on this, @admin.

      even today facing issues with reading positions, orderbook and frequent HB failures when big move happens, despite running from AWS Mumbai server.

      Couldn't parse the JSON response received from the server: b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:
      
      HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
      
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @c_harish last edited by

        Hi @c_harish we have shared this with our team we will revert you back soon.

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

          @admin looks like another similar day.
          Facing same Internal Server Error while reading positions, orderbook, margin.
          Ticks are coming almost 20 secs delayed.

          @admin, It's been 14 days since I wrote this post and faced this issue atleast a dozen times now. haven't gotten a single proper reply except for "we will revert to you back soon".

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

            Hi @c_harish we are facing some network issues .Our team has fixed it. Please retry and update us if you are facing similar issue.

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

              @admin after this message of yours, i had three instances of below error while checking positions respectively @ 12:52, 12:54, 13:06.

              HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
              

              what is the permanent fix for this?

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

                Hi @c_harish I am sharing this with our team. Allow me to update you in few time.

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

                  @admin, i am facing this issue again today.

                  HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
                  
                  Couldn't parse the JSON response received from the server: b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:
                  
                  A 1 Reply Last reply Reply Quote 0
                  • A
                    admin @c_harish last edited by

                    Hi @c_harish please mail us your piece if code and error @ api@angelbroking.com .

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

                      @admin
                      Dear @admin,

                      I faced this issue while placing orders for clients too. I faced it today, could you guide us through the correct steps?

                      And also give out a reason why this is happening?

                      Regards,
                      Bharath

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

                        HI @Bharath-Raj-M Please post your req and response here.

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

                          @admin

                          So I use python to place orders:

                          def place_order(client_name,client_smartApi,tradingsymbol,symbol_token,symbolexchange,transactiontype,quantity):
                              #place order
                              try:
                                  orderparams = {
                                      "variety": "NORMAL",
                                      "tradingsymbol": str(tradingsymbol),
                                      "symboltoken": str(symbol_token),
                                      "transactiontype": str(transactiontype),
                                      "exchange": str(symbolexchange),
                                      "ordertype": "MARKET",
                                      "producttype": "INTRADAY",
                                      "duration": "DAY",
                                      "quantity": str(quantity)
                                      }
                                  orderId=client_smartApi.placeOrder(orderparams)
                                  print("The order id is: "+orderId+"\t client_name:"+client_name+" \t time:"+str(datetime.today()))
                              except Exception as e:
                                  print(e)
                          
                          client_name = 'Username'
                          client_smartApi=SmartConnect(api_key='api_key')
                          login = client_smartApi.generateSession('Client_id','Client_password')
                          refreshToken = login['data']['refreshToken']
                          quantity = 'quantity'
                          place_order(client_name,client_smartApi,tradingsymbol,symbol_token,symbolexchange,transactiontype,quantity)
                          

                          Once I executed the above, I got a response as follows:

                          HTTPSConnectionPool(host='apiconnect.angelbroking.com', port=443): Read timed out. (read timeout=7)
                          

                          That's pretty much it.

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

                            Hi @Bharath-Raj-M ok we will test it and update you on this.

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

                              HI @ Kindly update us on your issue we tested it and we are able to execute orders.

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