Updated dependencies
This commit is contained in:
parent
416a52ec18
commit
1906a24343
8 changed files with 37 additions and 27 deletions
15
README.md
15
README.md
|
@ -1,10 +1,16 @@
|
|||
[](https://opensource.org/licenses/BSD-3-Clause) [](https://github.com/ethauvin/cryptoprice/releases/latest) [](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/cryptoprice) <!-- [](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/cryptoprice/) -->
|
||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||
[](https://kotlinlang.org/)
|
||||
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/cryptoprice/)
|
||||
[](https://github.com/ethauvin/cryptoprice/releases/latest)
|
||||
[](https://maven-badges.herokuapp.com/maven-central/net.thauvin.erik/cryptoprice)
|
||||
|
||||
[](https://sonarcloud.io/dashboard?id=ethauvin_cryptoprice) [](https://github.com/ethauvin/cryptoprice/actions/workflows/gradle.yml) [](https://circleci.com/gh/ethauvin/cryptoprice/tree/master)
|
||||
[](https://sonarcloud.io/dashboard?id=ethauvin_cryptoprice)
|
||||
[](https://github.com/ethauvin/cryptoprice/actions/workflows/gradle.yml)
|
||||
[](https://circleci.com/gh/ethauvin/cryptoprice/tree/master)
|
||||
|
||||
# Retrieve cryptocurrencies current (buy, sell or spot) prices
|
||||
|
||||
A simple Kotlin/Java/Android implementation of the prices [Coinbase Public API](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices).
|
||||
A simple implementation of the prices [Coinbase Public API](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices).
|
||||
|
||||
## Examples (TL;DR)
|
||||
|
||||
|
@ -32,6 +38,7 @@ To use with [Gradle](https://gradle.org/), include the following dependency in y
|
|||
```gradle
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // only needed for SNAPSHOT
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
@ -85,7 +92,7 @@ val euro = CryptoPrice("BTC", "EUR", 23456.78.toBigDecimal())
|
|||
println(euro.toCurrency()) // €23,456.78
|
||||
|
||||
val krone = CryptoPrice("BTC", "DKK", 123456.78.toBigDecimal())
|
||||
println(krone.toCurrency(Locale("da", "DK"))) // 123.456,78 kr.
|
||||
println(krone.toCurrency(Locale.Builder().setLanguage("da").setRegion("DK").build())) // 123.456,78 kr.
|
||||
```
|
||||
|
||||
##### JSON
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue