Trading positions management system using Rails