// ToMap converts an order object to a map
ToMap converts an order object to a map
// ToMap converts an order object to a map
func (order *Order) ToMap() map[string]string {
	asMap := make(map[string]string)
	asMap["id"] = order.Id
	asMap["status"] = order.Status
	asMap["type"] = order.Type
	asMap["price"] = order.Price
	asMap["amount_original"] = order.Amount.Original
	asMap["amount_remaining"] = order.Amount.Remaining
	asMap["amount_executed"] = order.Amount.Executed
	asMap["execution_price"] = order.ExecutionPrice
	asMap["avg_execution_price"] = strconv.Itoa(order.AvgExecutionPrice)
	asMap["market"] = order.Market
	asMap["created_at"] = order.CreatedAt
	asMap["updated_at"] = order.UpdatedAt
	asMap["executed_at"] = order.ExecutedAt
	cleanMap(&asMap)
	return asMap
}
func ( order * Order ) ToMap ( ) map [ string ] string { asMap := make ( map [ string ] string ) asMap [ " " ] = order . Id asMap [ " " ] = order . Status asMap [ " " ] = order . Type asMap [ " " ] = order . Price asMap [ " " ] = order . Amount . Original asMap [ " " ] = order . Amount . Remaining asMap [ " " ] = order . Amount . Executed asMap [ " " ] = order . ExecutionPrice asMap [ " " ] = strconv . Itoa ( order . AvgExecutionPrice ) asMap [ " " ] = order . Market asMap [ " " ] = order . CreatedAt asMap [ " " ] = order . UpdatedAt asMap [ " " ] = order . ExecutedAt cleanMap ( & asMap ) return asMap }
ToMap converts an order object to a map
ToMap converts an order object to a map