price: Gets the current XLM price.

Description Usage Arguments Value Note Examples

View source: R/price.R

Description

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

Usage

1
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

Note

Details of API can be found here: https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md

Examples

1
price("USD")

xlm documentation built on Oct. 23, 2018, 1:04 a.m.

Related to price in xlm...