Implement API into historical price viewer