Documentation
¶
Overview ¶
Package koreasecurities provides a unified gateway for Korean securities broker APIs.
This module abstracts away the differences between Korean broker REST APIs (KIS, Kiwoom, LS, Toss, etc.) behind a single github.com/smallfish06/krsec/pkg/broker.Broker interface.
Most users will import one of the sub-packages:
- github.com/smallfish06/krsec/pkg/broker — common interface and types
- github.com/smallfish06/krsec/pkg/server — embeddable HTTP server
Or run the standalone server:
krsec -config config.yaml
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kis-specgen
command
|
|
|
kiwoom-specgen
command
|
|
|
krsec
command
|
|
|
ls-specgen
command
|
|
|
openapi-export
command
Command openapi-export writes the krsec OpenAPI spec to a JSON file.
|
Command openapi-export writes the krsec OpenAPI spec to a JSON file. |
|
toss-specgen
command
|
|
|
examples
|
|
|
all-balances
command
Example: fetch balances from every configured account at once.
|
Example: fetch balances from every configured account at once. |
|
custom-broker-server
command
Example: embed the krsec server with a custom in-memory broker.
|
Example: embed the krsec server with a custom in-memory broker. |
|
kis-balance
command
Example: fetch a KIS account balance through the public adapter.
|
Example: fetch a KIS account balance through the public adapter. |
|
kiwoom-balance
command
Example: fetch a Kiwoom account balance through the public adapter.
|
Example: fetch a Kiwoom account balance through the public adapter. |
|
internal
|
|
|
ratelimit
Package ratelimit provides a shared rate limiter for broker API clients.
|
Package ratelimit provides a shared rate limiter for broker API clients. |
|
tools/live_api_smoke
command
|
|
|
pkg
|
|
|
adapter
Package adapter defines shared construction options for broker adapters.
|
Package adapter defines shared construction options for broker adapters. |
|
broker
Package broker defines the common interface and types shared across all broker adapters.
|
Package broker defines the common interface and types shared across all broker adapters. |
|
config
Package config loads and validates krsec YAML configuration.
|
Package config loads and validates krsec YAML configuration. |
|
kis
Package kis exposes the public KIS (Korea Investment & Securities) adapter.
|
Package kis exposes the public KIS (Korea Investment & Securities) adapter. |
|
kis/specs
Package specs holds the generated documented KIS endpoint specs and their shared runtime helpers.
|
Package specs holds the generated documented KIS endpoint specs and their shared runtime helpers. |
|
kiwoom
Package kiwoom exposes the public Kiwoom Securities adapter.
|
Package kiwoom exposes the public Kiwoom Securities adapter. |
|
kiwoom/specs
Package specs holds the generated documented Kiwoom endpoint specs and their shared runtime helpers.
|
Package specs holds the generated documented Kiwoom endpoint specs and their shared runtime helpers. |
|
ls
Package ls exposes the public LS Securities adapter, including realtime.
|
Package ls exposes the public LS Securities adapter, including realtime. |
|
ls/specs
Package specs holds the generated documented LS endpoint specs and their shared runtime helpers.
|
Package specs holds the generated documented LS endpoint specs and their shared runtime helpers. |
|
server
Package server provides a ready-to-use HTTP API server that can be wired with any github.com/smallfish06/krsec/pkg/broker.Broker implementation.
|
Package server provides a ready-to-use HTTP API server that can be wired with any github.com/smallfish06/krsec/pkg/broker.Broker implementation. |
|
token
Package token defines the broker-agnostic access-token manager contract.
|
Package token defines the broker-agnostic access-token manager contract. |
|
toss
Package toss exposes the public Toss Securities adapter.
|
Package toss exposes the public Toss Securities adapter. |
|
toss/specs
Package specs holds the generated documented Toss endpoint specs and their shared runtime helpers.
|
Package specs holds the generated documented Toss endpoint specs and their shared runtime helpers. |
Click to show internal directories.
Click to hide internal directories.