price: Gets the current XLM price.

Description Usage Arguments Value Note Examples

Description

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

Usage

1
price(currency = "USD", 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")

froocpu/stellaR documentation built on May 17, 2019, 7:05 p.m.