adapter

package
v0.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)
}

Adapter captures the common broker adapter surface.

type Options

type Options struct {
	TokenManager    tokencache.Manager
	OrderContextDir string
	Logger          *slog.Logger
}

Options configures broker adapter internals.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL