a reliable method of downloading historical market data from Yahoo! Finance, up to 1 minute granularity, with a more Pythonic way.

Source: Reliably download historical market data from Yahoo! Finance with Python | Ran Aroussi (Official Website)

finance api.