Stock Pricing and Ticker Symbols

GnuCash provides a somewhat rudimentary automated stock quote gathering system.

If a GnuCash stock account is suitably configured, and the host computer is connected to the Internet, the program gnc-prices may be used to load stock and mutual fund price quotes from various web sites directly into GnuCash.

To make use of this facility, the following must be done:

Code list for European markets
Code Market
PA Paris
BC Barcelona
BE Berlin
BI Bilbao
BR Brême
CO Copenhagen
D Dusseldorf
F Frankfurt
H Hamburg
HA Hanover
L London
MA Madrid
MC Madrid (M.C.)
MI Milan
MU Munich
O Oslo
ST Stockholm
SG Stuttgart
VA Valence
FX Xetra
Pseudo-symbols that can be used for TIAA-CREF quotes.
Name Pseudo-symbol
Stock CREFstok
Money Market CREFmony
Equity Index CREFequi
Inflation-Linked Bond CREFinfb
Bond Market CREFbond
TIAA Real Estate TIAAreal
Social Choice CREFsoci
Teachers PA Stock Index TIAAsndx
Global Equities CREFglob
Teachers PA Select Stock TIAAsele
Growth CREFgrow

A sample image is shown below:
Sample Diagram

To update the prices stored in a gnucash account file, run the command line command gnc-price, specifying the filename; for example:

    gnc-prices myaccts.xac

Running this command will print various diagnostic messages to the screen while it loads data. It will work only when the host computer is attached to the Internet. It can function in conjunction with masquerading-style firewalls and proxy servers.

The command can be run many times in one day; however, it will update the accounts at most once with the most recent trading days price data.

Thus, if gnc-prices is run on Friday, Saturday, Sunday and Monday, only two price entries will be made: one containing Friday's data, and one containing Monday's data, since the Saturday and Sunday runs will only retrieve the Friday closing price.

To keep gnc-prices from updating one account, while allowing it to update another account, merely mark the data source for that account as (none). You can do this from the Edit Account window.

After running gnc-prices for a few days, your accounts will begin to resemble the following:
Later Ticker Listing


Return to Main Documentation Page.