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.1a0.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.1a0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file getkrxcode-0.1.1a0.tar.gz.

File metadata

  • Download URL: getkrxcode-0.1.1a0.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.1a0.tar.gz
Algorithm Hash digest
SHA256 abb60333f6f1fa0ec2756b4eae6eff994f7e38a96661d4b08d6dcce206cdc62b
MD5 00e2e8b38173c275fdf47bc5051e9a67
BLAKE2b-256 6e5cbaad324e4d4200492ae000b82f83eea89fd2d71f5d90213d0ab31ec71c58

See more details on using hashes here.

File details

Details for the file getkrxcode-0.1.1a0-py3-none-any.whl.

File metadata

  • Download URL: getkrxcode-0.1.1a0-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.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7f10d958ed967eece710796f6d151572fbc95bafbe26a299e9439f135af92e
MD5 928c4741c5316a1c710c62dd59deb7f8
BLAKE2b-256 099eca27a9cd518ba3040b34e7cbcb7b375502af5204c58d14744b70b1ae12fb

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