func (t *Trade) MarshalJSON() ([]byte, error) {

	trade := map[string]interface{}{
		"orderHash":  t.OrderHash,
		"amount":     t.Amount.String(),
		"tradeNonce": t.TradeNonce.String(),
		"taker":      t.Taker,
		"pairID":     t.PairID,
		"signature": map[string]interface{}{
			"V": t.Signature.V,
			"R": t.Signature.R,
			"S": t.Signature.S,
		},
		"hash": t.Hash,
	}
	return json.Marshal(trade)
}
// MarshalJSON returns the json encoded byte array representing the trade struct
MarshalJSON returns the json encoded byte array representing the trade struct
// MarshalJSON returns the json encoded byte array representing the trade struct
func (t *Trade) MarshalJSON() ([]byte, error) {
	trade := map[string]interface{}{
		"orderHash":  t.OrderHash,
		"amount":     t.Amount.String(),
		"tradeNonce": t.TradeNonce.String(),
		"taker":      t.Taker,
		"pairID":     t.PairID,
		"signature": map[string]interface{}{
			"V": t.Signature.V,
			"R": t.Signature.R,
			"S": t.Signature.S,
		},
		"hash": t.Hash,
	}
	return json.Marshal(trade)
}
func ( t * Trade ) MarshalJSON ( ) ( [ ] byte , error ) { trade := map [ string ] interface { } { " " : t . OrderHash , " " : t . Amount . String ( ) , " " : t . TradeNonce . String ( ) , " " : t . Taker , " " : t . PairID , " " : map [ string ] interface { } { " " : t . Signature . V , " " : t . Signature . R , " " : t . Signature . S , } , " " : t . Hash , } return json . Marshal ( trade ) }
MarshalJSON returns the json encoded byte array representing the trade struct
MarshalJSON returns the json encoded byte array representing the trade struct