Freeze qty information should be made available through api. Other brokers are providing. It could be added as another field in the kite.instruments () (just an idea..but zerodha api people can decide). Thanks.
To save the NIFTY and BANKNIFTY instruments selectively, following snippet can be used. Sharing it so that some one might find it useful.
def write_instruments_to_csv(list_of_inst, file_path, list_of_symbls):
field_names = list_of_inst[0].keys…
Some one may find this issue again. Adding a image to clarify the way I am using currently.
Especially, if you're saving instrument files as sequence of json lines, this will be helpful.
I find that at many places, API is not providing string (especially date/time values). If Zerodha had given why they are doing this way instead of a String, it would have helped to understand / appreciate.
Any way, for now I am using following cod…
Found the issue. It is a bug in the connect.py.
In case of curl the output is as below.
Observe the expiry date information
Following is the modification required in connect.py (line no: 804)
# Parse date
if len(row["expiry"]) ==…
Thanks for quick response. I do not think that is right. As can be seen above, API doc clearly specifies it to be string. So, it should be given as string.
I think, the code should have been as below, so that it would become string.
datetim…