Learn R Programming

xlm (version 0.1.1)

price: Gets the current XLM price.

Description

Make a call to the Binance API and get the current XLM market price.

Usage

price(currency = "USDT", live = FALSE)

Arguments

currency

character - current pairings are USD, ETH, BTC and BNB. USD is worked out indirectly via BTC with two API calls.

live

boolean - if true, a while loop will continuously get the latest price and print it to the screen.

Value

numeric

Examples

Run this code
# NOT RUN {
price("USD")
# }

Run the code above in your browser using DataLab