GithubHelp home page GithubHelp logo

Comments (3)

bombs-kim avatar bombs-kim commented on September 17, 2024 1

그렇군요. 왜 티커라고 이름 붙이셨는지는 이제 이해하였습니다~! 검토해주셔서 감사합니다.

from pykrx.

mr-yoo avatar mr-yoo commented on September 17, 2024

안녕하세요.
좋은 의견 감사합니다.

get_market_ohlcv_by_ticker 함수에 ticker를 입력 해야하는지 헷갈릴 수 있어 보입니다. 현재는 krx가 제공하는 기능을 하나의 함수로 그대로 맵핑했는데, 이름 뿐만 아니라 API의 구조를 고민해 보겠습니다.


get_market_ohlcv_by_ticker는 티커를 기준으로 정렬된 OHLCV 데이터를 반환한다는 뜻으로 naming 했습니다.

df = stock.get_market_ohlcv_by_ticker("20200831")
print(df.head(3))
              종목명    시가    고가     저가      종가   거래량      거래대금        시가총액   시총비중   상장주식수                                                                                                                   
000020      동화약품   23200   24000   23000   23450    786605   18488865200    654992971500  0.029999   27931470
000040      KR모터스     701     750     690     705   3172595    2291451896     64621017690  0.000000   91661018
000050          경방   10600   10850   10350   10550     23905     250412000    289231098500  0

get_market_ohlcv_by_date는 날짜를 기준으로 정렬된 OHLCV 데이터를 의미하구요.

df = stock.get_market_ohlcv_by_date("20180810", "20181212", "005930")
print(df.head(3))
             시가   고가   저가   종가     거래량                         
2018-08-10  46150  46400  44850  45400  16670643
2018-08-13  44950  45100  44650  45050   9803831
2018-08-14  44850  45400  44850  45150   6409259

from pykrx.

mr-yoo avatar mr-yoo commented on September 17, 2024

추후에 naming 및 api 구조는 고민해보겠습니다.
아직 기능 구현을 안한 것도 많아서요..

from pykrx.

Related Issues (20)

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.