Most trade machines require the end user to input the players for the potential trade to see if the trade would be “successful” per the NBA’s CBA. My Trade Finder, on the other hand, allows you to find every possible combination of trade possibilities for a particular player based on player and team salaries.
In addition, the Trade Finder can incorporate advanced statistics from Cleaning the Glass and Basketball Reference. This allows a deeper filtering based on team needs.
First, I scrape the player and team salary data points from No Trade Clause that are necessary to determine if a trade satisfies the CBA. The variables required can be found in the collapsible list below.
These variables are then adjusted as needed to calculate incoming and outgoing trade salaries based upon the date of the trade (which can be manipulated in the Trade Finder) and the type of contract the individual Player may have. Below are adjustments made:
The Trade Machine has two different “Perspectives” for populating trade combinations, depending on whether you know who you are trying to acquire, or you know who on your team you are using in a trade.
The Trade Target Perspective - When there is one player a Team wants, and they are looking at every possible combination of players on their roster they could use to obtain that player.
<aside> <img src="/icons/basketball_red.svg" alt="/icons/basketball_red.svg" width="40px" /> Example - Malcolm Brogdon is known to be on the trading block. The Magic are interested in acquiring Brogdon. The Magic use the “Trade Target Perspective” to find every combination of their players they can use to reach the necessary outgoing players required to obtain Brogdon.
</aside>
The Trade Block Perspective - When the Team is looking for a specific type of Player, but want to see what players they could acquire should certain players be put on the “Trade Block.”
<aside> <img src="/icons/basketball_red.svg" alt="/icons/basketball_red.svg" width="40px" /> Example - The Lakers are aware they need more three-point shooting. They are willing to put D’Angelo Russell and Rui Hachimura on the Trade Block to see what player they could receive for their outgoing salary. They could include filters to only find players that shoot a certain percentage, frequency or rank depending on their position
</aside>
If the Targeted Player Perspective is used, the Targeted Player’s data points are inputted into the Trade Finder. At this point, the premade formulas determine the target outgoing salary required to acquire this player using either the Expanded TPE or the Transition TPE.
<aside> <img src="/icons/basketball_red.svg" alt="/icons/basketball_red.svg" width="40px" /> Example - The Targeted Player has $15,000,000 in incoming salary. The total outgoing salary required for the Expanded TPE is $7,500,000 and for the Transition TPE is $13,636,363.64.
</aside>
The targeted outgoing salary is then used to find every combination of players on a team’s current roster that reaches the targeted outgoing salary for each trade exception. Determining whether such exception is available to the team is determine in the filtering process in Step 4 below.