use curl to execute yahoo api and add history data