orderbook

package
v4.1.23 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Price float32
	Size  int32
}

type OrderBook

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

func NewOrderBook

func NewOrderBook() *OrderBook

func (*OrderBook) Ask

func (ob *OrderBook) Ask(entry Entry)

func (*OrderBook) BBO

func (ob *OrderBook) BBO() (bid, ask Entry)

func (*OrderBook) Bid

func (ob *OrderBook) Bid(entry Entry)

Jump to

Keyboard shortcuts

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