Skip to content

Commit

Permalink
v2/types.go cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel1984 authored and JacobPlaster committed Aug 24, 2020
1 parent 469743b commit c0c0f1b
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions v2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,6 @@ type bookFrequency string
// BookFrequency provides a typed book frequency.
type BookFrequency bookFrequency

type BalanceInfo struct {
TotalAUM float64
NetAUM float64
/*WalletType string
Currency string*/
}

func NewBalanceInfoFromRaw(raw []interface{}) (o *BalanceInfo, err error) {
if len(raw) < 2 {
return o, fmt.Errorf("data slice too short for balance info: %#v", raw)
}

o = &BalanceInfo{
TotalAUM: convert.F64ValOrZero(raw[0]),
NetAUM: convert.F64ValOrZero(raw[1]),
/*WalletType: convert.SValOrEmpty(raw[2]),
Currency: convert.SValOrEmpty(raw[3]),*/
}

return
}

type BalanceUpdate BalanceInfo

// marginInfoFromRaw returns either a MarginInfoBase or MarginInfoUpdate, since
// the Margin Info is split up into a base and per symbol parts.
func NewMarginInfoFromRaw(raw []interface{}) (o interface{}, err error) {
Expand Down

0 comments on commit c0c0f1b

Please sign in to comment.