From: Johannes Visintini Date: Tue, 27 Jun 2017 06:50:35 +0000 (+0200) Subject: Fix holdings example (#9) X-Git-Tag: v0.3.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201122f53f6b0f5d7f75e1383fbd6b5181a379d1;p=thirdparty%2Fpython-fints.git Fix holdings example (#9) 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 "", line 1, in 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. --- diff --git a/README.md b/README.md index d3f32b8..74390dc 100644 --- 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.