ofx_parser 1.0.0 copy "ofx_parser: ^1.0.0" to clipboard
ofx_parser: ^1.0.0 copied to clipboard

A powerful and robust parser for Open Financial Exchange (OFX) and QFX files in Dart. Converts OFX/QFX data into strongly-typed Dart classes with timezone handling.

ofx_parser #

A robust and powerful Dart package to parse OFX (Open Financial Exchange) and QFX files into strongly-typed Dart classes.

Created and maintained by Jarod Cavalcante. Based on the original ofx package by Francisco Valerio.

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  ofx_parser: ^1.0.0

Usage #

Import package:ofx_parser/ofx_parser.dart.

Using Ofx.fromString is straightforward:

import 'dart:io';
import 'package:ofx_parser/ofx_parser.dart';

Future<void> main() async {
   final contents = await File('file.ofx').readAsString();
   final ofx = Ofx.fromString(contents);
   
   print("Server date: ${ofx.serverLocal}");
   print("Account ID: ${ofx.accountID}");
   print("Balance: ${ofx.balance}");
   print("Parsed ${ofx.transactions.length} transactions.");
}

Features #

  • Parse standard and malformed SGML/XML OFX and QFX files.
  • Built-in timezone local date converters (serverLocal, startLocal, endLocal, postedLocal).
  • Strongly typed properties for FI, Accounts, Status, and Transactions.
  • Lightweight with minimal dependencies.

Contributors #

0
likes
140
points
149
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A powerful and robust parser for Open Financial Exchange (OFX) and QFX files in Dart. Converts OFX/QFX data into strongly-typed Dart classes with timezone handling.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

xml2json

More

Packages that depend on ofx_parser