Commit Graph

8 Commits

Author SHA1 Message Date
tomFlowee 8e0c7c57e6 Follow Streaming::pool() refactor
This upstream refactor stopped passing in the pool by pointer and
now wraps it in a shared_ptr.

A lot less 'address-of' operators and generally cleaner code are
the result.
2023-12-22 16:46:23 +01:00
Calin Culianu ddeac5622f Fix build issues on macOS + clang 2023-10-17 22:02:08 +03:00
tomFlowee 5c25710bbe Avoid work.
Don't load the currency files I'm not actually processing.
2023-05-06 14:32:49 +02:00
tomFlowee 88440a6eff Various fixes in PriceDataHistory
Fixes: #16

* Don't store the initial dummy value '100,-' in the history.
* Don't store the 404 server reply as a price file.
* On switching of currency, instantly try downloading the
historical prices instead of waiting for the next restart.
2023-05-06 12:45:33 +02:00
tomFlowee 697024d823 Fix one more usecase for unknown historical price. 2023-03-13 12:12:42 +01:00
tomFlowee 784ccfbf38 Allow historical date to be accurate
The backend has the historical prices in its database, we ask for it by
timestamp the by default it returns the nearest value. Typically within
24 hours.

But if the database doesn't have the data, or its very inaccurate, this
may casue confusion.
So we now have a new API call that returns zero instead of an inaccurate
historical price. Allowing us to prefer not showing anything over plain
false data.
2023-03-09 22:46:03 +01:00
tomFlowee 5e2e4c1bc4 Fix historical pricing data-state. 2023-02-20 16:20:43 +01:00
tomFlowee 163e615613 Move sources into the src subdir
Slowly the amount of cpp sources has been growing to the point
where its just too much to store in the root of the project.
I think they are more happy in a subdir as well, getting an elevated
position for themselves.
2022-12-13 11:54:03 +01:00