Skip to main content

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

Overview of the scraper

Scraper overviewCoinMarketCap::LastPriceCoinMarketCap::LastPrice – CoinMarketCap store scraper. Collects token name and current price in USD.

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

Saving results is possible in the form and structure you need, thanks to the built-in powerful Template Toolkit templating engine, 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

You must specify CoinMarketCap Slugs as queries, for example:

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

Output results examples

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

Default output

Result format:

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

Result example:

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

Dump results to JSON

Common result format:

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

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

obj.json %]

Initial text:

[

Final text:

]

Result example:

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

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

Possible settings