Skip to content

Commit 6cac893

Browse files
committed
mod option depth
1 parent 7b90ad6 commit 6cac893

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tigeropen/quote/response/option_depth_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def parse_data(self, item):
3030
strike = item.get('strike', '')
3131
right = item.get('right', '')
3232
identifier = get_option_identifier(symbol, expiry, right, strike)
33-
asks = [(v['price'], v.get('volume', 0), v['timestamp'], v['code']) for v in item.get('ask', [])]
34-
bids = [(v['price'], v.get('volume', 0), v['timestamp'], v['code']) for v in item.get('bid', [])]
33+
asks = [(v['price'], v.get('volume', 0), v.get('timestamp', 0), v.get('code')) for v in item.get('ask', [])]
34+
bids = [(v['price'], v.get('volume', 0), v.get('timestamp', 0), v.get('code')) for v in item.get('bid', [])]
3535
return {'identifier': identifier, 'asks': asks, 'bids': bids}
3636

3737

0 commit comments

Comments
 (0)