Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileTokenManager ¶
func NewFileTokenManager() tokencache.Manager
NewFileTokenManager creates a KIS file-backed token manager.
func NewFileTokenManagerWithDir ¶
func NewFileTokenManagerWithDir(dir string) tokencache.Manager
NewFileTokenManagerWithDir creates a KIS 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, trID string, request interface{}) (interface{}, error)
BootstrapSymbols(ctx context.Context) (int, error)
ReloadSymbols(ctx context.Context) (int, error)
}
Adapter is the public KIS adapter contract.
type Options ¶
type Options struct {
TokenManager tokencache.Manager
OrderContextDir string
}
Options configures KIS adapter internals.
Click to show internal directories.
Click to hide internal directories.