{"action":"opened","issue":{"url":"https://api.github.com/repos/milktrader/Quandl.jl/issues/91","labels_url":"https://api.github.com/repos/milktrader/Quandl.jl/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/milktrader/Quandl.jl/issues/91/comments","events_url":"https://api.github.com/repos/milktrader/Quandl.jl/issues/91/events","html_url":"https://github.com/milktrader/Quandl.jl/issues/91","id":120647103,"number":91,"title":"to change quandlget() to accept any AbstractString, and not only ASCIIString.","user":{"login":"cndesantana","id":5500983,"avatar_url":"https://avatars.githubusercontent.com/u/5500983?v=3","gravatar_id":"","url":"https://api.github.com/users/cndesantana","html_url":"https://github.com/cndesantana","followers_url":"https://api.github.com/users/cndesantana/followers","following_url":"https://api.github.com/users/cndesantana/following{/other_user}","gists_url":"https://api.github.com/users/cndesantana/gists{/gist_id}","starred_url":"https://api.github.com/users/cndesantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cndesantana/subscriptions","organizations_url":"https://api.github.com/users/cndesantana/orgs","repos_url":"https://api.github.com/users/cndesantana/repos","events_url":"https://api.github.com/users/cndesantana/events{/privacy}","received_events_url":"https://api.github.com/users/cndesantana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-06T17:30:29Z","updated_at":"2015-12-06T17:30:29Z","closed_at":null,"body":"After some discussions at julia-users list (https://groups.google.com/forum/#!topic/julia-users/_J9-6CeACW8) I was suggested to create this issue.\r\n\r\nI am using the function quandlget(id::ASCIIString) and everything works fine when I use it in a straightforward way:\r\n\r\njulia> mydat = quandl(\"GOOG/NASDAQ_GOOG\",rows=100,format=\"DataFrame\")\r\n100x6 DataFrames.DataFrame\r\n| Row | Date       | Open   | High   | Low    | Close  | Volume    |\r\n|-----|------------|--------|--------|--------|--------|-----------|\r\n| 1   | 2015-07-08 | 521.05 | 522.73 | 516.11 | 516.83 | 1.2967e6  |\r\n| 2   | 2015-07-09 | 523.12 | 523.77 | 520.35 | 520.68 | 1.84235e6 |\r\n| 3   | 2015-07-10 | 526.29 | 532.56 | 525.55 | 530.13 | 1.95668e6 |\r\n\r\nor when I do:\r\n\r\njulia> myid = \"GOOG/NASDAQ_GOOG\"\r\n\"GOOG/NASDAQ_GOOG\"\r\n\r\njulia> typeof(myid)\r\nASCIIString\r\n\r\njulia> mydat = quandl(myid,rows=100,format=\"DataFrame\")\r\n100x6 DataFrames.DataFrame\r\n| Row | Date       | Open   | High   | Low    | Close  | Volume    |\r\n|-----|------------|--------|--------|--------|--------|-----------|\r\n| 1   | 2015-07-08 | 521.05 | 522.73 | 516.11 | 516.83 | 1.2967e6  |\r\n| 2   | 2015-07-09 | 523.12 | 523.77 | 520.35 | 520.68 | 1.84235e6 |\r\n| 3   | 2015-07-10 | 526.29 | 532.56 | 525.55 | 530.13 | 1.95668e6 |\r\n\r\n\r\nHowever, I get an error when I read my data from an external file. Assume I have an ascii file containing only one line:\r\n\r\n$ echo \"GOOG/NASDAQ_GOOG\" > portfolio.txt\r\n\r\n$ cat portfolio.txt\r\nGOOG/NASDAQ_GOOG\r\n\r\nI just read the content of this file by using readdlm and try to use it to call the same function quandl, but it does not work.\r\n\r\njulia> myportfolio = readdlm(\"./portfolio.txt\",'\\n')\r\n1x1 Array{Any,2}:\r\n \"GOOG/NASDAQ_GOOG\"\r\n\r\njulia> typeof(myportfolio[1])\r\nSubString{ASCIIString}\r\n\r\njulia> mydat = quandl(myportfolio[1],rows=100,format=\"DataFrame\")\r\nERROR: MethodError: `quandlget` has no method matching quandlget(::SubString{ASCIIString})\r\n\r\nThe easiest way I found to solve this problem was to call a \"cast\" of myportfolio[1] to ASCIIString, like this:\r\n\r\njulia> mydat = quandl(ASCIIString\r\n       (myportfolio[1]),rows=100,format=\"DataFrame\")\r\n\r\nWARNING: deprecated syntax \"ASCIIString (\".\r\nUse \"ASCIIString(\" instead.\r\n100x6 DataFrames.DataFrame\r\n| Row | Date       | Open   | High   | Low    | Close  | Volume    |\r\n|-----|------------|--------|--------|--------|--------|-----------|\r\n| 1   | 2015-07-09 | 523.12 | 523.77 | 520.35 | 520.68 | 1.84235e6 |\r\n| 2   | 2015-07-10 | 526.29 | 532.56 | 525.55 | 530.13 | 1.95668e6 |\r\n| 3   | 2015-07-13 | 532.88 | 547.11 | 532.4  | 546.55 | 2.20648e6 |\r\n\r\nHowever, I think a good solution could be to change the quandl function to accept any AbstracStstring, and not only ASCIIString as a parameter. Would it be possible?\r\n\r\nThanks! "}}