Issue while placing order and unauthorized order in my account.
-
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.
-
@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?
-
Hi @c_harish I am sharing this with our team. Allow me to update you in few time.
-
@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:
-
Hi @c_harish please mail us your piece if code and error @ api@angelbroking.com .
-
-
HI @Bharath-Raj-M Please post your req and response here.
-
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.
-
Hi @Bharath-Raj-M ok we will test it and update you on this.
-
HI @ Kindly update us on your issue we tested it and we are able to execute orders.