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

Uploaded Python 3

File details

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

File metadata

  • Download URL: getkrxcode-0.1.1a1.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.1a1.tar.gz
Algorithm Hash digest
SHA256 973c73ffc602efd3b43a6eed6daaf01dac49723e0df04a813320a2a49e557ebd
MD5 bbc749678954b799631cb7bbd1e98a00
BLAKE2b-256 084bd4afe59938f48344c876da3ce1d5bb7c45453264d74b0dd7e0456ffb41d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getkrxcode-0.1.1a1-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.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 487f4f946baf065442d8659bce9a2002bcbd955da8d3a6dbe159550e9cdcc2b2
MD5 eac8e8aa2230858cd2c8eda742b49c46
BLAKE2b-256 b9c2b8dfc1d4215a9e2ec4e1eb88df67e4143b2b81e7589e74d1f0fd4ef4d13f

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