trademodel/balance.go

20 lines
290 B
Go
Raw Permalink Normal View History

2024-06-25 13:52:58 +00:00
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
}