Skip to main content

bb_gettickers RPC Method

Returns currency rate for the specified currency and date. If the currency is not available for that specific timestamp, the next closest rate will be returned. All responses contain an actual rate timestamp.

Updated on
Nov 17, 2023

bb_gettickers RPC Method

Please note that this RPC method requires the Blockbook RPC add-on enabled on your QuickNode endpoint.

Parameters

timestamp
integer
REQUIRED
Specify a Unix timestamp to retrieve available tickers for that specific time

Returns

result
object
A result object with the following field:
ts
integer
The Unix timestamp (in seconds) indicating the time at which the exchange rates were queried
rates
object
An object containing currency codes as keys and their respective exchange rates against Bitcoin as values. Each exchange rate reflects the value of one Bitcoin in the corresponding currency
aed
integer
Exchange rate for United Arab Emirates Dirham (AED).
ars
integer
Exchange rate for Argentine Peso (ARS).
aud
integer
Exchange rate for Australian Dollar (AUD).
bdt
integer
Exchange rate for Bangladeshi Taka (BDT).
bhd
integer
Exchange rate for Bahraini Dinar (BHD).
bmd
integer
Exchange rate for United States Dollar (USD).
brl
integer
Exchange rate for Brazilian Real (BRL).
btc
integer
Exchange rate for Bitcoin (BTC). This is set to 1, indicating the base currency.
cad
integer
Exchange rate for Canadian Dollar (CAD).
chf
integer
Exchange rate for Swiss Franc (CHF).
clp
integer
Exchange rate for Chilean Peso (CLP).
cny
integer
Exchange rate for Chinese Yuan (CNY).
czk
integer
Exchange rate for Czech Republic Koruna (CZK).
dkk
integer
Exchange rate for Danish Krone (DKK).
eth
integer
Exchange rate for Ethereum (ETH).
eur
integer
Exchange rate for Euro (EUR).
gbp
integer
Exchange rate for British Pound Sterling (GBP).
hkd
integer
Exchange rate for Hong Kong Dollar (HKD).
huf
integer
Exchange rate for Hungarian Forint (HUF).
idr
integer
Exchange rate for Indonesian Rupiah (IDR).
ils
integer
Exchange rate for Israeli New Shekel (ILS).
inr
integer
Exchange rate for Indian Rupee (INR).
jpy
integer
Exchange rate for Japanese Yen (JPY).
krw
integer
Exchange rate for South Korean Won (KRW).
kwd
integer
Exchange rate for Kuwaiti Dinar (KWD).
lkr
integer
Exchange rate for Sri Lankan Rupee (LKR).
mmk
integer
Exchange rate for Myanmar Kyat (MMK).
mxn
integer
Exchange rate for Mexican Peso (MXN).
myr
integer
Exchange rate for Malaysian Ringgit (MYR).
ngn
integer
Exchange rate for Nigerian Naira (NGN).
nok
integer
Exchange rate for Norwegian Krone (NOK).
nzd
integer
Exchange rate for New Zealand Dollar (NZD).
php
integer
Exchange rate for Philippine Peso (PHP).
pkr
integer
Exchange rate for Pakistani Rupee (PKR).
pln
integer
Exchange rate for Polish Złoty (PLN).
rub
integer
Exchange rate for Russian Ruble (RUB).
sar
integer
Exchange rate for Saudi Riyal (SAR).
sek
integer
Exchange rate for Swedish Krona (SEK).
sgd
integer
Exchange rate for Singapore Dollar (SGD).
thb
integer
Exchange rate for Thai Baht (THB).
try
integer
Exchange rate for Turkish Lira (TRY).
twd
integer
Exchange rate for New Taiwan Dollar (TWD).
uah
integer
Exchange rate for Ukrainian Hryvnia (UAH).
usd
integer
Exchange rate for United States Dollar (USD).
vef
integer
Exchange rate for Venezuelan Bolívar (VEF).
vnd
integer
Exchange rate for Vietnamese Đồng (VND).
zar
integer
Exchange rate for South African Rand (ZAR).
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"method": "bb_gettickers", "params": [{"timestamp": 1574346615}]}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free