Skip to content

Unable to extract transactions from gocardless #124

Description

@jstammers

Hello,
I came across this repo when trying to look for a unified way to pull transactions from various bank accounts into my beancount ledger and was very impressed by this. It looks like it will save me a lot of work!

Initially, I encountered some errors when trying to extract from gocardless using the nordigen Importer.
I first had to modify the base url to "https://bankaccountdata.gocardless.com/".

"https://ob.nordigen.com/api/v2/token/new/",

f"https://ob.nordigen.com/api/v2/accounts/{accountId}/transactions/",

After that, I was able to authenticate and pull my transactions using the API successfully but encountered an issue with certain foreign transactions, e.g

        "currencyExchange": {
            "sourceCurrency": "GBP",
            "exchangeRate": "2.0487",
            "targetCurrency": "AUD"
        },

The importer expects this to contain an "instructedAmount" key, so I modified the following line to handle cases where this does not appear

        if "currencyExchange" in trx and "instructedAmount" in trx

Finally, I noticed when debugging this that I was hitting some rate limits - it seems like it's only possible to query this API 4 times per account per day. Normally, I don't expect this to be an issue but I wonder if it's worth e.g. storing the transaction JSON to disk with a timestamp and loading from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions