func (m *PrivateOrderstateResponseResult) UnmarshalBinary(b []byte) error {
	var res PrivateOrderstateResponseResult
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
UnmarshalBinary interface implementation
package models
import (
	strfmt "github.com/go-openapi/strfmt"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type PrivateOrderstateResponse struct {
	Result *PrivateOrderstateResponseResult `json:"result"`
}
func (m *PrivateOrderstateResponse) 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 *PrivateOrderstateResponse) 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 *PrivateOrderstateResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
func (m *PrivateOrderstateResponse) UnmarshalBinary(b []byte) error {
	var res PrivateOrderstateResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
type PrivateOrderstateResponseResult struct {
	Adv *bool `json:"adv"`
	API *bool `json:"api"`
	AvgPrice *float64 `json:"avgPrice"`
	Commission *float64 `json:"commission"`
	Created *int64 `json:"created"`
	Direction *string `json:"direction"`
	ExecInst *string `json:"execInst"`
	FilledQuantity *float64 `json:"filledQuantity"`
	Implv *float64 `json:"implv"`
	Instrument *string `json:"instrument"`
	Label *string `json:"label"`
	LastUpdate *int64 `json:"lastUpdate"`
	MaxShow *float64 `json:"max_show"`
	OrderID *float64 `json:"orderId"`
	PostOnly *bool `json:"postOnly"`
	Price *float64 `json:"price"`
	Quantity *float64 `json:"quantity"`
	State *string `json:"state"`
	StopPx *float64 `json:"stopPx"`
	Triggered *bool `json:"triggered"`
	Type *string `json:"type"`
	Usd *float64 `json:"usd"`
}
func (m *PrivateOrderstateResponseResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateAdv(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateAPI(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateAvgPrice(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateCommission(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateCreated(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateDirection(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateExecInst(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateFilledQuantity(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateImplv(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateInstrument(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateLabel(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateLastUpdate(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateMaxShow(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateOrderID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validatePostOnly(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validatePrice(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateQuantity(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateState(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateStopPx(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTriggered(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateType(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateUsd(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateAdv(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"adv", "body", m.Adv); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateAPI(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"api", "body", m.API); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateAvgPrice(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"avgPrice", "body", m.AvgPrice); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateCommission(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"commission", "body", m.Commission); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateCreated(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"created", "body", m.Created); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateDirection(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"direction", "body", m.Direction); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateExecInst(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"execInst", "body", m.ExecInst); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateFilledQuantity(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"filledQuantity", "body", m.FilledQuantity); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateImplv(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"implv", "body", m.Implv); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateInstrument(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"instrument", "body", m.Instrument); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateLabel(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"label", "body", m.Label); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateLastUpdate(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"lastUpdate", "body", m.LastUpdate); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateMaxShow(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"max_show", "body", m.MaxShow); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateOrderID(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"orderId", "body", m.OrderID); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validatePostOnly(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"postOnly", "body", m.PostOnly); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validatePrice(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"price", "body", m.Price); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateQuantity(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"quantity", "body", m.Quantity); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateState(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"state", "body", m.State); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateStopPx(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"stopPx", "body", m.StopPx); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateTriggered(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"triggered", "body", m.Triggered); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateType(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"type", "body", m.Type); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) validateUsd(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"usd", "body", m.Usd); err != nil {
		return err
	}
	return nil
}
func (m *PrivateOrderstateResponseResult) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}