Reading order status gives me HTTOSConnectionPool Error

pawan12
pawan12 edited July 2020 in Python client
hi everyone i am trying to read order status for a SLM order since SLM order have a possibility to be cancelled if its outside the range. i try to read order status every second and its giving me this error. am i crossing somekind of ratelimitation here ? because i also See my Quote api giving me same error today ? please guide me the correct way to do things here.

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

P.S i am never crossing rate limitation in Quote as i coded in such a way i never cross more tha 60req per second. for reading a order status i am reading once per sec
  • sujith
    @pawan12,
    You can refer to the API rate limits here.
  • pawan12
    @sujith thanks for your response. but my questions is not related to rate limitation. basically what i want to ask is can even reading of order status come under rate limitation ?
  • sujith
    Yes, every request matters. You can use postbacks API or order updates via websockets to know the order status.
  • pawan12
    pawan12 edited July 2020
    @sujith ok so order status is counted as Quote API request or it has its its seprate count which shouldn't exceed 60 ?
  • pawan12
    pawan12 edited July 2020
    kite.order_history() is counted as Quote api ? or its counted as other endpoint ?
    Quote API - 1r/s
    Order place API - 10r/s
    Historical API - 3r/s
    All other endpoints - 10r/s

    kite.order_history() comes under which of these
  • sujith
    It is an aggregate count, not for one API call. All read requests are capped at 10 requests/seconds.
    The Quote API, historical data API are special endpoints that have 1 and 3 requests per second limit.
  • pawan12
    that ok sujith i understood but just to clarify order_history doesnt come under Quote it comes under Special Reads right ? i have to make sure all type of reads i am doing using kite.* should be below 10req/sec and also make sure individual restriction like Quote 1req/sec orderplace 10r/sec etc
  • sujith
    Yes, all reads include orderbook, order history, positions, funds, holdings.
Sign In or Register to comment.