This commit is contained in:
Erik C. Thauvin 2021-05-09 22:38:17 -07:00
parent 740e3a9d01
commit b4e37a5877
4 changed files with 9 additions and 4 deletions

View file

@ -21,5 +21,10 @@
<option name="name" value="maven" />
<option name="url" value="https://oss.sonatype.org/content/repositories/snapshots" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenLocal" />
<option name="name" value="MavenLocal" />
<option name="url" value="file:$MAVEN_REPOSITORY$/" />
</remote-repository>
</component>
</project>

View file

@ -9,7 +9,7 @@ A simple Kotlin/Java/Android implementation of the spot price [Coinbase Public A
## Examples (TL;DR)
```kotlin
import net.thauvin.erik.crypto.CryptoPrice
import net.thauvin.erik.crypto.CryptoPrice.Companion.marketPrice
// ...

View file

@ -32,7 +32,7 @@
package net.thauvin.erik.crypto
@Suppress("EmptySecondaryConstructor", "unused")
@Suppress("unused")
class CryptoException : Exception {
var statusCode = NO_STATUS

View file

@ -108,7 +108,7 @@ open class CryptoPrice(val base: String, val currency: String, val amount: Doubl
@JvmStatic
fun main(args: Array<String>) {
listOf("BTC", "BCH", "BSV", "ETH","ETH2","ETC").forEach {
listOf("BTC", "BCH", "BSV", "ETH", "ETH2", "ETC").forEach {
with(marketPrice(it)) {
println("$base: $amount")
}