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

Uploaded Python 3

File details

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

File metadata

  • Download URL: getkrxcode-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 01479662edc22c63c0c29bcb99f569891b30a9e7fa79d9ee0511845a8ec427ae
MD5 07cd29dca24db6ec0e6dc2871a3ffb6a
BLAKE2b-256 607554a1e326dc049f2c53eca63477df9b3dc98eaa80bf692534fcaa391946b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: getkrxcode-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1747e6274e9eb914293ea8c4ab8e7d970868ddc699bdfe39e594d1a39aeb3aa7
MD5 62dc55f3e99ccf745403866ab1dccfbf
BLAKE2b-256 3a05a4e377f02835f506daed7bb1e9bb1eb3ddfca0ddf3dc96041b00ef274dcc

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