Code Monkey home page Code Monkey logo

financedatareader's Introduction

FinanceDataReader

FinanceData.KR Open Source Financial data reader

Overview

The FinanceDataReader is intended to complement rather than replacement pandas-datareader. The main functions are as follows.

  • Symbol listings: KRX (KOSPI, KODAQ, KONEX), NASDAQ, NYSE, AMEX and S&P 500
  • Stock price(Word wide): AAPL, AMZN, GOOG ...
  • Stock price(KRX): 005930(Samsung), 091990(Celltrion Healthcare) ...
  • Indexes: KOSPI, KOSDAQ, DJI, IXIC, US500(S&P 500) ...
  • Exchanges: USD/KRX, USD/EUR, CNY/KRW ...
  • Cryptocurrency: BTC/USD (Bitfinex), BTC/KRW (Bithumb)

주요 기능

  • 한국거래소(KRX)와 미국3대 거래소(NASDAQ, NYSE, AMEX) 전체 상장종목 리스팅
  • S&P 500 전체 종목 리스팅
  • 국가별 ETF 전체 종목 리스팅
  • 한국, 미국, 홍콩, 중국, 일본 개별종목및 ETF 가격 데이터
  • 각종 지수, 환율, 암호화폐, 상품, 선물 가격 데이터

Install

$ pip install finance-datareader

FinanceDataReader가 이미 설치되어 있다면 다음과 같이 업그레이드 합니다.

$ pip install --upgrade finance-datareader

Quick Start

import FinanceDataReader as fdr

# Apple(AAPL), 2017-01-01 ~ Now
df = fdr.DataReader('AAPL', '2017')

# AMAZON(AMZN), 2017
df = fdr.DataReader('AMZN', '2017-01-01', '2017-12-31')

# Samsung(005930), 1992-01-01 ~ 2018-10-31
df = fdr.DataReader('068270', '1992-01-01', '2018-10-31')

# country code: ex) 000150: Doosan(KR), Yihua Healthcare(CN)
df = fdr.DataReader('000150', '2018-01-01', '2018-10-30') # default: 'KR' 
df = fdr.DataReader('000150', '2018-01-01', '2018-10-30', country='KR')
df = fdr.DataReader('000150', '2018-01-01', '2018-10-30', country='CN')

# KOSPI index, 2015~Now
df = fdr.DataReader('KS11', '2015-01-01')

# Dow Jones Industrial(DJI), 2015년~Now
df = fdr.DataReader('DJI', '2015-01-01')

# USD/KRW, 1995~Now
df = fdr.DataReader('USD/KRW', '1995-01-01')

# Bitcoin KRW price (Bithumbs), 2016 ~ Now
df = fdr.DataReader('BTC/KRW', '2016-01-01')

# KRX stock symbol list and names
df_krx = fdr.StockListing('KRX')

# S&P 500 symbol list
df_spx = fdr.StockListing('S&P500')

Using FinanceDataReader

FinanceDataReader Notebooks

Notes

  • All stock price of KRX is adjust price and date from year 1992
    가격 데이터는 모두 수정가격(djust price)이며, 1992년 부터 현재까지 가격 데이터를 제공합니다
    (한번에 5000개의 데이터를 가져옵니다. 10년 이상 데이터를 가져오려면 두번에 나누어 가져오십시오)

buymeacoffee

무료 오픈소스 FinanceDataReader 가 도움이 되셨다면 깃허브의 Star를 눌러 주세요. 아래 URL에서 후원도 하실 수 있습니다.

https://www.buymeacoffee.com/siZa4t0

2018,2019 FinanceData.KR

financedatareader's People

Contributors

financedata 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.