henrydatei / wikifolio-api

A Python API-Wrapper for the unofficial wikifolio API
GNU General Public License v3.0
17 stars 4 forks source link

emission_date, index_level and risk_ever are not working anymore #9

Closed samohtx closed 10 months ago

samohtx commented 11 months ago

Hi, emission_date and index_level are not working anymore always none

There is a typo in:

https://github.com/Property def return_risk_ever(self) -> typing.Optional[float]: return self._get_wikifolio_key_figure(0, 1, "otherKeyRiskIndicators")

should be: https://github.com/Property risk_ever(self) -> typing.Optional[float]: return self._get_wikifolio_key_figure(0, 1, "otherKeyRiskIndicators")

Best regards

henrydatei commented 11 months ago

Emission_date should only return a value other than none if the wikifolio is issued. Not sure about index_level. Do you know any Wikifolio that is issued (so you can invest in it)?

samohtx commented 11 months ago

Emission_date should only return a value other than none if the wikifolio is issued. Not sure about index_level. Do you know any Wikifolio that is issued (so you can invest in it)?

wf000fbt01 issued and ready for investment

same typo in risk_five_years , risk_three_years, risk_one_year

Best regards

henrydatei commented 11 months ago

Thanks for providing the Wikifolio. I looked into it and indeed my Python Wrapper returns None when asked for emission_date and 0 for index_level. This data comes from Wikifolio itself and yes, even when you visit the website this data is missing. No idea what Wikifolio is doing there.

And I already fixed your typos

samohtx commented 11 months ago

for the wikifolio wf000fbt01 index_level and emission_date is available on my side see pictures below.

best regards

image

image

henrydatei commented 11 months ago

Ok but then the data is not coming from the source I thought it came. I'll have a look at this later

henrydatei commented 10 months ago

I looked into it and found where the emission_date is coming from. It should be fixed now. I removed the property index_level because it's nowhere to find. If you need price information you can call get_price_information() on your Wikifolio.

samohtx commented 10 months ago

great. Thx for clarification.

Best regards