market

package
v0.73.0-preview.11 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindType added in v0.73.0

type Binding added in v0.73.0

type Binding interface {
	Descriptor() ([]byte, []int)
	GetSettlementDataProperty() string
	ProtoMessage()
}

type Config

type Config struct {
	RiskModels          *riskModels
	FeesConfig          *feesConfig
	OracleConfigs       *oracleConfigs
	PriceMonitoring     *priceMonitoring
	MarginCalculators   *marginCalculators
	LiquidityMonitoring *liquidityMonitoring
	LiquiditySLAParams  *slaParams
}

func NewMarketConfig

func NewMarketConfig() *Config

type OracleConfig

type OracleConfig[T BindType] struct {
	Spec    *vegapb.OracleSpec
	Binding T
}

type SuccessorConfig added in v0.72.0

type SuccessorConfig struct {
	ParentID            string
	InsuranceFraction   num.Decimal
	PriceMonitoring     *priceMonitoring
	LiquidityMonitoring *liquidityMonitoring
	RiskModels          *riskModels
	PositionDecimals    int64
	Decimals            uint64
	PriceRange          num.Decimal
	LinSlip             num.Decimal
	QuadSlip            num.Decimal
}

func NewSuccessorConfig added in v0.72.0

func NewSuccessorConfig() *SuccessorConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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