Giter VIP home page Giter VIP logo

googlefinance.get's Introduction

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

Google Finance GET

Getting the Financial data From Google Finance

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

googlefinance.get's People

Contributors

yongbeomkim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.