Skip to main content

Simple Python Wrapper for Kiwoom REST API+

Project description

Kiwoom REST API

  • 토큰 만료시 필요에 의해 자동 재발급
import asyncio
from kiwoom import Kiwoom, REAL
from kiwoom.config import candle

bot = Kiwoom(
    host=REAL,
    appkey='path/to/appkey',  # or raw appkey
    secretkey='path/to/secretkey'  # or raw secretkey
)

# Download
code = '005930_AL'  # 거래소 통합코드
df = asyncio.run(
    bot.candle(
        code=code, 
        period='min',   # 'tick' | 'min' | 'day'
        ctype='stock',  # 'stock' | 'sector'
        start='20250801',
        end='',
))
# Save
asyncio.run(candle.to_csv(file=code, path='.', df))

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

kiwoom_restful-0.0.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

kiwoom_restful-0.0.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file kiwoom_restful-0.0.2.tar.gz.

File metadata

  • Download URL: kiwoom_restful-0.0.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for kiwoom_restful-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1ab416c29f9c29e967a6d0ffc16365f5b40381d185e55335a6579c1f9a5577f0
MD5 9e2e67dc429de68e3489968e0071a85d
BLAKE2b-256 f982dc2070623aa07ed54461b8f88d9bab4a4b2f2536ad433d4394208edcb76a

See more details on using hashes here.

File details

Details for the file kiwoom_restful-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kiwoom_restful-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for kiwoom_restful-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5874df871af3c11629c34131896be6c811b351190a520a021aec98d02473f440
MD5 875fd1a49710d8e8c320ff9420dc722c
BLAKE2b-256 8a97db640caf21c14592a45dc64fc2332d4fe99a53f3d30923fb029fd51a3136

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