Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kiteconnect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ def _on_message(self, ws, message):
def _parse_binary(self, bin):
"""Parse binary data to a (list of) ticks structure."""
packets = self._split_packets(bin) # split data to individual ticks packet
data = []
data = {}

for packet in packets:
instrument_token = self._unpack_int(packet, 0, 4)
Expand Down Expand Up @@ -916,7 +916,7 @@ def _parse_binary(self, bin):
})

d["depth"] = depth
data.append(d)
data[instrument_token]=d

return data

Expand Down