-
\pykrx\website\krx\market\wrap.py
def get_market_fundamental_by_date(fromdate: str, todate: str, ticker:str, market: str="KOSPI") -> DataFrame:
로 되어 있습니다.
def get_market_fundamental_by_date(fro…
-
안녕하세요, 최근에 pykrx를 알게되어 유용하게 사용하는 유저입니다. 다양한 기능이 깔끔하게 설계되어 편하게 사용하고 있습니다. 감사합니다!
### 요청사항
혹시 전종목 주가 조회할 때 전일대비 필드를 추가해주실 수 있을지 문의드립니다.
개별종목에 대한 여러주가를 가져올 때는 이전 종가를 이용해 전일대비를 구할 수 있는데 전 종목의 경우 전날을 …
-
README에 따르면 (T+2)일자의 정보를 제공한다 하였으니 2영업일전일의 공매도 정보는 수집이 가능한걸로 이해하였는데요.
금일 테스트 도중 2영업일전의 공매도 잔고를 잘 가져오다가 자정 12시를 지난 시점부터 empty_dataframe이 나옵니다.
```
# 테스트한 시각 1/9 01:20
df = stock.get_shorting_sta…
-
최근 네이버가 페이지를 수정 이후
해당 데이터를 가져오는게 안되는 걸로 알고 있습니다.
따라서, pd.read_html()로 구현하셨으면 Not found table로 리턴 되더라구요..
혹시 KRX에서 가져오는 자료는 없나요?
asjgi updated
3 years ago
-
문제라고 봐야 할지는 모르겠습니다.
휴장일에 해당하는 market cap 을 요청하면, exception 이 발생합니다.
fetch 된 값이 '-' 로 채워져 있어서,
df = df.astype(np.int64) (pykrx/website\krx\market\wrap.py 151 line 에서 exception 발생합니다.
제가 가지고 있던 …
-
pykrx/stock/api.py의 get_business_days에서 month를 12월 넣으면 오류가 발생합니다.
year 2020, month 12로 입력시,
strt = 20201201
last = 20201301의 값을 get_market_ohlcv_by_date에 입력해서 오류가 나네요.
month를 1~12월로 검증하는 로직이 필…
-
오류메시지는 다음과 같습니다.
module 'pykrx.website.krx' has no attribute 'get_market_trading_value_and_volume_by_ticker'
함수가 없어진 것인지요?
-
장이 열리지 않았을때 krx API 리턴값이 변경된 듯 합니다.
그에 따라 아래와 같은 문제가 발생합니다.
* stock.get_market_ticker_list('2021-01-23')
* 빈값이 아닌 값을 반환
* stock.get_market_ohlcv_by_ticker('2021-01-23')
* ValueError: in…
-
Pycharm에서는 정상동작하지만 JupyterNoteBook에서 에러 메시지 출력
```python
from pykrx import stock
df = stock.get_index_ohlcv_by_date("20200101", "20200831", "코스피")
print(df.head())
```
```text
----------…
-
'3노드디지탈', '코웰이홀딩스', '에스앤씨엔진그룹', '오가닉티코스메틱', '헝셩그룹', '네프로아이티',
'로스웰', '성융광전투자', '차이나그레이트', 'GRT', '윙입푸드', '이스트아시아홀딩스', '컬러레이',
'완리', '웨이포트', '차이나하오란', '연합과기', '범화건설', '중국고섬', '울산실업', '평…