3384 Commits

Author SHA1 Message Date
Thomas
e0a4e16ea1 Improve error handling 2021-08-01 00:55:10 +02:00
Valentin Zickner
dc84abdc0a change performance report to portfolio calculator 2021-08-01 00:55:10 +02:00
Valentin Zickner
b031b028f1 add today to getValues 2021-08-01 00:55:10 +02:00
Valentin Zickner
3b7e0a0106 remove unnecessary if condition 2021-08-01 00:55:10 +02:00
Valentin Zickner
ea66081073 move interfaces to separate files 2021-08-01 00:55:10 +02:00
Valentin Zickner
602a770a09 fix typo 2021-08-01 00:55:10 +02:00
Thomas
e522722aa6 Update comment 2021-08-01 00:55:10 +02:00
Valentin Zickner
03ca5d7663 add further tests for portfolio-calculator with one transaction 2021-08-01 00:55:10 +02:00
Valentin Zickner
136563c949 fix single buy test 2021-08-01 00:55:10 +02:00
Thomas
948c45c602 Update test 2021-08-01 00:55:10 +02:00
Thomas
e0be792e46 Re-enable all tests 2021-08-01 00:55:10 +02:00
Thomas
c3d010135f Add test for single buy 2021-08-01 00:55:10 +02:00
Thomas
d6a16a6093 Improve error handling 2021-08-01 00:55:10 +02:00
Valentin Zickner
34c13c80ec add error handling for current positions 2021-08-01 00:55:10 +02:00
Valentin Zickner
f65a108436 change hardcoded timestamp in test to timezone specific 2021-08-01 00:55:10 +02:00
Valentin Zickner
993f066e08 remove console.time statements during portfolio calls 2021-08-01 00:55:10 +02:00
Valentin Zickner
852902d1ab add current position calculation with holding period return calculation 2021-08-01 00:55:10 +02:00
Thomas
ee89822bfe Fix tests 2021-08-01 00:55:10 +02:00
Thomas
e0435e5cad Add name to position 2021-08-01 00:55:10 +02:00
Thomas
e2c23703dc Fix tests 2021-08-01 00:55:10 +02:00
Thomas
1226c26a9d Refactor positions 2021-08-01 00:55:10 +02:00
Valentin Zickner
fdc89f7182 optimize performance of positions endpoint 2021-08-01 00:55:10 +02:00
Thomas
1e368d6e2d Extend type 2021-08-01 00:55:10 +02:00
Valentin Zickner
04e03bd080 add multi-date fetch for current values 2021-08-01 00:55:10 +02:00
Valentin Zickner
66e7ad3fd2 prepare for multi-day database fetch 2021-08-01 00:55:10 +02:00
Thomas
b4dc21dd61 Implement new positions endpoint 2021-08-01 00:55:10 +02:00
Valentin Zickner
8a482e63b9 fix gross performance number type 2021-08-01 00:55:10 +02:00
Valentin Zickner
aabfb39e8f optimize portfolio calculator to fetch all symbols for one day 2021-08-01 00:55:10 +02:00
Valentin Zickner
cdc8faff7f add current position gross performance (percentage) 2021-08-01 00:55:10 +02:00
Valentin Zickner
7b696e39de add sorting and symbol as a result 2021-08-01 00:55:10 +02:00
Valentin Zickner
c88ad2c225 change getValues to multiple symbols 2021-08-01 00:55:10 +02:00
Valentin Zickner
fbc9269abf disable naming convention eslint 2021-08-01 00:55:10 +02:00
Valentin Zickner
cbe079ae66 ignore missing values 2021-08-01 00:55:10 +02:00
Valentin Zickner
8e4ee7feea optimize order loading 2021-08-01 00:55:10 +02:00
Valentin Zickner
f1b3c61675 add additional time measurements 2021-08-01 00:55:10 +02:00
Thomas
24dc312367 Add logs to benchmark 2021-08-01 00:55:10 +02:00
Thomas
7ac7442f73 Declare functions explicitly as public 2021-08-01 00:55:10 +02:00
Thomas
099571437e Extend current rate service with getRange() 2021-08-01 00:55:10 +02:00
Thomas
7dac059a55 Sort imports 2021-08-01 00:55:10 +02:00
Thomas
48fbeda72d Sort imports 2021-08-01 00:55:10 +02:00
Thomas
19007cdc34 Optimize market data query 2021-08-01 00:55:10 +02:00
Thomas
5037393866 Support today in current rate service 2021-08-01 00:55:10 +02:00
Valentin Zickner
ddf24163b4 optimize database query execution for portfolio chart 2021-08-01 00:55:10 +02:00
Valentin Zickner
b26521c4bd add workaround for database date search 2021-08-01 00:55:10 +02:00
Valentin Zickner
cfee6c1ddd add draft integration of new portfolio calculator to chart 2021-08-01 00:55:10 +02:00
Valentin Zickner
19bcd601d1 add gross performance 2021-08-01 00:55:10 +02:00
Valentin Zickner
836df69e68 add calculation of current investment 2021-08-01 00:55:10 +02:00
Valentin Zickner
dd86adcea1 add investment to timeline calculation 2021-08-01 00:55:10 +02:00
Valentin Zickner
4f7628921d add timeline time point calculation 2021-08-01 00:55:10 +02:00
Valentin Zickner
88f0cb095d make it pretty 2021-08-01 00:55:10 +02:00