Skip to content

Commit

Permalink
Update options.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit1200 authored Nov 9, 2020
1 parent 0adb8a4 commit dfb2625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions robin_stocks/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def find_options_by_expiration(inputSymbols, expirationDate, optionType=None, in

for item in filteredOptions:
marketData = get_option_market_data_by_id(item['id'])
item.update(marketData)
item.update(marketData[0])
write_spinner()

data.extend(filteredOptions)
Expand Down Expand Up @@ -216,7 +216,7 @@ def find_options_by_strike(inputSymbols, strikePrice, optionType=None, info=None

for item in filteredOptions:
marketData = get_option_market_data_by_id(item['id'])
item.update(marketData)
item.update(marketData[0])
write_spinner()

data.extend(filteredOptions)
Expand Down Expand Up @@ -256,7 +256,7 @@ def find_options_by_expiration_and_strike(inputSymbols, expirationDate, strikePr

for item in filteredOptions:
marketData = get_option_market_data_by_id(item['id'])
item.update(marketData)
item.update(marketData[0])
write_spinner()

data.extend(filteredOptions)
Expand Down

0 comments on commit dfb2625

Please sign in to comment.