If you check the link I sent, at the bottom you find the actual source code for dataFromQuandl. Just adopt to your need