Description Usage Arguments Value Author(s) References See Also Examples
This function can be used to download the ticker from BitBay market through the public API.
1 | bitbay_ticker(pair = "BTC/EUR")
|
pair |
a character string with a pair. Available pairs: combinations of "BTC", "ETC", "LSK", "LTC", "GAME" "DASH" "BCC" and "PLN", "EUR", "USD", "BTC". They have to be separated by "/". |
A named vector with following statistics:
max
is the rate of transaction, which had highest value
min
is the rate of transaction, which had lowest value
bid
is the most profitable rate of active purchase orders
ask
is the most profitable rate of active sell orders
vwap
is the weighted average from last 24 hours
average
is the average rate of 3 best sell orders
volume
is the number of shares traded during last 24 hours
Michal Majka
BitBay: https://bitbay.net/en/home
BitBay Public API: https://bitbay.net/en/api-publiczne
bitbay_orderbook
, bitbay_trades
,
bitbay_trades_from_date
, bitbay_profit
,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ticker_BTC_USD <- bitbay_ticker(pair = "BTC/USD")
ticker_BTC_USD
attr(ticker_BTC_USD, "pair")
attr(ticker_BTC_USD, "download_time")
ticker_BTC_EUR <- bitbay_ticker(pair = "BTC/EUR")
ticker_BTC_EUR
attributes(ticker_BTC_EUR)[c("pair", "download_time")]
ticker_LSK_PLN <- bitbay_ticker(pair = "LSK/PLN")
ticker_LSK_PLN
attributes(ticker_LSK_PLN)[4:5]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.