Created
October 31, 2025 15:03
-
-
Save ahouts/e2adc5a4a9241bbf42c448d81d248c60 to your computer and use it in GitHub Desktop.
Finding the most recent fee trade for a portfolio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| portfolio.trades() | |
| .stream() | |
| .filter(trade -> trade instanceof Fee) | |
| .max(Comparators.comparing(Trade::date)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment