trader

package
v0.0.0-...-45105f0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Counters
	// contains filtered or unexported fields
}

func NewController

func NewController(
	tracer trace.Tracer,
	logger *slog.Logger,
	counters Counters,
	client bridge.AlpacaInterface,
	processingTimeout time.Duration,
) *Controller

func (*Controller) Consume

func (c *Controller) Consume(m jetstream.Msg)

type Counters

type Counters struct {
	OrderCreatedCount prometheus.Counter
	OrderFailCount    prometheus.Counter
}

Jump to

Keyboard shortcuts

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