Skip to content

Commit

Permalink
add pre-market price to info
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-paradise committed Jul 19, 2021
1 parent fc0f979 commit 41be0a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ def cleanup(data):
except Exception:
pass

try:
self._info['preMarketPrice'] = data.get('price', {}).get(
'preMarketPrice', self._info.get('preMarketPrice', None))
except Exception:
pass

self._info['logo_url'] = ""
try:
domain = self._info['website'].split(
Expand Down

0 comments on commit 41be0a0

Please sign in to comment.