Get market sparkline
Misc
Get Sparkline
Retrieves the 24-hour sparkline chart for a given asset. The sparkline is returned as an SVG image by default. You can request a PNG version by adding the query parameter png=true.
GET
Get market sparkline
Query details
Input in “asset” the name of the asset you want to query, or the contract address while adding the blockchain as a second parameter. The market data asset query pattern is explained in great details here, with blockchain format, etc. The default response is a SVG image, if you want a png you can just add a parampng=true to the query.
Usage Examples
- Query by
Asset Address&BlockchainwithPNGoutput and7-daytimeframe:
- Query by
Asset Name&Blockchain:
Query Response
Returns the 24h sparkline url for the given asset.