public final class FfbDepotUtils extends Object
The json api will give german numbers and dates, so there are two internal conversion methods. There can be multiple depots with the same number, so we provide a method to get the sum of all depots.
| Modifier and Type | Method and Description |
|---|---|
static String |
convertDateRangeToGermanDateRangeString(java.time.LocalDate from,
java.time.LocalDate until) |
static BigDecimal |
getGesamtBestand(MyFfbResponse myFfbResponse,
FfbDepotNummer depotnummer)
Ermittelt den Gesamtbestand für ein bestimmtes Depot.
|
public static BigDecimal getGesamtBestand(MyFfbResponse myFfbResponse, FfbDepotNummer depotnummer)
Hintergrund dieser Funktion ist, dass ein Depotlogin durchaus auf mehrere FFB-Depots Zugriff hat. Diese Funktion iteriert über alle Depots, die in diesem Login verfügbar sind, und ermittelt dessen Gesamtdepotwert.
myFfbResponse - Das Ergebnis der FfbMobileClient.fetchAccountData()-Methode.depotnummer - Die Depotnummer, für die der Depotbestand abgefragt werden soll. Ein Login
kann ggf. mehrere Depots sehen.public static String convertDateRangeToGermanDateRangeString(java.time.LocalDate from, java.time.LocalDate until)
Copyright © 2018. All rights reserved.