market

package
v0.74.0-preview.7 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: AGPL-3.0 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 CompositePriceOracleConfig added in v0.74.0

type CompositePriceOracleConfig struct {
	Spec    *vegapb.OracleSpec
	Binding *vegapb.SpecBindingForCompositePrice
}

type Config

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

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
	LiquidationStrat    *liquidationConfig
}

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