OFX commands for retrieving pending transactions?

568 Views Asked by At

I am using an OFX download function written in Python similar to ofxclient to download bank and credit card transactions. However, it only retreives posted transactions, not ones that are in progress. This results in the account infomation frequently being out of date by a day or more. I realize these pending transactions could be temporary (holds, etc.) But most of the time they turn into permanent transactions after they post or drop. But is there some different OFX command I can use to request pending transactions, with the understanding that they are subject to change? It is possible to see them from the web site of every financial institution I have tried, but trying to scrape web sites is out of the question and OFX I though was designed to avoid the need for such non-standard procecures.

1

There are 1 best solutions below

0
On

Try the <INCLUDEPENDING> flag; see OFX Spec 2.2 - 2017, page 207.

It defaults to N. So, try:

<INCLUDEPENDING>Y

Note: The backend server must support this feature, which is available with OFX 2.2 (VERSION:220).