Creating a simple command line project in Kotlin that fetches data from CoinbaseAPI
relatively new to Kotlin and wanted to get some practice in. I am trying to create a simple command-line project that consumes the CoinbaseAPI. I want to be able to input a Currency Code, i.e. USD, EUR and once a user inputs the currency, I want to query the Coinbase public API using that currency.
Here’s what I have so far
main.kt
@Serializable
@OptIn(kotlinx.serialization.ExperimentalSerializationApi::class)
data class ExchangeRates(val data: Map)
@Serializable...