Continued to build buy function - updates client portfolio correctly