]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Fix holdings example (#9)
authorJohannes Visintini <github@joker234.de>
Tue, 27 Jun 2017 06:50:35 +0000 (08:50 +0200)
committerRaphael Michel <mail@raphaelmichel.de>
Tue, 27 Jun 2017 06:50:35 +0000 (08:50 +0200)
I didn't had the chance to test it finally, but you will get this error if you want to execute the example:
```
f.get_holdings()
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    f.get_holdings()
TypeError: get_holdings() missing 1 required positional argument: 'account'
```
According to this line https://github.com/raphaelm/python-fints/blob/master/fints/client.py#L168, this should fix the bug.

README.md

index d3f32b8eeb52df5dad96c3592666e403d9cc7263..74390dcfe20da3ca34aede892137d8144280245a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ print([t.data for t in statement])
 # ``data`` property
 
 # for retrieving the holdings of an account:
-holdings = f.get_holdings()
+holdings = f.get_holdings(accounts[0])
 # holdings contains a list of namedtuple values containing ISIN, name,
 # market_value, pieces, total_value and valuation_date as parsed from
 # the MT535 message.