api/v2/tickers-list - Zcash

This endpoint returns the currencies for which the indexer has rate data available at a given timestamp.

Parameters

ParameterTypeLocationRequiredDescription
timestampintegerqueryYesUnix timestamp for the requested currency list

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tickers-list/?timestamp=1789700000'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tickers-list/?timestamp=1789700000'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/tickers-list/?timestamp=1789700000')

print(response.json())

Response

json{
    "ts": 1789700100,
    "available_currencies": [
        "aed",
        "ars",
        "aud",
        "bdt",
        "bhd",
        "bmd",
        "brl",
        "btc",
        "cad",
        "chf"
    ]
}

Response Parameters

FieldTypeDescription
tsintegerTimestamp of the rate set actually returned
available_currenciesarrayCurrency codes with rate data at that timestamp

The list is alphabetical and truncated above. At the time of writing the endpoint returns 46 currencies for Zcash, fewer than the 62 returned for Bitcoin, Litecoin, and Dogecoin, so check availability rather than assuming parity with another chain.

Use Cases

  • Currency Pickers: Populate a selector with currencies that actually resolve
  • Validation: Check a currency is supported before requesting a rate

Error Handling

HTTP StatusMessageDescription
400Bad requestA path or query parameter is malformed
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo indexed data exists for the request
500Internal errorThe indexer failed to process the request