QIF imports and stock ticker symbols

David Hampton hampton@employees.org
Tue, 10 Apr 2001 13:22:48 -0700


Gnucash 1.5.4 doesn't seem to notice the "!Type:Security" section of
my Quicken 2001 QIF file that explicitly lists all the stock
name/ticker symbol pairs.  I'd like to add this so I don't have to go
through fifty pages of specifying individual stock symbols, but I'm
not familiar enough with the code to know where.  I can see where and
how to add code to qif_file.scm to parse the stock/ticker values and
build a set of mappings.  What I can't find yet is where gnucash
parses the pre-loaded qif transactions and creates the actual
gnc-commodity data structures.  This is where I want to add code to
extract the mapping and supply the correct ticker symbol as a default
to the druid page.  Would someone point me to the right section of the
code?  Thanks.

David

P.S.  Yes, I know I will still have to go through the same fifty druid
pages to specify the correct stock exchange, but the more data that is
pre-filled in properly, the easier that is to do.

P.S.  The quif data looks like this:

	!Type:Security
	N3 Com Corp
	SCOMS
	TStock
	^
	NAbbott Laboratories
	SABT
	TStock
	^
	...