// ToMap converts a *TradeData object to a map
ToMap converts a *TradeData object to a map
// ToMap converts a * TradeData object to a map
func (trade *TradeData) ToMap() map[string]string {
	asMap := make(map[string]string)
	asMap["market_taker"] = trade.MarketTaker
	asMap["price"] = trade.Price
	asMap["amount"] = trade.Amount
	asMap["tid"] = trade.Tid
	asMap["timestamp"] = trade.Timestamp
	asMap["market"] = trade.Market
	cleanMap(&asMap)
	return asMap
}
func ( trade * TradeData ) ToMap ( ) map [ string ] string { asMap := make ( map [ string ] string ) asMap [ " " ] = trade . MarketTaker asMap [ " " ] = trade . Price asMap [ " " ] = trade . Amount asMap [ " " ] = trade . Tid asMap [ " " ] = trade . Timestamp asMap [ " " ] = trade . Market cleanMap ( & asMap ) return asMap }
ToMap converts a *TradeData object to a map
ToMap converts a * TradeData object to a map