Skip to content

Commit 5ac311f

Browse files
author
clickingbuttons
authored
Fix OptionsContract model (#232)
1 parent beddb8c commit 5ac311f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

polygon/rest/models/contracts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def from_dict(d):
3333
return OptionsContract(
3434
additional_underlyings=None
3535
if "additional_underlyings" not in d
36-
else Underlying.from_dict(d["additional_underlyings"]),
36+
else [Underlying.from_dict(u) for u in d["additional_underlyings"]],
3737
cfi=d.get("cfi", None),
3838
correction=d.get("correction", None),
3939
exercise_style=d.get("exercise_style", None),

0 commit comments

Comments
 (0)