Test file for price database stuff.
More...
Go to the source code of this file.
|
|
string | price_database_example.cur_mnemonic = "EUR" |
| |
|
string | price_database_example.namespace_name = "" |
| |
|
bool | price_database_example.show_prices = True |
| |
|
string | price_database_example.commodity_fullname = "" |
| |
|
string | price_database_example.FILE = "PATH_TO_YOUR_TEST_FILE" |
| |
|
| price_database_example.session = Session(FILE, True, False, False) |
| |
|
| price_database_example.root = session.book.get_root_account() |
| |
|
| price_database_example.book = session.book |
| |
|
| price_database_example.pdb = book.get_price_db() |
| |
|
| price_database_example.comm_table = book.get_table() |
| |
|
| price_database_example.cur = comm_table.lookup("CURRENCY", cur_mnemonic) |
| |
|
| price_database_example.cur_name = cur.get_fullname() |
| |
|
| price_database_example.namespaces = comm_table.get_namespaces_list() |
| |
|
| price_database_example.commodities = comm_table.get_commodities(namespace_name) |
| |
|
| price_database_example.c_fullname = c.get_fullname() |
| |
|
| price_database_example.pl = pdb.get_prices(c,cur) |
| |
|
| price_database_example.source = pr.get_source() |
| |
|
| price_database_example.time = pr.get_time64() |
| |
|
| price_database_example.v = pr.get_value() |
| |
|
| price_database_example.price = float(v.num)/v.denom |
| |
Test file for price database stuff.
- Author
- Mike Evans, Christoph Holtermann, Mark Jenkins
Definition in file price_database_example.py.