Coder Social home page Coder Social logo

Comments (7)

mr-yoo avatar mr-yoo commented on August 14, 2024

.get_market_net_purchases_of_equities_by_ticker는 KRX 웹페이지의 다음 정보를 스크래핑합니다.
어디가 잘못된 것일까요?

image

get_market_trading_volume_by_investor는 다음 데이터를 가져오구요.

  • 웹페이지의 원본 데이터 자체가 조금 이상하긴하네요.
  • 매수 컬럼의 전체 합이 38187이네요

image

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

아래 코드로 테스트 했습니다.

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'])

from pykrx.

WOOJOONSIK avatar WOOJOONSIK commented on August 14, 2024

확인 감사.
df = stock.get_market_trading_volume_by_investor(st_date, st_date, stock_code)
의 연기금등 은 5164
df = stock.get_market_net_purchases_of_equities_by_ticker(st_date,st_date,"ALL","연기금등")
의 매도거래량은 32975로 1번 df의 전체 값으로 나옴.

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

이 부분은 KRX 자체의 오류 인것으로 보입니다. 모듈에서 수정하기 어려워 보입니다.

from pykrx.

WOOJOONSIK avatar WOOJOONSIK commented on August 14, 2024

역산해서 연기금등 데이터를 재 계산하면 사용하고 있습니다.
감사합니다. ^^

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

다음은 제가 KRX에 문의를 해서 얻은 받은 답변입니다.

안녕하십니까?
한국거래소에 대한 귀하의 관심에 감사드립니다.
문의하신 내용에 대한 답변은 다음과 같습니다.
1. 이용자께서 2022.3.31 일자 풀무원에 대한 투자자별 거래실적에서 합계의 오류에 대한 사항을 문의하셨습니다.
이는 기관합계 수량인 5,212주를 중복 합산한 결과 38,187주로 계산된 결과입니다. 기관합계의 의미는 금융투자, 보험, 투신, 사모, 은행, 기타금융, 연기금 등을 합산한 소계의 의미입니다. 기관합계 5,212주에 기관합계 하단의 나머지 투자자에 대한 거래량을 합산한 결과인 27,763주를 더한 32,975주가 맞는 수치입니다. 이점 유의해 주시기 바랍니다.
 
2. 한국거래소 정보데이터시스템을 이용해 주셔서 감사합니다.

답변이 조금 이상한 것 같아 제가 해석해 본바로는 다음과 같습니다.

  • 기관합계가 5,212가 추가로 더해진 것이 32,975로 보입니다.
  • 24 + 24 + 5164를 더한 값이 5212인데 이 값을 전체 합에 한 번 더 더한 결과네요.
  • 즉 웹페이지의 숫자가 잘못된 상태입니다.

참고해 주세요.

from pykrx.

WOOJOONSIK avatar WOOJOONSIK commented on August 14, 2024

감사합니다. ^^

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.