![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Minimal API to interact with Yahoo Finance.
pip install yahoo_finance_api2
The following example retrieves 10 days of 5 minute frequency Microsoft (MSFT) stock data.
import sys
from yahoo_finance_api2 import share
from yahoo_finance_api2.exceptions import YahooFinanceError
my_share = share.Share('MSFT')
symbol_data = None
try:
symbol_data = my_share.get_historical(share.PERIOD_TYPE_DAY,
10,
share.FREQUENCY_TYPE_MINUTE,
5)
except YahooFinanceError as e:
print(e.message)
sys.exit(1)
print(symbol_data)
The output format:
{
'timestamp': [...],
'open': [...],
'high': [...],
'low': [...],
'close': [...],
'adj_close': [...],
'volume': [...]
}
Share
:
get_historical(period_type, period, frequency_type, frequency)
share.PERIOD_TYPE_DAY
, share.PERIOD_TYPE_WEEK
, share.PERIOD_TYPE_MONTH
, share.PERIOD_TYPE_YEAR
), period (1, 5, 10, etc.), frequency_type (share.FREQUENCY_TYPE_MINUTE
, share.FREQUENCY_TYPE_DAY
, share.FREQUENCY_TYPE_MONTH
, share.FREQUENCY_TYPE_YEAR
), and frequency (1, 5, 10, etc.). Only certain combinations of these parameters are allowed.FAQs
Yahooo Finance API package
We found that yahoo-finance-api2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.