Topic: Getting Historical Position Information (Fidelity Investments)

Hello - I am trying to see what my positions look like as of a specified date. By changing <DTSTART> in <INCTRAN> in the request, I am able to do this for transactions. Applying the same method to <DTASOF> in <INCPOS> does not appear to work for positions. No matter what, the OFX response <DTASOF> is always equal to the current date/time. Is there something wrong in my request, or is this a shortcoming of the Fidelity OFX server? The response below returns transaction information starting 9/1/2011, but position information as of today.

Thanks in advance.

OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:cf57700e7ed04baaa69ec91ac52ba52a



<OFX>
<SIGNONMSGSRQV1>
<SONRQ>
<DTCLIENT>20111012194915
<USERID>xxxxxxxx
<USERPASS>xxxxxx
<LANGUAGE>ENG
<FI>
<ORG>fidelity.com
<FID>7776
</FI>
<APPID>PyOFX
<APPVER>0100
</SONRQ>
</SIGNONMSGSRQV1>
<INVSTMTMSGSRQV1>
<INVSTMTTRNRQ>
<TRNUID>xxxxxxxxxxxxxxxxxxxxxxx
<CLTCOOKIE>xxx
<INVSTMTRQ>
<INVACCTFROM>
<BROKERID>fidelity.com
<ACCTID>xxxxxxxxxxxxx
</INVACCTFROM>
<INCTRAN>
<DTSTART>20110901
<INCLUDE>Y
</INCTRAN>
<INCOO>Y
<INCPOS>
<DTASOF>20110901
<INCLUDE>Y
</INCPOS>
<INCBAL>Y
</INVSTMTRQ>
</INVSTMTTRNRQ>
</INVSTMTMSGSRQV1>
</OFX>

Re: Getting Historical Position Information (Fidelity Investments)

I double checked that <DTASOF> is a valid tag inside of <INCPOS>, and it is.  It is shown in section 13.9.1.1 "Investment Statement Transaction Request <INVSTMTTRNRQ>", pgs 451-452.

<DTASOF> is however not in bold, which means it is optional to support.  I have never tried this, but if this is returning successfully with data except positions are current, then concluding that this is not supported at your broker is highly likely.

See here to get a zipped PDF of the 2.1.1 spec http://www.ofx.net/DownloadPage/Downloads.aspx