Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 564 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 564 Bytes

Forex of National Bank of Romania

This is the official Rust library for the National Bank of Romania's Foreign Exchange Reference Rates API.

Usage

let api = forex_nbr::NbrApi::default();
///
// to fetch the latest available rates
let latest = api.latest().await?;
///
// to fetch the last 10 days rates
let last_10_days = api.last_10_days().await?;
///
// to fetch historical rates for a given year
let historical = api.historical(2019).await?;
///