Smart rules in trade