api/v2/multi-tickers - Litecoin

This endpoint returns fiat rate tickers for a comma-separated list of Unix timestamps in a single request.

Parameters

ParameterTypeLocationRequiredDescription
timestampstringqueryYesComma-separated Unix timestamps
currencystringqueryNoFiat currency code

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd')

print(response.json())

Response

json[
    {
        "ts": 1789603200,
        "rates": {
            "usd": 51.65524
        }
    },
    {
        "ts": 1789690200,
        "rates": {
            "usd": 53.971443
        }
    }
]

Response Parameters

FieldTypeDescription
tsintegerTimestamp of the rate actually returned for that entry
ratesobjectRates keyed by currency code

Results are returned in the same order as the requested timestamps. Each ts is the timestamp of the closest available rate, so it will usually differ from the value requested.

Use Cases

  • Backfilling: Fetch rates for many past transactions in one call
  • Reporting: Build a rate series for a statement period
  • Efficiency: Replace repeated single-timestamp lookups

Error Handling

HTTP StatusMessageDescription
400Bad requestThe timestamp list is missing or malformed
403ForbiddenMissing or invalid ACCESS-TOKEN
500Internal errorThe indexer failed to read rate data