Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Download 'Kontoauszug' from 'Analyse'-Tab #2

Closed
beyse opened this issue Jan 14, 2021 · 1 comment
Closed

Feature Request: Download 'Kontoauszug' from 'Analyse'-Tab #2

beyse opened this issue Jan 14, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@beyse
Copy link

beyse commented Jan 14, 2021

From the Wikifolio-Website it is possible to download two sorts of CSV files for a given portfolio. The feature is available in the Tab "Analyse". A user can enter a start date and a end date and then klick a button to download the price (on a daily basis) and the account statement (Kontoauszug). I understand that obtaining the price of the portfolio on a daily basis is already covered in this API, however downloading the account statement is not to the best of my knowledge. The account statement lists with great details all trades including the exact quantity, time of day, execution price and fee for a given stock order and also the amount of cash in the portfolio before and after the trade. I do believe this is a very useful feature which can benefit the API and its users.

image

Below is an example of the data in the CSV file.

Datum (UTC) | Beschreibung | ISIN | Änderung Anzahl | Anzahl nachher | Preis | Preis (Brutto) | Änderung Cash | Cash nachher
13.12.2020 23:59 | Zertifikategebühr |   |   |   |   | -109,804 | 685536,405
14.12.2020 08:06 | Wertpapier-Transaktion (Kauf) | DE0006305006 | 20.000,00 | 20.000,00 | 5,030 |   | -100600,000 | 584936,405
14.12.2020 08:20 | Wertpapier-Transaktion (Kauf) | DE0007568578 | 5.000,00 | 15.000,00 | 15,320 |   | -76600,000 | 508336,405
14.12.2020 23:59 | Zertifikategebühr |   |   |   |   | -109,966 | 508226,439
15.12.2020 16:26 | Wertpapier-Transaktion (Kauf) | DE0007568578 | 5.000,00 | 20.000,00 | 15,500 |   | -77500,000 | 430726,439

Your opinion on this topic is very much appreciated, good Sir.

@RienNeVaPlus RienNeVaPlus added the enhancement New feature or request label Jan 14, 2021
@RienNeVaPlus RienNeVaPlus self-assigned this Jan 14, 2021
@RienNeVaPlus
Copy link
Owner

// v0.3.2
public async download(
    type: 'daily' | 'account-statement' = 'daily',
    from: Date = new Date,
    to: Date = new Date
): Promise<string>

// Kursdaten
await api.wikifolio(...).download('daily')

// Kontoauszug
await api.wikifolio(...).download('account-statement', new Date(2021, 0, 8))

I'm not parsing the response, because it has a different encoding and I don't want to ship large dependencies for a small feature.
However I'm happy to accept PRs if anybody wants to improve this.

jekru added a commit to jekru/wikifolio that referenced this issue Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants