inventory

package
v0.0.0-...-8fb26ab Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtomicManager

type AtomicManager struct {
	// contains filtered or unexported fields
}

func NewAtomicManager

func NewAtomicManager() *AtomicManager

func (*AtomicManager) Get

func (i *AtomicManager) Get(asset instr.Asset, venue exchange.Exchange) (float64, bool)

func (*AtomicManager) Set

func (i *AtomicManager) Set(update Update)

func (*AtomicManager) Update

func (i *AtomicManager) Update(update Update)

type Manager

type Manager interface {
	Get(instr.Asset, exchange.Exchange) (float64, bool)
	Set(Update)
	Update(Update)
}

type SimpleManager

type SimpleManager struct {
	// contains filtered or unexported fields
}

func NewSimpleManager

func NewSimpleManager() *SimpleManager

func (*SimpleManager) Get

func (i *SimpleManager) Get(asset instr.Asset, venue exchange.Exchange) (float64, bool)

func (*SimpleManager) Set

func (i *SimpleManager) Set(update Update)

func (*SimpleManager) Update

func (i *SimpleManager) Update(update Update)

type Update

type Update struct {
	Asset    instr.Asset
	Exchange exchange.Exchange
	Qty      float64
}

Jump to

Keyboard shortcuts

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