package
0.79.0-preview.4
Repository: https://github.com/vegaprotocol/vega.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.
No description provided by the author

# Functions

CalcOrderMarginIsolatedMode calculates the the order margin required for the party in isolated margin mode given their current orders and margin factor.
CalcOrderMargins calculates the the order margin required for the party given their current orders and margin factor.
No description provided by the author
No description provided by the author
No description provided by the author
NewDefaultConfig creates an instance of the package specific configuration, given a pointer to a logger instance to be used for logging within the package.
NewEngine instantiate a new risk engine.
NewModel instantiate a new risk model from a market framework configuration.

# Constants

No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrNilRiskModel ...
No description provided by the author
ErrUnimplementedRiskModel ...

# Structs

Config represent the configuration of the Risk engine.
Engine is the risk engine.
No description provided by the author
No description provided by the author

# Interfaces

AuctionState represents the current auction state of the market, previously we got this information from the matching engine, but really..
Broker the event bus broker.
Model represents a risk model interface.
Orderbook represent an abstraction over the orderbook.
No description provided by the author
TimeService.