PHP script to download historical data from the Canadian Securities Exchange