The ofx parser now has code to process investment transactions, but it  
doesn't seem to work for stock transactions for me. Dividends and  
interest are handled correctly, but at least the following stock sale  
didn't make it to gnucash's general import transaction matcher  
correctly:

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

<OFX>
<SIGNONMSGSRSV1>
<SONRS>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
<MESSAGE>Success</MESSAGE>
</STATUS>
<DTSERVER>20090120005940</DTSERVER>
<LANGUAGE>ENG</LANGUAGE>
<FI>
<ORG>SomeBroker</ORG>
<FID>5001</FID>
</FI>
</SONRS>
</SIGNONMSGSRSV1>
<INVSTMTMSGSRSV1>
<INVSTMTTRNRS>
<TRNUID>20090120005923.000</TRNUID>
<STATUS>
<CODE>0</CODE>
<SEVERITY>INFO</SEVERITY>
<MESSAGE>zzz Success</MESSAGE>
</STATUS>
<CLTCOOKIE>1</CLTCOOKIE>
<INVSTMTRS>
<DTASOF>20090119054452</DTASOF>
<CURDEF>USD</CURDEF>
<INVACCTFROM>
<BROKERID>somebroker</BROKERID>
<ACCTID>123456789</ACCTID>
</INVACCTFROM>
<INVTRANLIST>
<DTSTART>20090831000000</DTSTART>
<DTEND>20090917000000</DTEND>
<SELLSTOCK>
<INVSELL>
<INVTRAN>
<FITID>4567891230</FITID>
<DTTRADE>20090901122234</DTTRADE>
<MEMO>SELL TRADE</MEMO>
</INVTRAN>
<SECID>
<UNIQUEID>57383T103</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<UNITS>-200</UNITS>
<UNITPRICE>49.6001</UNITPRICE>
<COMMISSION>9.99</COMMISSION>
<FEES>0.26</FEES>
<TOTAL>9909.77</TOTAL>
<SUBACCTSEC>CASH</SUBACCTSEC>
<SUBACCTFUND>CASH</SUBACCTFUND>
</INVSELL>
<SELLTYPE>SELL</SELLTYPE>
</SELLSTOCK>
</INVTRANLIST>
</INVSTMTRS>
</INVSTMTTRNRS>
</INVSTMTMSGSRSV1>
<SECLISTMSGSRSV1>
<SECLIST>
<STOCKINFO>
<SECINFO>
<SECID>
<UNIQUEID>57383T103</UNIQUEID>
<UNIQUEIDTYPE>CUSIP</UNIQUEIDTYPE>
</SECID>
<SECNAME>MARVEL ENTERTAINMENT INC COM</SECNAME>
<TICKER>MVL</TICKER>
</SECINFO>
</STOCKINFO>
</SECLIST>
</SECLISTMSGSRSV1>
</OFX>

The sale shows up as a net -$<TOTAL> looking for a second transaction  
split account, instead of a full transaction split pair having -200  
MVL as the units and commodity for the "foreign" split.

aqbanking 4.1.4 from svn r1748
gwenhywfar 3.10.1 from svn r1590
gnucash trunk from r18311 (Sept. 11, 2009)

Mac OS X 10.6.1

Dave
--
David Reiser
dbrei...@earthlink.net





------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Aqbanking-devel mailing list
Aqbanking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/aqbanking-devel

Reply via email to