summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/commodity.h b/src/commodity.h
index c15a32f0..c678293e 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -86,7 +86,6 @@ public:
struct history_t
{
history_map prices;
- ptime last_lookup;
void add_price(commodity_t& source,
const datetime_t& date,
@@ -332,6 +331,15 @@ public:
// Methods related to parsing, reading, writing, etc., the commodity
// itself.
+ static optional<path> price_db;
+ static long download_leeway;
+ static bool download_quotes;
+
+ static optional<price_point_t> parse_commodity_price(char * line);
+
+ optional<price_point_t>
+ download_quote(const optional<commodity_t&>& commodity = none) const;
+
static void parse_symbol(std::istream& in, string& symbol);
static void parse_symbol(char *& p, string& symbol);
static string parse_symbol(std::istream& in) {