☰
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.2K
All Categories
0
Incidents
126
Node JS client
36
Go client
765
.Net API client
360
Kite Publisher
532
.Net / VBA / Excel (3rd party)
433
Algorithms and Strategies
964
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.1K
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.