It's used as a metaphor to imply using varied strategies, not actual 'tricks' from a book. During the negotiations, he tried every trick in the book to seal the deal.
Pro Tip 2/3
Negative Connotation
Often suggests desperation or dishonesty in someone's actions. The salesman used every trick in the book to convince us, but we saw through his tactics.
Pro Tip 3/3
Not Literal
There isn't an actual 'book of tricks'; it's expressing using all available methods. She used every trick in the book to win the game, even the most unexpected ones.