steampipe plugin install kaggrwal/bitfinex

Table: bitfinex_ticker

This includes the ticker data related to particular currency and pairs.

Note: It uses the format "t[Symbol]" (i.e. tBTCUSD, tETHUSD, tBTCUST, ...) for currency pairs and "f[Symbol]" (e.g. fUSD, fBTC, fETH, ...) for funding currencies. To get the the configs/data related to currencies and pairs refer table_bitfinex_currency.

Examples

To get whole ticker data for a symbol

select
*
from
bitfinex_ticker
where
symbol = 'tLTCUSD';

To get Volume for particular pair

select
volume
from
bitfinex_ticker
where
symbol = 'fUSD';

To get the change in price since yesterday for a particular pair

select
daily_change
from
bitfinex_ticker
where
symbol = 'fUSD';

To get all pairs whose ask is between 2 and 10

select
*
from
bitfinex_ticker
where
ask > 2
AND ask < 10;

To get highest price with the pair for the particular day

select
high,
symbol
from
bitfinex_ticker
where
order by
high desc
limit
1;

Schema for bitfinex_ticker

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
askdouble precisionPrice of last lowest ask.
ask_periodbigintAsk period covered in days (funding tickers only).
ask_sizedouble precisionSum of the 25 lowest ask sizes.
biddouble precisionPrice of last highest bid.
bid_periodbigintBid period covered in days (funding tickers only).
bid_sizedouble precisionSum of the 25 highest bid sizes.
daily_changedouble precisionAmount that the last price has changed since yesterday.
daily_change_relativedouble precisionRelative price change since yesterday (*100 for percentage change).
frrdouble precisionFlash Return Rate - average of all fixed rate funding over the last hour (funding tickers only).
frr_amount_availabledouble precisionThe amount of funding that is available at the Flash Return Rate (funding tickers only).
highdouble precisionDaily high.
last_pricedouble precisionPrice of the last trade.
lowdouble precisionDaily low.
symboltext=Symbol for which Ticker Data is requested.
volumedouble precisionDaily volume.