nbp-client
0.1.0indexedFetches exchange rates and gold prices from the NBP API, offering support for exchange rate tables, historical data retrieval, and daily updates with multiplatform compatibility and extensibility.
Fetches exchange rates and gold prices from the NBP API, offering support for exchange rate tables, historical data retrieval, and daily updates with multiplatform compatibility and extensibility.
A Kotlin Multiplatform library for fetching exchange rates and gold prices from the official NBP (Narodowy Bank Polski) API.
This library provides a unified Kotlin API to retrieve data from the publicly available NBP Web API, including:
Built with Kotlin Multiplatform (KMP), it works across:
In your build.gradle.kts:
dependencies {
implementation("com.walczynamike:nbp-client:<version>")
}
During development, you can publish the library locally to test it in other projects without pushing to a remote repository like Maven Central.
Run the following command from your library’s root directory:
./gradlew publishToMavenLocal --no-configuration-cache
This compiles and publishes your KMP library to your local Maven repository (by default: ~/.m2/repository), using a Maven-compatible structure.
On macOS or Linux, the .m2 directory is typically located at:
/Users/<your-username>/.m2/repository/com/walczynamike/nbp-client/<library-version>>/
To test the library in another project (e.g. a sample app), configure the project to look in your local Maven repository.
mavenLocal() to your settings.gradle.kts:dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal() // Enables resolution from local Maven repo
}
}
build.gradle.kts:dependencies {
implementation("com.walczynamike:nbp-client:0.0.1")
}
Surfaced from shared tags and platforms — no rankings paid for.