Documentation
¶
Overview ¶
Package kiwoom exposes the public Kiwoom Securities adapter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileTokenManager ¶
func NewFileTokenManager() tokencache.Manager
NewFileTokenManager creates a Kiwoom file-backed token manager.
func NewFileTokenManagerWithDir ¶
func NewFileTokenManagerWithDir(dir string) tokencache.Manager
NewFileTokenManagerWithDir creates a Kiwoom file-backed token manager with a fixed directory.
Types ¶
type Adapter ¶
type Adapter interface {
adapter.Adapter
CallEndpoint(ctx context.Context, method, path, apiID string, request any) (any, error)
}
Adapter is the public Kiwoom adapter contract.
type Continuation ¶ added in v0.28.0
type Continuation = specs.Continuation
Continuation carries Kiwoom's cont-yn and next-key headers.
type EndpointPage ¶ added in v0.28.0
type EndpointPage = specs.EndpointPage
EndpointPage returns endpoint data together with continuation headers.
type PageCaller ¶ added in v0.28.0
type PageCaller interface {
CallEndpointPage(ctx context.Context, method, path, apiID string, request any, continuation Continuation) (*EndpointPage, error)
}
PageCaller is an optional extension implemented by the built-in adapter. Existing custom implementations of Adapter remain source-compatible.
Click to show internal directories.
Click to hide internal directories.