Comments (2)
KRX는 내부적으로 ISIN을 사용하기 때문에 이를 얻기위해 "주식검색기"를 스크래핑 함.
따라서 "상장종목" 페이지의 정보와는 다를 수 있음
"종목검색기"의 정보는 ISIN을 확인한 뒤 일부 데이터를 저장함
- 증권(7)과 사용자 영역 선택해서 저장
df = df[(df.ISIN.str[2] >= '7')]
예를들어 헝셩그룹은 ISIN이 다음과 같다.
HK0000214814
현재 코드에서는 문자열 2번 위치의 값이 조건에 들어오지 않으므로 데이터를 제거한다. 2번 위치는 ISIN의 속성을 의미하며 1부터 Z까지만 사용되는줄 알고 있었으나 0번도 사용될 수 있다. 이와 유사한 형태로 검색되지 않던 티커는 아래와 같다.
900290
900260
900080
900300
900340
900110
900040
900310
900270
from pykrx.
모듈 업데이트
import pykrx
print(pykrx.__version__)
0.1.37
API 동작 확인
from pykrx import stock
tickers = stock.get_market_ticker_list("20190405", market="ALL")
print(len(tickers))
2272
위 코드는 웹 페이지에서 다음과 같이 선택한 것과 같음
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.