Documentation
¶
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 {
broker.Broker
GetOrder(ctx context.Context, orderID string) (*broker.OrderResult, error)
GetOrderFills(ctx context.Context, orderID string) ([]broker.OrderFill, error)
GetInstrument(ctx context.Context, market, symbol string) (*broker.Instrument, error)
CallEndpoint(ctx context.Context, method, path, apiID string, request interface{}) (interface{}, error)
}
Adapter is the public Kiwoom adapter contract.
type Options ¶
type Options struct {
TokenManager tokencache.Manager
OrderContextDir string
}
Options configures Kiwoom adapter internals.
Click to show internal directories.
Click to hide internal directories.