get_crypto_marketpairs: List all active market pairs

View source: R/currencies.R

get_crypto_marketpairsR Documentation

List all active market pairs

Description

Get a list of all active market pairs that CoinMarketCap tracks for a given cryptocurrency or fiat currency

Usage

get_crypto_marketpairs(
  currency = "USD",
  symbol = NULL,
  id = NULL,
  slug = NULL,
  start = NULL,
  limit = NULL
)

Arguments

currency

currency code - Default is 'USD'

symbol

One or more cryptocurrency symbols. Example: c("BTC","ETH").

id

Alternatively pass one or more CoinMarketCap cryptocurrency IDs. Example: c(1,2)

slug

Alternatively pass a vector of exchange slugs. Example: c("binance","cryptsy")

start

Optionally offset the start (1-based index) of the paginated list of items to return. - Default is 1

limit

Optionally specify the number of results to return. Use this parameter and the "start" parameter to determine your own pagination size.

Value

A dataframe with all active market pairs

Note

A single cryptocurrency "id", "slug", or "symbol" is required.

References

API documentation

See Also

Other Cryptocurrencies: get_crypto_listings(), get_crypto_map(), get_crypto_meta(), get_crypto_ohlcv(), get_crypto_quotes(), get_marketcap_ticker_all(), get_valid_currencies()

Examples

## Not run: 
get_crypto_marketpairs("EUR")
get_crypto_marketpairs("EUR", slug = "bitcoin")
get_crypto_marketpairs("EUR", symbol = "LTC")
get_crypto_marketpairs("EUR", symbol = "BTC", start = 10, limit = 20)

## End(Not run)

coinmarketcapr documentation built on March 18, 2022, 6:19 p.m.