Expand description
§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::{SeriesCode, schemas::IADBSeries, backend::IADB};
#[tokio::main]
async fn main() -> () {
// Parameters
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(&SeriesCode::IUDSOIA, &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:
Re-exports§
pub use self::backend::IADB;
pub use self::schemas::IADBSeries;
pub use self::schemas::IADBDataPoint;
Modules§
Enums§
- Series
Code - Series code that identifies the data series in the Bank of England Database (IADB).