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.0.tar.gz (6.2 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.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: getkrxcode-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 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.0.tar.gz
Algorithm Hash digest
SHA256 61e99a296998e0938700bb3829ca89302d8361a5c575edd6fbbda03d0ce5b9ab
MD5 144fd5af5c5fad66eb4073077f6afdd6
BLAKE2b-256 45f9a9ae9ed5307942004c44f08065c3c1a87f7ac4d85037a3ceb8b9887dab95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getkrxcode-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ab75572685651ad416d001dab236c04cbbf3a96bea4f5867507c4a80e0c075
MD5 a7a7733da06f68d1fb21f5e9bf278f93
BLAKE2b-256 868d339055e9918ab64acd2004c72e1633a4cef5f89d02928f7d3288ac1ed8ce

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