Skip to main content

Tool for reqesting stock data from the Yahoo Finance API

Project description

yapywrangler

Update 05/31/2019:

This package was initally released over a year ago in the wake of Yahoo Finance updating their backend API. At that time, the only means of retrieving data required gnarly parsing and took noticable time to process. Because of this, on the initial release, a local file system for caching parts of retrieved files was used to cut down on processing time.

Since then, Yahoo Finance has updated their API resulting in much faster response times, and negating the need for the caching system.

Due to this, yapywrangler has been revised to include just its core request functionality.

Install:

pip install yapywrangler

Usage:

from yapywrangler import get_yahoo_data

stock_ticker = "MSFT"
data = get_yahoo_data(stock_ticker, start_date='2006-03-26', end_date='2019-05-29')
msft = pd.DataFrame(data)

Default Args

start_date: 2000-01-01
end_date: now

Data Format:

{
    'timestamp': [1559136600, 1559223000, 1559321620], 
    'date': ['2019-05-29', '2019-05-30', '2019-05-31'], 
    'open': [29.0, 28.399999618530273, 27.56999969482422], 
    'high': [29.31999969482422, 28.559999465942383, 28.360000610351562], 
    'low': [27.729999542236328, 27.600000381469727, 27.5], 
    'close': [28.09000015258789, 28.030000686645508, 27.940000534057617], 
    'volume': [99969600, 65072900, 40126715]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yapywrangler, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size yapywrangler-1.2-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yapywrangler-1.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page