quandl / Matlab

Quandl's Matlab module
55 stars 57 forks source link

Search function #1

Closed MatanRubin closed 10 years ago

MatanRubin commented 10 years ago

Hi, Is there a search function coming anytime soon (similar to the search function of the Python package)? This could be very useful because current package requires that users know the exact code that Quandl uses for a specific ticker.

Thanks, Matan

RaymondMcT commented 10 years ago

The only trouble is, matlab does not have native json parsing built in. Making this feature would require users to download another package from mathworks file central. Do you think that's reasonable? It's not as straightforward as in other languages to require packages. At least that I know of. What do you think? On Mar 15, 2014 12:14 PM, "matanaloni" notifications@github.com wrote:

Hi, Is there a search function coming anytime soon (similar to the search function of the Python package)? This could be very useful because current package requires that users know the exact code that Quandl uses for a specific ticker.

Thanks, Matan

Reply to this email directly or view it on GitHubhttps://github.com/quandl/Matlab/issues/1 .

MatanRubin commented 10 years ago

Matlab does have built in XML support that can be used instead of json.

RaymondMcT commented 10 years ago

I created a develop branch with an initial search function. It just returns the top node to the xml.

Quandl.search('oil') is a good test. I have no idea how to use the JAVA api to access the inner workings of the xml file, or know if it's being parsed correctly. I pushed the commit to see if anyone knows how to proceed.

RaymondMcT commented 10 years ago

Search has been added to the develop branch. Right now the function just prints the search results and the output is the raw xml node. That could be converted to some sort of matlab struct if someone wants it but I don't think that's neccessary.