Skip to main content

CoinMarketCap::LastPrice - CoinMarketCap store scraper: token name, current price in USD

Scraper Overview

OverviewCoinMarketCap::LastPriceCoinMarketCap::LastPrice – CoinMarketCap store scraper. It collects the token name and current price in USD.

A-Parser functionality allows you to save the scraper settings of CoinMarketCap::LastPrice for future use (presets), set a scraping schedule, and much more.

Saving results is possible in the form and structure that you need, thanks to the built-in powerful templating engine Template Toolkit which allows you to apply additional logic to the results and output data in various formats, including JSON, SQL, and CSV.

Collected Data

  • Currency name
  • Currency symbol
  • Current price in USD

Queries

As queries, you need to specify the CoinMarketCap Slug, for example:

bitcoin
bnb
green-satoshi-token-bsc
...

Output Results Options

A-Parser supports flexible formatting of results thanks to the built-in templating engine Template Toolkit, which allows it to output results in an arbitrary form, as well as in structured formats, such as CSV or JSON

Default Output

Result format:

$currency($query): \$$price\n

Example of result:

BNB(bnb): $304.73626073939
BTC(bitcoin): $30207.0547397479
GST(green-satoshi-token-bsc): $1.75828189033902

Dump Results to JSON

Общий формат результата:

[% IF notFirst;
",\n";
ELSE;
notFirst = 1;
END;

obj = {};
obj.query = query;
obj.currency = p1.currency;
obj.price = p1.price;

obj.json %]

Начальный текст:

[

Конечный текст:

]

Example of result:

[{"currency":"BTC","query":"bitcoin","price":19066.5547826873}]
tip

To make the "Start text" and "End text" options available in the Task Editor, you need to activate "More options".

Possible Settings