The daily balance is not yet calculated correctly.
My commit of last week for poloniex got merged. No new gem version has been released however. Opened https://github.com/Lowest0ne/poloniex/issues/7 to ask for a new gem version.
When calling gem install rapflag
the poloniex gem version 1.0.0 is installed, whereas bundle install
says Using poloniex 1.0.2 from https://github.com/ngiger/poloniex.git (at master@c777885)
. Therefore rapflag installed via gem install rapflag does not work. Till we get a new version of the poloniex gem we must use bundle exec bin/rapflag
.
The following error in the calculation of the daily balances must be done.
Reason for the errors is that sales/purchases must be changed. Sales/purchases did not take into account the exchange rate.
Pushed commit Fix sales/purchases and use rate for trades. Issue 6 should be fixed if you pull the newest commit and run bundle exec bin/rapflag -p
.
Pushed commits https://github.com/ngiger/rapflag/commit/e3066abb958d43ffd5586ae59c3f7a9c13d473c8 Create also dump files under output/poloniex and https://github.com/ngiger/rapflag/commit/a8559617e7efefb2294c4d93638176b982b150fd Fixed calculation of purchases. Used a + instead of * for rate, which fixed an embarrasing typo.
Pushed commit Calculate balance from start. Added some more fields
Comparing my output with the one given shows that my balance increase slower than the ones to be compared again. Where does these gains stem from?
We must parse the following list, which mention products which are not (or no longer) in stock
Later we must add a status icon red 🚦 with links to the corresponding list in the additional informatin between PI and name of preparation.
For parsing the list we must create a similar plugin as for the comarketing. Looking at the XLSX file from swissmedic. I think we should add the following information into the concerned registration
There is an additional list with just 2 entries for the homeopathic and anthroposophic medicinal products without indication under Swissmedic: No marketing / interruption to distribution of authorized medicines. I think we will just ignore it for the moment.
The drugshortage list the concerned packages with are identified by their GTIN. They list 5 categories
For each package the following information is listed
The element also contain a link to the detailed informaition: Eg. https://www.drugshortage.ch/detail_lieferengpass.aspx?ID=3056. I think this could be probably the only information we need to store as an additional method in the Package class.
Working now first on parsing the drugshortage, as it is the easier target. Here Zeno wants the content of the following fields of the details:
Found an error in the list of drugshortage. The second preparation has an invalid GTIN (only 12 digits) 762860504332 for AEROCHAMBER PLUS inkl.Maske Erwachsene
. Added a jobs/update_drugshortage. Running it locally.