mm

package
v0.0.0-...-6adf9c3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LPConfig         = "lp"
	ChainConfig      = "multichain"
	FeeConfig        = "fee"
	PriceProviderUrl = "priceprovider.url"
	RfqServerUrl     = "rfqserver.url"
	RfqServerApikey  = "rfqserver.apikey"
	RequestSigner    = "requestsigner"
	MMConfig         = "mm"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetPrice

type AssetPrice struct {
	Symbol string `json:"symbol,omitempty"`
	//ChainIds     []uint64 `json:"chainIds,omitempty"`
	Price        uint32 `json:"price,omitempty"`
	ExtraPower10 uint32 `json:"extraPower10,omitempty"`
}

type ExampleMM

type ExampleMM struct {
	*rfqmm.Server
	DefaultLiqProvider *rfqmm.DefaultLiquidityProvider
	Client             rfqproto.MMApiClient
}

func NewExampleMM

func NewExampleMM() *ExampleMM

type ExamplePriceProvider

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

func NewExamplePriceProvider

func NewExamplePriceProvider(url string) *ExamplePriceProvider

func (*ExamplePriceProvider) GetPrice

func (pp *ExamplePriceProvider) GetPrice(token *common.Token) (float64, error)

func (*ExamplePriceProvider) StopUpdatePrice

func (pp *ExamplePriceProvider) StopUpdatePrice()

func (*ExamplePriceProvider) UpdatePrice

func (pp *ExamplePriceProvider) UpdatePrice()

type Price

type Price struct {
	//UpdateEpoch uint64        `json:"updateEpoch,omitempty"`
	AssetPrice []*AssetPrice `json:"assetPrice,omitempty"`
}

Jump to

Keyboard shortcuts

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