Skip to main content
https://s3.amazonaws.com/images.seroundtable.com/charts2-Google-1900px--1444997211.jpg

Google Finance GET

Getting the Financial data From Google Finance

https://img.shields.io/pypi/v/requests.svg https://img.shields.io/pypi/l/requests.svg https://img.shields.io/pypi/pyversions/requests.svg

Installation

Based on : https://github.com/pdevty/googlefinance-client-python

$ pip install googlefinance.get

$ pip install -i https://pypi.python.org/pypi googlefinance.get

Getting Codes

Default Setting is KRX Market’s Info (South Korea Market)

>>> from googlefinance.get import get_code
    >>> get_code()
    >>> get_code('NASDAQ')
    >>> get_code('NYSE')

NASDAQ & NYSE is from the Nasdaq site’s CSV download.

Getting Historical Financial Data

Getting the Only Single Company’s Historical Financial Data

  1. code = ‘NASDAQ: code list’

  2. period = ‘30d’: 30 days (default), ‘1M’ : Month , ‘1Y’ : year

  3. interval = 86400 : 1 day (default), 60 * integer (seconds)

>>> from googlefinance.get import get_datum
>>> df = get_datum('KRX:005930', period='2M', interval =86400)
date        Open     High     Low      Close    Volume
2018-05-04  53000.0  53900.0  51800.0  51900.0  39290305
2018-05-08  52600.0  53200.0  51900.0  52600.0  22907823
2018-05-09  52600.0  52800.0  50900.0  50900.0  15914664

Getting Historical Financial Data

Insert the Code & Concat the DataFrame

>>> from googlefinance.get import get_data
>>> codes = ['KRX:005930','KOSDAQ:091990','NASDAQ:TSLA','NASDAQ:AMZN']
>>> df = get_data(codes, period='2M', interval =86400)

date       Code        Open     High     Low      Close    Volume
2018-05-04  KRX:005930  53000.0  53900.0  51800.0  51900.0  39290305
2018-05-08  KRX:005930  52600.0  53200.0  51900.0  52600.0  22907823
2018-05-09  KRX:005930  52600.0  52800.0  50900.0  50900.0  15914664

© 2018 GitHub : https://github.com/YongBeomKim

Metadata

Release files for googlefinance.get 0.4.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for googlefinance.get 0.4.9
File Interpreter ABI Platform
googlefinance.get-0.4.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / googlefinance.get-0.4.9-py2.py3-none-any.whl

Download URL googlefinance.get-0.4.9-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ab6520b82d397796dd8704e95a09af036dda54b764fb3dd36a5e3d336eecfa37
BLAKE2b-256 checksum
How to use checksums
36b4b107f896e21f91443871cdd522b646a90b22dd8651defdf947bb8d96d066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.9 This release

1 release file

0.4.8

1 release file

0.4.6

2 release files

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page