Coder Social home page Coder Social logo

getstockdata's Introduction

Remarks

대신증권에서 제공하는 CreonPlus API를 사용하여 원하는 기간동안 원하는 단위로 주가 데이터를 받아올 수 있습니다.
get_data/get_stock.py를 실행시킬 때 unit, start, end를 argument로 넘겨주는 방식으로 데이터를 받아오도록 구현하였습니다.
save_dir argument를 통해 데이터를 저장할 directory를 지정할 수 있습니다.

이 프로그램은 대신증권 CreonPlus를 이용하여 데이터를 받아오기 때문에 반드시 CreonPlus가 실행되어 있는지 먼저 확인해야 합니다. 그리고 관리자 권한으로 실행되었는지 확인하세요.
CreonPlus는 Python 32bit에서만 작동하기 때문에 일반적으로 사용하는 64bit Python에서는 사용할 수 없습니다. 32bit 가상환경을 생성하여 돌리시는 것을 추천합니다.
또한, Python 3.5 에서 작업한 코드로 타 버전에서는 호환이 안 될 수 있습니다. 32bit 가상환경을 생성할 때 Python 3.5 를 설치하는 것을 추천합니다.

Usage

$ pip install -r requirements.txt
$ python get_stock.py --unit D --start 19000101 --end 20200309
$ python get_stock.py --unit m --start 19000101 --end 20200309  // 약 4시간 반 소요
$ python get_stock.py --unit T --start 19000101 --end 20200309

getstockdata's People

Contributors

alchemine avatar

Watchers

 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.