I am using the Python SDK to get orders and trades. I placed some orders yesterday. I am trying to execute the following commands: kiteConnect.order_history(order_id=oid) I get the following message: kiteconnect.exceptions.GeneralException: Couldn't find that `order_id`.
Is there a time limit to retrieving orders and trades executed yesterday ? If so, how does one get orders executed yesterday?
Everyday after BOD process, orderbook is cleared. You will have to store orderbook if you want to use it next day or use it in future as well.
You may checkout order history API here to know more about what it does.