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 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"` }
Click to show internal directories.
Click to hide internal directories.