GnuCash  5.6-150-g038405b370+
Variables

Test file for price database stuff. More...

Go to the source code of this file.

Variables

string priceDB_test.FILE = "PATH_TO_YOUR_TEST_FILE"
 
 priceDB_test.session = Session(FILE, True, False, False)
 
 priceDB_test.root = session.book.get_root_account()
 
 priceDB_test.book = session.book
 
 priceDB_test.pdb = book.get_price_db()
 
 priceDB_test.comm_table = book.get_table()
 
 priceDB_test.gbp = comm_table.lookup("CURRENCY", "SOME_CURRENCY")
 
 priceDB_test.arm = comm_table.lookup("NASDAQ", "SOME_STOCK")
 
 priceDB_test.latest = pdb.lookup_latest(arm,gbp)
 
 priceDB_test.value = latest.get_value()
 
 priceDB_test.pl = pdb.get_prices(arm,gbp)
 
 priceDB_test.source = pr.get_source()
 
 priceDB_test.time = pr.get_time64()
 
 priceDB_test.v = pr.get_value()
 
 priceDB_test.price = float(v.num)/v.denom
 
 priceDB_test.v0 = pl[0].get_value()
 

Detailed Description

Test file for price database stuff.

Author
Mike Evans

Definition in file priceDB_test.py.