markets: Markets

Description Usage Arguments Value Examples

View source: R/coins.R

Description

Use this to obtain all the coins market data (price, market cap, volume)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
markets(
  vs_currency,
  ids,
  category = NA,
  order = "market_cap_desc",
  per_page = 10,
  page = 1,
  sparkline = FALSE,
  price_change_percentage = "24h"
)

Arguments

vs_currency

Character. The target currency of market data (usd, eur, jpy, etc).

ids

Character. The ids of the coin, comma separated crytocurrency symbols (base). refers to /coins/list.

category

Character. filter by coin category. Refer to /coin/categories/list. Default=NA.

order

Character. valid values: market_cap_desc, gecko_desc, gecko_asc, market_cap_asc, market_cap_desc, volume_asc, volume_desc, id_asc, id_desc

per_page

Integer. valid values: 1…250. Total results per page

page

Integer. Page through results

sparkline

Logical. Include sparkline 7 days data (eg. true, false)

price_change_percentage

Include price change percentage in 1h, 24h, 7d, 14d, 30d, 200d, 1y (eg. '1h,24h,7d' comma-separated, invalid values will be discarded)

Value

list.

Examples

1
markets(vs_currency="usd", ids="bitcoin")

SamBuckberry/CoinGeckoR documentation built on Dec. 18, 2021, 12:55 p.m.