ESPN’s Trade Machine is a one-stop shop for figuring out whether deals would work financially. It aggregates current player contracts and utilizes the rules of the NBA’s Collective Bargaining Agreement to determine whether a trade would work under salary-cap regulations and the myriad other restrictions in the CBA. Pistons assistant general manager Sachin Gupta has plenty of experience with the Trade Machine — he created it in 2006 while working for ESPN. At the time, he had no idea that it would become as popular as it has. “It was actually an idea that came from the NBA editor at ESPN, Chris Ramsey, the son of Dr. Jack Ramsey,” Gupta told The Detroit News. “He came to me with the idea and it was a side project from me; it didn’t come from my boss.