adapter

package
v0.25.0 Latest Latest
Warning

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

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

Documentation

Overview

Package adapter defines shared construction options for broker adapters.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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