trademodel/balance.go
2024-06-25 21:52:58 +08:00

20 lines
290 B
Go

package trademodel
import "fmt"
type Currency struct {
Coin string
Base string
}
func (currency Currency) String() string {
return fmt.Sprintf("%s_%s", currency.Coin, currency.Base)
}
type Balance struct {
Currency string
Available float64
Frozen float64
Balance float64
}