In that case, the run() function is the same for all trades? Is there an example of code to do that?