OFX Connection GNUCash to Vanuard and Capital One 360

Yury Perzov yury.perzov at gmail.com
Tue Mar 18 02:04:09 EDT 2014


Hi Tony,

The request you sent is missing the <BROKERID>vanguard.com element. It
needs to be  set in aqbanking setup -> "users" tab -> edit user-> "bank
settings" tab

Here is a successful ofx log in case I missed anything. I did this setup a
while ago...


Sending:
-------------------------------------
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:20140131213210.000
<OFX><SIGNONMSGSRQV1><SONRQ><DTCLIENT>20140131213210.000<USERID>*****
<USERPASS>*****
<LANGUAGE>ENG<APPID>QWIN<APPVER>2200</SONRQ></SIGNONMSGSRQV1><INVSTMTMSGSRQV1><I
NVSTMTTRNRQ><TRNUID>20140131213210.000<CLTCOOKIE>1<INVSTMTRQ><INVACCTFROM><BROKE
RID>vanguard.com<ACCTID>111111</INVACCTFROM><INCTRAN><DTSTART>20140101<DTEN
D>20140131<INCLUDE>Y</INCTRAN><INCOO>Y<INCPOS><DTASOF>20140131213210.000<INCLUDE
>Y</INCPOS><INCBAL>Y</INVSTMTRQ></INVSTMTTRNRQ></INVSTMTMSGSRQV1></OFX>
Received:
-------------------------------------
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:20140131213210.000
<OFX><SIGNONMSGSRSV1><SONRS><STATUS><CODE>0<SEVERITY>INFO<MESSAGE>Successful
Sig
n On</STATUS>

.....

On Mon, Mar 17, 2014 at 6:01 PM, Tony Likhite <tony at likhite.net> wrote:

> On Mon, Mar 17, 2014 at 1:27 AM, Yury Perzov <yury.perzov at gmail.com>
> wrote:
> > To get around the "400 bad request" error, you need to change aqbanking
> > account type  setting.
> ...
> > I ended up compiling aqbanking-5.3.5beta from a tarball and it worked.
>
> The latest AqBanking library doesn't resolve the problem for me. I'm
> getting the same "400 (Bad Request)" error trying to get transactions
> for a Vanguard account. I'm running gnucash from git
> (67d90c90cc14292181a64b5a68cf52979960c052) built against the latest
> aqbanking (5.4.1beta) and gwenhyfwar (4.11.0beta). All other
> dependencies handled by Ubuntu 13.10. Account type is set to to
> "Investment Account" in the AqBanking wizard.
>
> The log window says:
> -----
> AqBanking v5.4.1.0beta
> Sending jobs to the bank(s)
> Locking user xxx
> Sending request...
> Connecting to server...
> Resolving hostname "vesnc.vanguard.com" ...
> IP address is "192.175.191.161"
> Connecting to "vesnc.vanguard.com"
> Connected to "vesnc.vanguard.com"
> Using old SSL preparation code.
> TLS: SSL-Ciphers negotiated: TLS1.2:RSA-ARCFOUR-128:SHA1
> TLS: Warning - The server has chosen unsafe SSL-Ciphers!
> Connected.
> Sending message...
> Message sent.
> Waiting for response...
> Receiving response...
> HTTP-Status: 400 (Bad Request)
> Error parsing server response
> Unlocking user xxx
> Postprocessing jobs
> Job Get Transactions: finished
> Resetting provider queues
>
> And the aqbanking debug log (/tmp/ofx.log) says:
> -----
> Sending:
> -------------------------------------
> OFXHEADER:100
> DATA:OFXSGML
> VERSION:102
> SECURITY:NONE
> ENCODING:USASCII
> CHARSET:1252
> COMPRESSION:NONE
> OLDFILEUID:NONE
> NEWFILEUID:20140317204529.000
>
> <OFX><SIGNONMSGSRQV1><SONRQ><DTCLIENT>20140317204529.000<USERID>xxx
> <USERPASS>xxx
> <LANGUAGE>ENG<FI><ORG>The Vanguard
>
> Group<FID>1358</FI><APPID>QWIN<APPVER>2200</SONRQ></SIGNONMSGSRQV1><INVSTMTMSGSRQV1><INVSTMTTRNRQ><TRNUID>20140317204529.000<CLTCOOKIE>1<INVSTMTRQ><INVACCTFROM><ACCTID>111111111111</INVACCTFROM><INCTRAN><DTSTART>20140301<DTEND>20140317<INCLUDE>Y</INCTRAN><INCOO>Y<INCPOS><DTASOF>20140317204529.000<INCLUDE>Y</INCPOS><INCBAL>Y</INVSTMTRQ></INVSTMTTRNRQ></INVSTMTMSGSRQV1></OFX>
>
> (the response would normally be here in the log, but there isn't one)
> -----
>
> --
> Tony Likhite
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list