bitbay_ticker: Download ticker from the BitBay crypto-currency exhange

Description Usage Arguments Value Author(s) References See Also Examples

Description

This function can be used to download the ticker from BitBay market through the public API.

Usage

1
bitbay_ticker(pair = "BTC/EUR")

Arguments

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 "/".

Value

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

Author(s)

Michal Majka

References

BitBay: https://bitbay.net/en/home

BitBay Public API: https://bitbay.net/en/api-publiczne

See Also

bitbay_orderbook, bitbay_trades, bitbay_trades_from_date, bitbay_profit,

Examples

 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]

majkamichal/BitBayR documentation built on May 29, 2019, 3:43 a.m.