4 releases (2 breaking)

0.3.0 Jun 5, 2024
0.2.1 Mar 8, 2024
0.2.0 Jan 15, 2024
0.1.0 Dec 16, 2023

#168 in Finance

Download history 5/week @ 2024-09-20 2/week @ 2024-09-27

266 downloads per month

MIT license

30KB
561 lines

fiocz-rs

A minimal crate used to communicate with Fio bank API.

Functionality

  • Get account movements in period
  • Get account movements since last
  • Get account statement
  • Get last statement id
  • Set last movement id
  • Set last movement date
  • Import transactions
  • | | Get merchant card transactions

lib.rs:

Fio API client

Example

use fiocz_rs::Fio;

#[tokio::main]
async fn main() {
    let fio = Fio::new("token");

   match fio.movements_since_last().await {
      Ok(statement) => {
          println!("Got newest movements containing {} transactions", statement.account_statement.transaction_list.transaction.len())
     }
     Err(e) => {
         println!("Failed to get newest account movements: {:?}", e)
     }
 }
}

Current functionality

  • Get account movements in period
  • Get account movements since last
  • Get account statement
  • Get last statement id
  • Set last movement id
  • Set last movement date
  • Import transactions

Dependencies

~5–16MB
~212K SLoC