Yes, look into the file contract.c and check the source code of dataFromQuandl and dataFromCSV. They do something similar.