Skip Menu |

This queue is for tickets about the Finance-Quote CPAN distribution.

Report information
The Basics
Id: 100377
Status: new
Priority: 0/
Queue: Finance-Quote

People
Owner: Nobody in particular
Requestors: rennie.degraaf [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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 'https://graphtdam.tdbank.ca/fundSearch.form?appName=TDCT&language=en&term=TDB972' -H 'Host: graphtdam.tdbank.ca' -H 'Accept: application/json Get fund prices by code: $ curl 'https://graphtdam.tdbank.ca/getFileDownload.form' -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
Download signature.asc
application/pgp-signature 819b

Message body not shown because it is not plain text.