Description Usage Arguments Value Author(s) References See Also Examples
bitbay_profit
function performs a theoretical/virtual market order, where
a specified amount of crypto-currency is sold at the current market price.
1 2 | bitbay_profit(pair = "BTC/EUR", amount = 1, fee = 0.003,
investment = NULL)
|
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 |
A list with two data frames - transactions
and summary
.
The former contains transactions and the latter summary (amount sold, profit, etc)
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.