Testing
You can test thecbETH
conversion rate by sending an HTTP GET request to the following URL:
https://api.exchange.coinbase.com/wrapped-assets/CBETH/conversion-rate
Response
200 Success
A successful request responds with HTTP status code 200 (OK) and the JSON response body has the following form:amount
field in the response body is the number of ETH2
units that can be exchanged for 1 cbETH
.
429 Failure
This endpoint can be queried at most once a second. If queried more than once a second, the failed request responds with HTTP status code 429 (Too Many Requests) and the JSON response body has the following form:Coinbase recommends that you repeatedly query the API, sleeping 1 second in between queries, to get conversion rate updates (currently updated 1x a day) as soon as possible without exceeding the rate limit.