|Subject:||Bug in Finance::Quote: TD and Fund Library quote sources don't work|
|Date:||Sat, 15 Nov 2014 18:37:00 -0800|
|To:||bug-Finance-Quote [...] rt.cpan.org|
|From:||Rennie deGraaf <rennie.degraaf [...] gmail.com>|
Hello, The quote sources Cdnfundlibrary, Tdefunds, and Tdwaterhouse don't work and haven't for some months. In all three cases, the URI that Finance::Quote uses seems to be invalid, either returning an error or redirecting to a home page. I did some investigation for TD, and it seems that the following calls can be used to convert from fund symbols (eg, TDB972) to internal ID code (eg, 11), then to obtain quotes for the last year from the ID code: Get Fund code by symbol: $ curl '-H 'Host: graphtdam.tdbank.ca' -H 'Accept: application/json Get fund prices by code: $ curl ' -H 'Host: graphtdam.tdbank.ca' -H 'Accept: text/plain' --data 'appName=TDCT&timeFrame=1&chooseActionForm=2&fundOne=11' I'm using Finance::Quote 1.20 on Fedora 19. Thanks, Rennie deGraaf
Message body not shown because it is not plain text.