You can get the average price and amount of the back bets you placed in the last settled market, as well as the lay bets. See Win/Lose History variables hist_1_backp, hist_1_backa, hist_1_layp, hist_1_laya.
If you execute the trigger in a settled market, then the selection's place should be known at the moment of checking the trigger conditions. Therefore, you can derive the type of winning bet by checking if Selection's Trigger Expression sel_place is greater than 0. The place will be equal to 0 for all losing selections.