bitbay_profit: Perform a theoretical/virtual market order on the BitBay...

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

Description

bitbay_profit function performs a theoretical/virtual market order, where a specified amount of crypto-currency is sold at the current market price.

Usage

1
2
bitbay_profit(pair = "BTC/EUR", amount = 1, fee = 0.003,
  investment = NULL)

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

amount

a numeric vector of length 1 with the amount of the crypto currency to be sold

fee

a numeric vector of length 1 with transaction fee. By default, fee = 0.003 (0.3%)

investment

(optional) a numeric vector of length 1 with the amount of investment

Value

A list with two data frames - transactions and summary. The former contains transactions and the latter summary (amount sold, profit, etc)

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

Examples

1
2
# Sell 1 BTC for USD with fee 0.3% and compute profit (investment = 5000 USD)
bitbay_profit(pair = "BTC/EUR", amount = 1, investment = 5000, fee = 0.003)

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