Skip to content

Instantly share code, notes, and snippets.

View seanli1's full-sized avatar

Sean Li seanli1

  • 86 Houses, LLC
  • New York, NY
View GitHub Profile
@seanli1
seanli1 / Coinmarketcap API
Last active March 13, 2021 21:15 — forked from erajanraja24/Coinmarketcap API
Configure Coinmarketcap API on Google sheets
function crypto(coinSymbol) {
var apiKey = "YOUR-API-KEY-HERE";
var url = "https://pro-api.coinmarketcap.com/v1/cryptocurrency/quotes/latest?symbol=" + coinSymbol
var requestOptions = {
method: 'GET',
uri: 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest',
qs: {
start: 1,
limit: 5000,
convert: 'USD'