Handling of trade matrices