Compare sentiment metrics across multiple crypto assets using Messari’s Sentiment API
1. Instantiate Client
First, instantiate the MessariSDK
from@messari/sdk-ts
. You’ll need to provide your API key during initialization or set it as an
environment variable.
2. Fetch Sentiment Data
Next, use the client.signal.v0.sentiment.list()
method to
retrieve sentiment data for all tracked assets. You can sort the results
by market cap, rank, or combined sentiment using the sort
parameter.
For specific assets, you can either filter the results from the list
endpoint or use the
client.signal.v0.sentiment.assets.retrieve()
method with a specific
asset ID.
3. Compare Results
The response contains various sentiment metrics for each asset:
You can compare these metrics across assets to identify opportunities, such as assets with improving sentiment despite stagnant prices, or extreme sentiment conditions that might signal potential market reversals.
For more details on available sentiment endpoints and metrics, see theSentiment API documentation.