Added History price callculation