Is there an .afl function to add transactions programatically into an .acx account as they happen? I could not find one in the reference. Do we need to do this manually?
No, there isn't. But since .acx file is plain text xml, you can create it programmatically using ordinary file functions.