Error: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)

mukesh_Chaudhary
@rakeshr , I am trading straddle and when i try to exit the position, only one leg is exited and other leg throws error " Error: HTTPSConnectionPool(host='api.kite.trade', port=443): Read timed out. (read timeout=7)". It has been happening consistently from past two days. Please help me out.

I am using the following code to exit the position.

def EXIT_SELL_ORDER (symbol,how_many_lot):
global u
exchange = 'NSE_FO'
try:
status = u.place_order(transaction_type=u.TRANSACTION_TYPE_BUY,
exchange=u.EXCHANGE_NFO,# transaction_type
tradingsymbol=symbol, # instrument
quantity=(how_many_lot * 25), # quantity
order_type=u.ORDER_TYPE_MARKET, # order_type
product=u.PRODUCT_MIS, # product_type
variety=u.VARIETY_REGULAR
) # trailing_ticks
order_id = int(status)
return order_id
  • mukesh_Chaudhary
    @sujith Please have a look at this issue.
  • rakeshr
    only one leg is exited and other leg throws error .... Read timed out
    Are both of these order post requests consecutively? Can you add some minor delay between them and check?
Sign In or Register to comment.