func (m *PrivateAccountResponseResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateAvailableFunds(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateAvailableWithdrawalFunds(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateBalance(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateCurrency(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateDeltaTotal(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateEmail(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateEquity(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateFuturesPl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateFuturesSessionRpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateFuturesSessionUpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateInitialMargin(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateMaintenanceMargin(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsDelta(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsGamma(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsPl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsSessionRpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsSessionUpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsTheta(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOptionsVega(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateSessionFunding(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateSessionRpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateSessionUpl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateSystemName(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTfaEnabled(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTotalPl(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateType(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateUsername(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this private account response result
package models
import (
	"encoding/json"
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type PrivateAccountResponse struct {
	Result *PrivateAccountResponseResult `json:"result"`
}
func (m *PrivateAccountResponse) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateResult(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PrivateAccountResponse) validateResult(formats strfmt.Registry) error {
	if err := validate.Required("result", "body", m.Result); err != nil {
		return err
	}
	if m.Result != nil {
		if err := m.Result.Validate(formats); err != nil {
			if ve, ok := err.(*errors.Validation); ok {
				return ve.ValidateName("result")
			}
			return err
		}
	}
	return nil
}
func (m *PrivateAccountResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
func (m *PrivateAccountResponse) UnmarshalBinary(b []byte) error {
	var res PrivateAccountResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
type PrivateAccountResponseResult struct {
	AvailableFunds *float64 `json:"available_funds"`
	AvailableWithdrawalFunds *float64 `json:"available_withdrawal_funds"`
	Balance *float64 `json:"balance"`
	Currency *string `json:"currency"`
	DeltaTotal *float64 `json:"delta_total"`
	DepositAddress string `json:"deposit_address,omitempty"`
	Email *string `json:"email"`
	Equity *float64 `json:"equity"`
	FuturesPl *float64 `json:"futures_pl"`
	FuturesSessionRpl *float64 `json:"futures_session_rpl"`
	FuturesSessionUpl *float64 `json:"futures_session_upl"`
	ID *int64 `json:"id"`
	InitialMargin *float64 `json:"initial_margin"`
	MaintenanceMargin *float64 `json:"maintenance_margin"`
	MarginBalance float64 `json:"margin_balance,omitempty"`
	OptionsDelta *float64 `json:"options_delta"`
	OptionsGamma *float64 `json:"options_gamma"`
	OptionsPl *float64 `json:"options_pl"`
	OptionsSessionRpl *float64 `json:"options_session_rpl"`
	OptionsSessionUpl *float64 `json:"options_session_upl"`
	OptionsTheta *float64 `json:"options_theta"`
	OptionsVega *float64 `json:"options_vega"`
	PortfolioMarginingEnabled bool `json:"portfolio_margining_enabled,omitempty"`
	ProjectedInitialMargin float64 `json:"projected_initial_margin,omitempty"`
	ProjectedMaintenanceMargin float64 `json:"projected_maintenance_margin,omitempty"`
	SessionFunding *float64 `json:"session_funding"`
	SessionRpl *float64 `json:"session_rpl"`
	SessionUpl *float64 `json:"session_upl"`
	SystemName *string `json:"system_name"`
	TfaEnabled *bool `json:"tfa_enabled"`
	TotalPl *float64 `json:"total_pl"`
	Type *string `json:"type"`
	Username *string `json:"username"`
}