☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
March 2022
sujith
March 2022
balajibetadur
March 2022
SRIJAN
Read Timed out
balajibetadur
March 2022
in
Python client
Unable to place orders. Getting Read Timed out error.
Message : HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)
Tagged:
Python Client
error
Read timed out
port=443): Read timed out. (read timeout=7)
SRIJAN
March 2022
You have to handle this error with try except block.
SRIJAN
March 2022
from requests.exceptions import ReadTimeout
while True:
try:
kite.place_order(order_params)
break
except ReadTimeout:
pass
balajibetadur
March 2022
I am handling it with try-except block, but even after 3 tries, it's showing the same error. Orders are not being placed.
SRIJAN
March 2022
Check if your connection is stable. Or,try increasing the timeout.
balajibetadur
March 2022
It started working now without making any changes. And where can I change the timeout?
balajibetadur
March 2022
I am using a place_order function
def place_order( self, variety, exchange, tradingsymbol, transaction_type, quantity, product, order_type, price=None, validity=None, disclosed_quantity=None, trigger_price=None, squareoff=None, stoploss=None, trailing_stoploss=None, tag=None)
SRIJAN
March 2022
Find the answer yourself.
sujith
March 2022
@balajibetadur
,
We only deal with Kite Connect related queries on this forum. We don't provide support for programming.
Sign In
or
Register
to comment.
while True:
try:
kite.place_order(order_params)
break
except ReadTimeout:
pass
def place_order( self, variety, exchange, tradingsymbol, transaction_type, quantity, product, order_type, price=None, validity=None, disclosed_quantity=None, trigger_price=None, squareoff=None, stoploss=None, trailing_stoploss=None, tag=None)
We only deal with Kite Connect related queries on this forum. We don't provide support for programming.