-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
종목별 거래량 조회시 investor "연기금등" 데이터 차이.. #115
Comments
아래 코드로 테스트 했습니다. from pykrx import stock
st_date = "20220331"
stock_code = "017810"
df = stock.get_market_trading_volume_by_investor(st_date, st_date, stock_code)
print(df)
print("-" * 20)
print(df.iloc[:-1].sum())
df = stock.get_market_net_purchases_of_equities_by_ticker(st_date,st_date,"ALL","연기금등")
print("-" * 20)
print(df.loc['017810']) |
확인 감사. |
이 부분은 KRX 자체의 오류 인것으로 보입니다. 모듈에서 수정하기 어려워 보입니다. |
역산해서 연기금등 데이터를 재 계산하면 사용하고 있습니다. |
다음은 제가 KRX에 문의를 해서 얻은 받은 답변입니다.
답변이 조금 이상한 것 같아 제가 해석해 본바로는 다음과 같습니다.
참고해 주세요. |
감사합니다. ^^ |
일자별 거래실적 추이 (거래량)
stock.get_market_trading_volume_by_investor(st_date, st_date, stock_code)
투자자별 거래실적 추이 (거래량)
stock.get_market_net_purchases_of_equities_by_ticker(st_date,st_date,"ALL","연기금등")
두 데이터의 "연기금등" 데이터의 차이.
ex) 2022-03-31, 017810 사례
1번함수 ) 매도 5,164, 매수 0 순매수 -5,164
2번함수 ) 매도 32,975 매수 32,975 순매수 0
32,975는 전체 거래량 데이터와 일치.
*. stock.get_market_net_purchases_of_equities_by_ticker(st_date,st_date,"ALL","연기금등")
에서 오류 인듯..
좋은 프로그램 잘 사용하고 있습니다. ^^
The text was updated successfully, but these errors were encountered: