api/v2/tickers/- Bitcoin Cash
Example code for the api/v2/tickers REST method. Complete guide on how to use the api/v2/tickers REST method in the GetBlock Web3 documentation.
Parameters
Parameter
Type
Location
Required
Description
Request
curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/tickers/?currency=usd'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/tickers/?currency=usd'
);
console.log(await response.json());import requests
response = requests.get('https://go.getblock.io/<ACCESS-TOKEN>/api/v2/tickers/?currency=usd')
print(response.json())Response
{
"ts": 1785418362,
"rates": {
"usd": 211.79
}
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Last updated
Was this helpful?