Retrieving Tick Data from Zerodha in Python

The tick data that you receive from Zerodha looks like this:

For the sake of convenience, I have included just two instruments (scrips), you can include upto 3,000 instruments.

You’ll notice that this tick data is basically a list of dictionaries. So, how would you go about retiriving the required data from this list?

I have provided here a solution.

The first step is to import datetime. If you don’t do this, it will throw an error.

The second step is to give a name to this list. I name it ticks.

Now, we will iterate through this list.

You see, it’s not very difficult. Just go through the code and you’ll understand it.