func (a *AuctionOrder) Price() (price float64, err error) {
	if a.AmountWant == 0 {
		err = fmt.Errorf("The amount requested in the order is 0, so no price can be calculated. Consider it a donation")
		return
	}
	if a.IsBuySide() {
		price = float64(a.AmountWant) / float64(a.AmountHave)
		return
	} else if a.IsSellSide() {
		price = float64(a.AmountHave) / float64(a.AmountWant)
	}
	err = fmt.Errorf("Order is not buy or sell, cannot calculate price")
	return
}
// Price gets a float price for the order. This determines how it will get matched. The exchange should figure out if it can take some of the
Price gets a float price for the order. This determines how it will get matched. The exchange should figure out if it can take some of the
// Price gets a float price for the order . This determines how it will get matched . The exchange should figure out if it can take some of the
func (a *AuctionOrder) Price() (price float64, err error) {
	if a.AmountWant == 0 {
		err = fmt.Errorf("The amount requested in the order is 0, so no price can be calculated. Consider it a donation")
		return
	}
	if a.IsBuySide() {
		price = float64(a.AmountWant) / float64(a.AmountHave)
		return
	} else if a.IsSellSide() {
		price = float64(a.AmountHave) / float64(a.AmountWant)
	}
	err = fmt.Errorf("Order is not buy or sell, cannot calculate price")
	return
}
func ( a * AuctionOrder ) Price ( ) ( price float64 , err error ) { if a . AmountWant == 0 { err = fmt . Errorf ( " " ) return } if a . IsBuySide ( ) { price = float64 ( a . AmountWant ) / float64 ( a . AmountHave ) return } else if a . IsSellSide ( ) { price = float64 ( a . AmountHave ) / float64 ( a . AmountWant ) } err = fmt . Errorf ( " " ) return }
Price gets a float price for the order.
Price gets a float price for the order .