fill

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFeedDisabled = errors.New("fill feed disabled")

ErrFeedDisabled is an error that indicates the fill feed is disabled

Functions

This section is empty.

Types

type Data

type Data struct {
	ID            string
	Timestamp     time.Time
	Exchange      string
	AssetType     asset.Item
	CurrencyPair  currency.Pair
	Side          order.Side
	OrderID       string
	ClientOrderID string
	TradeID       string
	Price         float64
	Amount        float64
}

Data defines fill data

type Fills

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

Fills is used to hold data and methods related to fill dissemination

func (*Fills) Setup

func (f *Fills) Setup(fillsFeedEnabled bool, c chan interface{})

Setup sets up the fill processor

func (*Fills) Update

func (f *Fills) Update(data ...Data) error

Update disseminates fill data through the data channel if so configured

Jump to

Keyboard shortcuts

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