Apr-16-2020, 10:21 PM
Hi All,
Noob to python here. I am trying to iterate and capture/store the respective ask values for 740.0 and 750.0 in the the example below. So far no luck. Any help is much appreciated. Is dict_values different from dict. Based on my research, it is new with Python 3 and is an iterator and not a dictionary.
Trimmed variable output below to keep it simple
Noob to python here. I am trying to iterate and capture/store the respective ask values for 740.0 and 750.0 in the the example below. So far no luck. Any help is much appreciated. Is dict_values different from dict. Based on my research, it is new with Python 3 and is an iterator and not a dictionary.
Trimmed variable output below to keep it simple
Output:>>> print(callStrikes_dict)
dict_values([{'740.0': [{'putCall': 'CALL', ... 'bid': 12.75, 'ask': 13.4, 'last': 13.3, ....}], '750.0': [{'putCall': 'CALL', ... 'bid': 8.75, 'ask': 9.4, 'last': 10.3, ....,'mini': False}]}])
>>> type(callStrikes_dict)
<class '[b]dict_values[/b]'>