Skip to content

Comments

feat: 투자자별 매매동향 및 순위 조회 API 추가#84

Open
micael17 wants to merge 1 commit intoSoju06:mainfrom
micael17:feature/add-investor-ranking-apis
Open

feat: 투자자별 매매동향 및 순위 조회 API 추가#84
micael17 wants to merge 1 commit intoSoju06:mainfrom
micael17:feature/add-investor-ranking-apis

Conversation

@micael17
Copy link

신규 API:

  • investor(): 종목별 외국인/기관/개인 순매수 동향 조회
  • ranking_market_cap(): 시가총액 순위 조회
  • ranking_volume(): 거래량 순위 조회
  • ranking_fluctuation(): 등락률 순위 조회

구현 내용:

  • pykis/api/stock/investor.py: 투자자별 매매동향 API (FHKST01010900)
  • pykis/api/stock/ranking.py: 순위 조회 API (FHPST01710000)
  • pykis/kis.py: PyKis 클래스에 메서드 등록

🛠️ PR Summary

🌟 요약

투자자별 매매동향 및 순위 조회 API 4종을 추가했습니다.

📊 주요 변경 사항

  • pykis/api/stock/investor.py 파일을 추가했습니다.
    종목별 외국인/기관/개인 순매수 동향을 조회하는 API입니다. (FHKST01010900)
  • pykis/api/stock/ranking.py 파일을 추가했습니다.
    시가총액/거래량/등락률 순위를 조회하는 API입니다. (FHPST01710000)
  • kis.py에서 PyKis 클래스에 4개 메서드를 등록했습니다.
    investor, ranking_market_cap, ranking_volume, ranking_fluctuation

🎯 목적 및 영향

  • 목적: 왜 이 PR이 필요한가요?
    한국투자증권 API에는 존재하지만 pykis에서 지원하지 않던 기능들을 추가하여 라이브러리 활용도를 높입니다.

  • 영향: 이 변경 사항이 어떤 영향을 미치나요?
    사용자가 투자자별 매매동향과 각종 순위 정보를 pykis를 통해 쉽게 조회할 수 있습니다.

신규 API:
- investor(): 종목별 외국인/기관/개인 순매수 동향 조회
- ranking_market_cap(): 시가총액 순위 조회
- ranking_volume(): 거래량 순위 조회
- ranking_fluctuation(): 등락률 순위 조회

구현 내용:
- pykis/api/stock/investor.py: 투자자별 매매동향 API (FHKST01010900)
- pykis/api/stock/ranking.py: 순위 조회 API (FHPST01710000)
- pykis/kis.py: PyKis 클래스에 메서드 등록

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant