I had not specified any dates for the transactions (I created those at
finance.google.com, not in my code) so I went back and added dates.
Although prior to that, the relevant information was still being
displayed in my portfolio at google.com (returns.. days gain.. etc).
After adding the dates I am still getting the same response
"<gf:positionData gainPercentage='0.0' return1w='0.0' return1y='0.0'
return3m='0.0' return3y='0.0' return4w='0.0' return5y='0.0'
returnOverall='0.0' returnYTD='0.0' shares='396.0'/>".
Request:
http://finance.google.com/finance/feeds/(myemail)/portfolios/1/positions
Do i need to modify the request in some way also?
On Jul 8, 2:24 pm, "Dion Loy (Google)" <dloy+gro...@google.com> wrote:
The returns fields (and also cost basis, days gain, overall gain,
etc..) are all available if your positions have a date associated with
them. Can you double check your code to see if you specified the date
of purchase / sale? That way the returns can be calculated for you.
On Jul 7, 4:31 pm, Brady <mema...@gmail.com> wrote:
I am experimenting with this API on my own portfolio to get familiar
with it but I think I've run into a bug. I have no trouble pulling my
portfolio (only have 1). I then use the positions feed included in
that response to pull the respective positions. However, for all the
stocks returned, the returns attributes (return1w, return 1y, etc) are
0.0 and gain% is 0.0. The only field not blank is the amount of
shares. Is this a bug or am i don't something wrong?
Also as a request: Can you return the costBasis for individual stocks
(this seems to be derived data, referencing previous posts about
licensing)? DaysGain and overallGain would be nice also but this
might have 3rd party issues.