types

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	General *num.Uint
	Margin  *num.Uint
	Bond    *num.Uint
}

func (Balance) Total

func (b Balance) Total() *num.Uint

type Key

type Key struct {
	Pub     string `json:"pub"`
	Algo    string `json:"algo"`
	Tainted bool   `json:"tainted"`
	Meta    []Meta `json:"meta"`
}

type MarketData

type MarketData struct {
	StaticMidPrice *num.Uint
	MarkPrice      *num.Uint
	TargetStake    *num.Uint
	SuppliedStake  *num.Uint
	TradingMode    vega.Market_TradingMode
}

type Meta

type Meta struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type PauseSignal

type PauseSignal struct {
	From  string
	Pause bool
}

type Shape

type Shape struct {
	Sells []*vega.LiquidityOrder
	Buys  []*vega.LiquidityOrder
}

Shape is the top level definition of a liquidity shape.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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