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

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

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)
# }