func (m *PublicGetlasttradesResponseResult) UnmarshalBinary(b []byte) error {
	var res PublicGetlasttradesResponseResult
	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 PublicGetlasttradesResponse struct {
	Result *PublicGetlasttradesResponseResult `json:"result"`
}
func (m *PublicGetlasttradesResponse) 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 *PublicGetlasttradesResponse) 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 *PublicGetlasttradesResponse) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
func (m *PublicGetlasttradesResponse) UnmarshalBinary(b []byte) error {
	var res PublicGetlasttradesResponse
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
type PublicGetlasttradesResponseResult struct {
	Direction *string `json:"direction"`
	IndexPrice *string `json:"indexPrice"`
	Instrument *string `json:"instrument"`
	Iv *string `json:"iv"`
	Price *string `json:"price"`
	Quantity *string `json:"quantity"`
	TickDirection *string `json:"tickDirection"`
	TimeStamp *int64 `json:"timeStamp"`
	TradeID *string `json:"tradeId"`
	TradeSeq *string `json:"tradeSeq"`
}
func (m *PublicGetlasttradesResponseResult) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateDirection(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateIndexPrice(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateInstrument(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateIv(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.validateTickDirection(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTimeStamp(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTradeID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTradeSeq(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateDirection(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"direction", "body", m.Direction); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateIndexPrice(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"indexPrice", "body", m.IndexPrice); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateInstrument(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"instrument", "body", m.Instrument); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateIv(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"iv", "body", m.Iv); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validatePrice(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"price", "body", m.Price); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateQuantity(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"quantity", "body", m.Quantity); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateTickDirection(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"tickDirection", "body", m.TickDirection); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateTimeStamp(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"timeStamp", "body", m.TimeStamp); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateTradeID(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"tradeId", "body", m.TradeID); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) validateTradeSeq(formats strfmt.Registry) error {
	if err := validate.Required("result"+"."+"tradeSeq", "body", m.TradeSeq); err != nil {
		return err
	}
	return nil
}
func (m *PublicGetlasttradesResponseResult) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}