#api #yield #api-bindings #data #back-end #iadb #bank-of-england

iadb-api

Wrapper for Band of England's Statistical Interactive Database (IADB)

3 releases

new 0.1.2 Feb 17, 2025
0.1.1 Feb 16, 2025
0.1.0 Feb 15, 2025

#72 in Finance

Download history 251/week @ 2025-02-12

251 downloads per month

MIT/Apache

120KB
859 lines

IADB API Wrapper

iadb-api is a wrapper for the Band of England's Statistical Interactive Database (IADB). The data can be accessed using specific series codes, most of which are defined in the variants of the SeriesCode enum.

Disclaimer: This crate is an unofficial IADB wrapper, the maintainers of the crate are independent developers. The developers of the crate do not accept any responsibility or liability for the accuracy, security, or completeness of the code, or the information provided within the crate.

Example

use iadb_api::{schemas::IADBSeries, backend::IADB};

#[tokio::main]
async fn main() -> () {

    // Parameters
    let series_code: String = SeriesCode::IUDSOIA.to_string();
    let date_from: String = String::from("01/Jan/2000");
    let date_to: String = String::from("01/Oct/2018");

    // Data collection
    let data: IADBSeries = IADB::get_data(&series_code, &date_from, &date_to).await.unwrap();

    println!("{}", data);

}

General information

If you would like to add a commit or an issue, please do so using the GitHub link to the project:

Dependencies

~7–19MB
~243K SLoC