Comments (3)
그렇군요. 왜 티커라고 이름 붙이셨는지는 이제 이해하였습니다~! 검토해주셔서 감사합니다.
from pykrx.
안녕하세요.
좋은 의견 감사합니다.
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.
추후에 naming 및 api 구조는 고민해보겠습니다.
아직 기능 구현을 안한 것도 많아서요..
from pykrx.
Related Issues (20)
- 특정 종목의 현재가를 가져오는 기능은 없나요...? HOT 1
- 종목별 거래량 조회시 investor "연기금등" 데이터 차이.. HOT 7
- 장중 api 요청시 지연 여부 HOT 2
- get_market_fundamental() 조회시 에러 HOT 2
- bond.get_otc_treasury_yields() 함수 2002년 이전 자료 empty 값 나옴. why? HOT 2
- 거래정지종목 가격 가져올 때 에러 발생 HOT 4
- get_etf_ohlcv_by_date 에러 (ticker = '214980) HOT 5
- 공휴일 수집에 대한 질문 HOT 4
- get_index_ohlcv_by_date/ticker에 상장시가총액 추가 가능할까요? HOT 2
- 파생상품 전종목기본정보 / 전종목시세 추가 HOT 1
- ETF, ETN 종목별 투자자별 거래실적 문의 HOT 2
- 일자별 주식종목의 시장구분과 업종명 추가 요청 HOT 1
- 천 단위 콤마, 소수점 아래 처리 관련 HOT 2
- get_market_trading_value_by_investor, get_market_trading_volume_by_investor HOT 2
- KRX 종목별 주가 수정주가 옵션 추가 HOT 3
- get_etf_ohlcv_by_date 지연 문의 HOT 1
- ETF 개별종목의 일자별 데이터 오류 HOT 8
- ValueError: could not convert string to float: '-' HOT 7
- get_market_cap 오류 HOT 2
- ModuleNotFoundError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pykrx.