Renamed wrapper to key.
This commit is contained in:
parent
fc861276ef
commit
0eaa067d84
2 changed files with 9 additions and 9 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue