What are your return values? I sometimes get -1 for some reason when a valid value exists. Show some code.
It's a multi-step process. First it must get the contracts for your specs and then request data for each contract. It all works so the issues are in your software.