Hi
Ok pleased you have sorted it.
just for info regarding pw_
pw_3_sel_name for example will give name of selection that placed third in the last market that was settled before the current market. was wondering if you could use something like that for the place winners.
"Getting the information about winners in the previous market
You can access the information about the selections (horses, teams, players) that won in the last market that was settled earlier than the market you're currently in.
Use prefix pw_[number of winner]_ for that purpose.
For example, to know the name of the horse that took first place in the previous settled horse race, write pw_1_sel_name. If no markets have been settled yet, or these markets are not present in "My Markets" list, this will return 0, otherwise it'll return the name of the winning selection.
If there was more than one winner in the event (such as in place markets), you case use a different index to get the parameters of the second, third place etc.
pw_2_last_traded - this will get you the last traded price of the horse that took the second place.
Please note that this information can only be available in Settled markets."