defaults

package
v0.0.0-...-f6bc33c Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(embeddedModels embed.FS, modelNames []string) map[string]*bytes.Reader

Types

type Unmarshaler

type Unmarshaler struct {
	// contains filtered or unexported fields
}

func NewUnmarshaler

func NewUnmarshaler() *Unmarshaler

func (*Unmarshaler) UnmarshalDataSourceConfig

func (u *Unmarshaler) UnmarshalDataSourceConfig(r io.Reader) (*zetapb.Future, error)

UnmarshalDataSourceConfig unmarshal a future as this is a common parent.

func (*Unmarshaler) UnmarshalFeesConfig

func (u *Unmarshaler) UnmarshalFeesConfig(r io.Reader) (*zetapb.Fees, error)

func (*Unmarshaler) UnmarshalLiquidityMonitoring

func (u *Unmarshaler) UnmarshalLiquidityMonitoring(r io.Reader) (*zetapb.LiquidityMonitoringParameters, error)

func (*Unmarshaler) UnmarshalMarginCalculator

func (u *Unmarshaler) UnmarshalMarginCalculator(r io.Reader) (*zetapb.MarginCalculator, error)

func (*Unmarshaler) UnmarshalPriceMonitoring

func (u *Unmarshaler) UnmarshalPriceMonitoring(r io.Reader) (*zetapb.PriceMonitoringSettings, error)

func (*Unmarshaler) UnmarshalRiskModel

func (u *Unmarshaler) UnmarshalRiskModel(r io.Reader) (*zetapb.TradableInstrument, error)

UnmarshalRiskModel unmarshal a tradable instrument instead of a risk model since gRPC implementation of risk models can't be used with jsonpb.Unmarshaler.

Jump to

Keyboard shortcuts

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