Skip to main content

a package to get KRX stock code using data.go.kr API

Project description

getkrxcode

공공데이터포탈 금융위원회_KRX상장종목정보 API를 사용해 한국 거래소(KRX) 상장 기업의 종목 코드를 조회하는 프로젝트입니다. 최신 상장 기업 정보를 자동으로 가져와 금융 데이터 분석이나 애플리케이션 개발에 활용할 수 있도록 돕습니다.

Retrieve KRX-listed company stock codes using the official data.go.kr API

This project retrieves stock codes for companies listed on the Korea Exchange (KRX) using the official API provided by data.go.kr. It simplifies accessing financial data by automating the retrieval process, ensuring that users have up-to-date information on KRX-listed companies for further analysis or integration into financial applications.

사용법 use guide

  1. 먼저 https://www.data.go.kr/data/15094775/openapi.do 에서 서비스 키를 발급 받으세요
  1. 발급 받은 서비스 키를 project.py가 있는 폴더에 serviceKey.txt라는 파일에 저장하세요
  • store your service key in a txt file called serviceKey.txt in the same folder as project.py

주요 기능 functions

  • read_service_key_from_text
  • fetch_stock_by_name
  • fetch_code_by_name
  • fetch_all_listings

Video Demo: <URL HERE>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getkrxcode-0.1.2.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

getkrxcode-0.1.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file getkrxcode-0.1.2.tar.gz.

File metadata

  • Download URL: getkrxcode-0.1.2.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for getkrxcode-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b72e53af1aa363f84c297dd46e790cc9e5d3c444bcbce73da247a10472e019a9
MD5 008cb7de36e6860f50b8ad23e219fd49
BLAKE2b-256 708eccae7b041ee4c3b0163203ebae94f57643ee429cdae46ea696b03c4f1476

See more details on using hashes here.

File details

Details for the file getkrxcode-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: getkrxcode-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for getkrxcode-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33c071548193e96f0e03ce819149d5b92f8510cb7d6c235c197880119a3ad532
MD5 7f9fdfad30894a294a365372d07117bf
BLAKE2b-256 893fcf8c972c35eb245d5198e7313ddc7d1e6eb4055ac50349a764df905d7f72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page