func (e *TradingEngine) CloseOrderBook(pairID Hash) (bool, error) {
	tokenPair := e.pairs[pairID]
	if ob, ok := e.orderbooks[tokenPair]; !ok {
		return false, errors.New("Orderbook does not exist")
	} else {
		ob.Done()
		return true, nil
	}
}
// CloseOrderBook closes the orderbook associated to a pair ID
CloseOrderBook closes the orderbook associated to a pair ID
// CloseOrderBook closes the orderbook associated to a pair ID
func (e *TradingEngine) CloseOrderBook(pairID Hash) (bool, error) {
	tokenPair := e.pairs[pairID]
	if ob, ok := e.orderbooks[tokenPair]; !ok {
		return false, errors.New("Orderbook does not exist")
	} else {
		ob.Done()
		return true, nil
	}
}
func ( e * TradingEngine ) CloseOrderBook ( pairID Hash ) ( bool , error ) { tokenPair := e . pairs [ pairID ] if ob , ok := e . orderbooks [ tokenPair ] ; ! ok { return false , errors . New ( " " ) } else { ob . Done ( ) return true , nil } }
CloseOrderBook closes the orderbook associated to a pair ID
CloseOrderBook closes the orderbook associated to a pair ID