Renamed wrapper to key.

This commit is contained in:
Erik C. Thauvin 2021-05-28 00:26:11 -07:00
parent fc861276ef
commit 0eaa067d84
2 changed files with 9 additions and 9 deletions

View file

@ -74,7 +74,7 @@ println(price.toJson())
{"data":{"base":"BTC","currency":"USD","amount":"34567.89"}}
```
The format matches the [Coinbase API](https://developers.coinbase.com/api/v2#get-spot-price). To specify a different (or no) object wrapper, use:
The `data` object matches the [Coinbase API](https://developers.coinbase.com/api/v2#get-spot-price). To specify a different (or no) key, use:
```kotlin
println(price.toJson("bitcoin"))