Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MakingFormula ¶
type MakingFormula interface { SpotPrice(spotPriceOpts interface{}) (spotPrice decimal.Decimal, err error) OutGivenIn(outGivenInOpts interface{}, amountIn decimal.Decimal) (amountOut decimal.Decimal, err error) InGivenOut(inGivenOutOpts interface{}, amountOut decimal.Decimal) (amountIn decimal.Decimal, err error) }
MakingFormula defines the interface for implementing the formula to derive the spot price
func NewBalancedReservedFormula ¶ added in v1.0.0
func NewBalancedReservedFormula() MakingFormula
func NewPluggableFormula ¶ added in v1.0.0
func NewPluggableFormula() MakingFormula
Click to show internal directories.
Click to hide internal directories.