order

package
v0.0.0-...-a5eb945 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fmt

func Fmt(orderID [32]byte) string

Types

type ID

type ID [32]byte

ID is the type of an Order's ID.

type Order

type Order interface {
	Price() *big.Int
	PriceC() *big.Int
	PriceQ() *big.Int
	Volume() *big.Int
	VolumeC() *big.Int
	VolumeQ() *big.Int
	Type() uint8
	Parity() uint8
	MinimumVolume() *big.Int
	MinimumVolumeC() *big.Int
	MinimumVolumeQ() *big.Int
	Expiry() uint64
	Tokens() uint64
	NonceHash() *big.Int
	SendCurrency() uint32
	ReceiveCurrency() uint32
	Trader() []byte
}

Order is the interface of an order.

func NewOrder

func NewOrder(parity, orderType uint8, expiry, tokens uint64, priceC, priceQ, volumeC, volumeQ, minimumVolumeC, minimumVolumeQ, nonceHash *big.Int, trader []byte) Order

NewOrder creates a new order interface

Jump to

Keyboard shortcuts

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