flip

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deal

func Deal(r *maker.Request, f *core.Flip) error

func Dent

func Dent(r *maker.Request, c *core.Collateral, f *core.Flip, lot decimal.Decimal) error

func From

func From(r *maker.Request, flips core.FlipStore) (*core.Flip, error)

func HandleBid

func HandleBid(
	collaterals core.CollateralStore,
	vaults core.VaultStore,
	flips core.FlipStore,
	wallets core.WalletStore,
) maker.HandlerFunc

func HandleDeal

func HandleDeal(
	collaterals core.CollateralStore,
	flips core.FlipStore,
	wallets core.WalletStore,
) maker.HandlerFunc

func HandleKick

func HandleKick(
	collaterals core.CollateralStore,
	vaults core.VaultStore,
	flips core.FlipStore,
) maker.HandlerFunc

func Kick

func Kick(r *maker.Request, c *core.Collateral, v *core.Vault) (*core.Flip, error)

func Tend

func Tend(r *maker.Request, c *core.Collateral, f *core.Flip, lot decimal.Decimal) error

Types

type BidData

type BidData struct {
	Bid decimal.Decimal `json:"bid,omitempty"`
	Lot decimal.Decimal `json:"lot,omitempty"`
}

type DealData

type DealData struct {
	Bid decimal.Decimal `json:"bid,omitempty"`
	Lot decimal.Decimal `json:"lot,omitempty"`
}

Jump to

Keyboard shortcuts

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