Check position cost

Is there a way to check an entry cost for an open position? I want to compare cost per share as a condition for a sell request.

Thanks,
Alex.