Topic: Fidelity header

I seem to be getting this header back from Fidelity using ofxget when fetching my brokerage accounts:

<?OFX OFXHEADER="200" VERSION="220" SECURITY="NONE" OLDFILEUID="NONE" NEWFILEUID="e614dec6-9b94-4b65-9e0a-e3bb08316310"?<OFX><SIGNONMSGSRSV1><SONRS><STATUS><CODE>0</CODE><SEVERITY>INFO</SEVERITY><MESSAGE>SUCCESS</MESSAGE></STATUS><DTSERVER>20 [etc...]

The header seems to be missing a closing ">" just before the <OFX> element. As a result, I get a "Can't recognize header" sort of message. I managed to work-around by modifying the regexp in the module that finds/parses the header, but not sure if 1) anyone else is seeing this or 2) if they are, whether Fidelity would be responsive in fixing.

Re: Fidelity header

I am not getting errors with the following header. Hope it helps.

OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:36885736-B3FB-4D02-8D54-7EA1BDA311EF

<OFX>
<SIGNONMSGSRQV1>
<SONRQ>
<DTCLIENT>20180328
<USERID>*REDACTED*
<USERPASS>*REDACTED*
<LANGUAGE>ENG
<FI>
<ORG>nbofx.fidelity.com
<FID>8288
</FI>
<APPID>QWIN
<APPVER>2400
</SONRQ>
</SIGNONMSGSRQV1>
<PROFMSGSRQV1>
<PROFTRNRQ>
<TRNUID>98D83261-B480-4A9F-86D6-FF0A986733ED
<PROFRQ>
<CLIENTROUTING>NONE
<DTPROFUP>19900101
</PROFRQ>
</PROFTRNRQ>
</PROFMSGSRQV1>
</OFX>

Re: Fidelity header

Seems like Fidelity NetBenefits works ok - the response I'm having a problem with is from Fidelity Investments (fidelity.com org). Still looking for the right header - I've tried various app versions and OFX version settings without much luck

Re: Fidelity header

Hmm, are you using this ORG?

<ORG>nbofx.fidelity.com

(I'm not using ofxget)

Re: Fidelity header

Edit: fidelity.com is the correct ORG

Hmm, are you using this ORG?

<ORG>nbofx.fidelity.com

(I'm not using ofxget)

I'll take another look . .

Re: Fidelity header

Here is what I have going out to https://ofx.fidelity.com/ftgw/OFX/clients/download:
OFXHEADER:100
DATA:OFXSGML
VERSION:103
SECURITY:NONE
ENCODING:USASCII
CHARSET:NONE
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:9102c45e-8b13-42c1-99bc-abee6e7dc4f8

<OFX><SIGNONMSGSRQV1><SONRQ><DTCLIENT>20180330132951</DTCLIENT><USERID>*******</USERID><USERPASS>*********</USERPASS><LANGUAGE>ENG</LANGUAGE><FI><ORG>fidelity.com</ORG><FID>7776</FID></FI><APPID>QWIN</APPID><APPVER>2300</APPVER></SONRQ></SIGNONMSGSRQV1><INVSTMTMSGSRQV1><INVSTMTTRNRQ><TRNUID>f0dd0fff-a0a3-4f3c-952a-7592e4544629</TRNUID><INVSTMTRQ><INVACCTFROM><BROKERID>fidelity.com</BROKERID><ACCTID>********</ACCTID></INVACCTFROM><INCTRAN><DTSTART>20180101080000</DTSTART><DTEND>20180228080000</DTEND><INCLUDE>Y</INCLUDE></INCTRAN><INCOO>N</INCOO><INCPOS><INCLUDE>Y</INCLUDE></INCPOS><INCBAL>Y</INCBAL></INVSTMTRQ></INVSTMTTRNRQ></INVSTMTMSGSRQV1></OFX>

Re: Fidelity header

Another try with the versions you used:

OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:NONE
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:07c89d09-9825-4f80-a4cb-b68062c6e2f5

<OFX><SIGNONMSGSRQV1><SONRQ><DTCLIENT>20180330133652</DTCLIENT><USERID>********</USERID><USERPASS>*******</USERPASS><LANGUAGE>ENG</LANGUAGE><FI><ORG>fidelity.com</ORG><FID>7776</FID></FI><APPID>QWIN</APPID><APPVER>2300</APPVER></SONRQ></SIGNONMSGSRQV1><INVSTMTMSGSRQV1><INVSTMTTRNRQ><TRNUID>c6017c24-8a45-4642-a164-b57e7bb23fe6</TRNUID><INVSTMTRQ><INVACCTFROM><BROKERID>fidelity.com</BROKERID><ACCTID>*******</ACCTID></INVACCTFROM><INCTRAN><DTSTART>20180101080000</DTSTART><DTEND>20180228080000</DTEND><INCLUDE>Y</INCLUDE></INCTRAN><INCOO>N</INCOO><INCPOS><INCLUDE>Y</INCLUDE></INCPOS><INCBAL>Y</INCBAL></INVSTMTRQ></INVSTMTTRNRQ></INVSTMTMSGSRQV1></OFX>

Produced what would seem to be another problem in the Fidelity response:
<HTML><HEAD><TITLE>Bad request</TITLE></HEAD><BODY>The element type "SONRQ" must be terminated by the matching end-tag "</SONRQ>".</BODY></HTML>

The SGML going out is well-formed/valid as far as I can tell, yet it complains of a closing tag.

Re: Fidelity header

This is what I have going out https://ofx.fidelity.com:443/ftgw/OFX/clients/download

Also, maybe try <APPVER>2400

9 (edited by robler 2018-04-12 21:03:39)

Re: Fidelity header

These parameters work for me:

header = <?OFX OFXHEADER=\"200\" VERSION=\"211\" SECURITY=\"NONE\" OLDFILEUID=\"NONE\" NEWFILEUID=\"NONE\"?>

url = https://ofx.fidelity.com/ftgw/OFX/clients/download
org = fidelity.com
fid = 7776

brokerid = fidelity.com
appver = 2400

Note that Fidelity transmits and receives in xml not sgml

hope this helps