CSV import: Automatic detection of share price?


Is there a way to detect automatically the (eg closing) price of a security based on the security historical price data available on PP and the date of the transaction as indicated in the CSV?
So instead of having to explicitly say the price of the security (or the total amount of the transaction), it is taken from the historical prices for that day and security.