Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Swap ¶
type Swap struct {
// contains filtered or unexported fields
}
func (*Swap) SetOtherAccountAmount ¶
func (*Swap) SetPlatformAccountAmount ¶
func (*Swap) SetSwapRate ¶
func (*Swap) ToOtherCurrency ¶
func (*Swap) ToPlatformCurrency ¶
type SwapInterface ¶
type SwapInterface interface { ToPlatformCurrency() float64 ToOtherCurrency() float64 SetSwapRate(float64) SetPlatformAccountAmount(float64) // 筹码 SetOtherAccountAmount(float64) // 其他货币 }
func NewOther ¶
func NewOther(rate, amount float64) SwapInterface
func NewPlatform ¶
func NewPlatform(rate, amount float64) SwapInterface
Click to show internal directories.
Click to hide internal directories.