testhelper

package
v1.59.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertOrdersPriceSide

func AssertOrdersPriceSide(t *testing.T, asserts []PriceSideAssert, orders []types.SubmitOrder)

AssertOrdersPriceSide asserts the orders with the given price and side (slice)

func AssertOrdersPriceSideQuantity

func AssertOrdersPriceSideQuantity(
	t *testing.T, asserts []PriceSideQuantityAssert, orders []types.SubmitOrder,
)

AssertOrdersPriceSide asserts the orders with the given price and side (slice)

func Number

func Number(a interface{}) fixedpoint.Value

Types

type PriceSideAssert

type PriceSideAssert struct {
	Price fixedpoint.Value
	Side  types.SideType
}

type PriceSideQuantityAssert

type PriceSideQuantityAssert struct {
	Price    fixedpoint.Value
	Side     types.SideType
	Quantity fixedpoint.Value
}

Jump to

Keyboard shortcuts

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