testhelper

package
v0.0.0-...-c0411a1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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