diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index cfd3ca8..d3ae3bd 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -21,5 +21,10 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index d7f0257..6803260 100644
--- a/README.md
+++ b/README.md
@@ -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
// ...
diff --git a/src/main/kotlin/net/thauvin/erik/crypto/CryptoException.kt b/src/main/kotlin/net/thauvin/erik/crypto/CryptoException.kt
index e9fa16f..fa7cc02 100644
--- a/src/main/kotlin/net/thauvin/erik/crypto/CryptoException.kt
+++ b/src/main/kotlin/net/thauvin/erik/crypto/CryptoException.kt
@@ -32,7 +32,7 @@
package net.thauvin.erik.crypto
-@Suppress("EmptySecondaryConstructor", "unused")
+@Suppress("unused")
class CryptoException : Exception {
var statusCode = NO_STATUS
diff --git a/src/main/kotlin/net/thauvin/erik/crypto/CryptoPrice.kt b/src/main/kotlin/net/thauvin/erik/crypto/CryptoPrice.kt
index 21fc4fe..5f3b99c 100644
--- a/src/main/kotlin/net/thauvin/erik/crypto/CryptoPrice.kt
+++ b/src/main/kotlin/net/thauvin/erik/crypto/CryptoPrice.kt
@@ -56,7 +56,7 @@ open class CryptoPrice(val base: String, val currency: String, val amount: Doubl
if (json.has("data")) {
with(json.getJSONObject("data")) {
return CryptoPrice(
- getString("base"), getString("currency"), getString("amount").toDouble()
+ getString("base"), getString("currency"), getString("amount").toDouble()
)
}
} else {
@@ -108,7 +108,7 @@ open class CryptoPrice(val base: String, val currency: String, val amount: Doubl
@JvmStatic
fun main(args: Array) {
- listOf("BTC", "BCH", "BSV", "ETH","ETH2","ETC").forEach {
+ listOf("BTC", "BCH", "BSV", "ETH", "ETH2", "ETC").forEach {
with(marketPrice(it)) {
println("$base: $amount")
}