GraphQL Query Top 100 Assets
Get the top 100 assets by market capitalization.
The Mobula API provides a powerful GraphQL endpoint that allows you to query and explore data for various assets. This guide will show you how to retrieve the top 100 assets filtered by rank using GraphQL.
What you’ll need
- Access to the Mobula GraphQL endpoint.
- No API key is required for development purposes.
Walkthrough
Set Up Your Query Parameters
You will be querying the assets
table, ordering the results by rank in ascending order, and limiting the results to the top 100 assets.
Perform the GraphQL Request
Execute the GraphQL query using cURL, Axios, or any GraphQL client:
Using cURL:
Using Axios:
Using a GraphQL Client (e.g., Apollo Client):
Analyze the Asset Data
The API response will include detailed information about each asset, such as their name, symbol, rank, price in USD, market capitalization, 24-hour trading volume, and logo.
Sample Response:
Leveraging Asset Data
With this data, you can:
- Display Top Assets: Show the top 100 assets by market capitalization in your app or dashboard.
- Track Market Performance: Monitor the market trends of top assets by observing changes in price, market cap, and volume.
- Build Leaderboards: Create ranked lists of assets for various use cases, such as portfolio tracking or market analysis.
Need Help?
Our support team is available to assist with your queries or integration issues.