Description Usage Arguments Examples
View source: R/public_ticker_price.R
GET current public ticker price and market data
1 2 3 4 5 6 7 8 | public_ticker_price(
exchange = "binance",
base_asset = "BTC",
quote_asset = "USD",
price_only = TRUE,
dry_run = FALSE,
...
)
|
exchange |
Which exchange to use for price and market data. Choices are "binance", "binance-us", "bitstamp", "bittrex", "coinbase", "coinbase-pro", "crypto.com", "ftx", "ftx-us", "gemini", "huobi", "kraken", "kucoin", and "poloniex". |
base_asset |
Base asset (default BTC) |
quote_asset |
Quote asset (default USD) |
price_only |
If TRUE, only give current price as a numeric vector. If FALSE, give all market data available from API call. |
dry_run |
If TRUE, call httr2::req_dry_run, which shows the API call without actually sending it. |
... |
Query parameters passed to API call |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | public_ticker_price("binance")
public_ticker_price("binance")
public_ticker_price("binance-us")
public_ticker_price("bitstamp")
public_ticker_price("bittrex")
public_ticker_price("coinbase")
public_ticker_price("coinbase-pro")
public_ticker_price("crypto.com")
public_ticker_price("ftx")
public_ticker_price("ftx-us")
public_ticker_price("gemini")
public_ticker_price("huobi")
public_ticker_price("kraken")
public_ticker_price("kucoin")
public_ticker_price("poloniex")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.