Runs after an agent completes a trade of one good for another. Note that because agent.buy() aliases agent.trade(), this hook will also run when agents buy using the monetary good as well.
Required Parameters
agent — Agent
The agent initiating the trade.
partner — Agent
The trading partner of the agent.
good1 — str
The name of the good being given up (if
amt1>0) or received (ifamt1<0).amt1 — num
The amount of
good1being traded.good2 — str
The name of the good being received (if
amt2>0) or given up (ifamt2<0).amt2 — num
The amount of
good2being traded.
Notes and Examples