func (cl *OpencxRPC) ViewOrderBook(args ViewOrderBookArgs, reply *ViewOrderBookReply) (err error) {

	cl.Server.LockIngests()
	if reply.SellOrderBook, reply.BuyOrderBook, err = cl.Server.OpencxDB.ViewOrderBook(args.TradingPair); err != nil {
		cl.Server.UnlockIngests()
		return
	}
	cl.Server.UnlockIngests()

	return
}
// ViewOrderBook handles the vieworderbook command
ViewOrderBook handles the vieworderbook command
// ViewOrderBook handles the vieworderbook command
func (cl *OpencxRPC) ViewOrderBook(args ViewOrderBookArgs, reply *ViewOrderBookReply) (err error) {
	cl.Server.LockIngests()
	if reply.SellOrderBook, reply.BuyOrderBook, err = cl.Server.OpencxDB.ViewOrderBook(args.TradingPair); err != nil {
		cl.Server.UnlockIngests()
		return
	}
	cl.Server.UnlockIngests()
	return
}
func ( cl * OpencxRPC ) ViewOrderBook ( args ViewOrderBookArgs , reply * ViewOrderBookReply ) ( err error ) { cl . Server . LockIngests ( ) if reply . SellOrderBook , reply . BuyOrderBook , err = cl . Server . OpencxDB . ViewOrderBook ( args . TradingPair ) ; err != nil { cl . Server . UnlockIngests ( ) return } cl . Server . UnlockIngests ( ) return }
ViewOrderBook handles the vieworderbook command
ViewOrderBook handles the vieworderbook command