I know I can loop through trades, but is there a way to loop through the current positions/assets held and their purchase price?

...Thanks...
...Michael...