From 7de44c0af48da0bd6cf7612f84d8ab31cd3ebe00 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 9 Sep 2024 13:53:00 -0700 Subject: [PATCH] Updated Coinbase API documentation URL --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f53a6b7..e25326e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ # Retrieve cryptocurrencies current (buy, sell or spot) prices -A simple 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.cdp.coinbase.com/coinbase-app/docs/api-prices). ## Examples (TL;DR) @@ -94,7 +94,7 @@ A `CryptoPrice` object is returned defined as follows: ```kotlin CryptoPrice(val base: String, val currency: String, val amount: BigDecimal) ``` -The parameter names match the [Coinbase API](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices). +The parameter names match the [Coinbase API](https://docs.cdp.coinbase.com/coinbase-app/docs/api-prices). #### Format @@ -123,7 +123,7 @@ println(price.toJson()) {"data":{"base":"BTC","currency":"USD","amount":"34567.89"}} ``` -The `data` object matches the [Coinbase API](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-prices). To specify a different (or no) key, use: +The `data` object matches the [Coinbase API](https://docs.cdp.coinbase.com/coinbase-app/docs/api-prices). To specify a different (or no) key, use: ```kotlin println(price.toJson("bitcoin")) @@ -146,7 +146,7 @@ val eth = """{"ether":{"base":"ETH","currency":"USD","amount":"2345.67"}}""".toP ### Extending -A generic `apiCall()` function is available to access other [data API endpoints](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies). For example to retrieve the [exchange rates](https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-exchange-rates#get-exchange-rates): +A generic `apiCall()` function is available to access other [data API endpoints](https://docs.cdp.coinbase.com/coinbase-app/docs/api-currencies). For example to retrieve the [exchange rates](https://docs.cdp.coinbase.com/coinbase-app/docs/api-exchange-rates): ```kotlin apiCall(listOf("exchange-rates"), mapOf("currency" to "usd"))