Monday, October 27, 2025
No Result
View All Result
Ajoobz
Advertisement
  • Home
  • Bitcoin
  • Crypto Updates
    • Crypto Updates
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • Blockchain
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Scam Alert
  • Regulations
  • Analysis
Marketcap
  • Home
  • Bitcoin
  • Crypto Updates
    • Crypto Updates
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • Blockchain
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Scam Alert
  • Regulations
  • Analysis
No Result
View All Result
Ajoobz
No Result
View All Result

Web3 Market Data API – Trending NFTs, ERC20 Tokens by Market Cap & More Web3 Insights

2 years ago
in Web3
Reading Time: 15 mins read
0 0
A A
0
Home Web3
Share on FacebookShare on TwitterShare on E-Mail


In the present day’s article will dive into the ins and outs of the Moralis Web3 Market Information API. With this instrument, you’ll be able to seamlessly get the highest ERC20 tokens by market cap, question the highest trending NFT collections, and rather more with solely single strains of code. For a fast begin, listed here are the 4 endpoints of the Web3 Market Information API: 

getTopERC20TokensByMarketCap():const response = await Moralis.EvmApi.marketData.getTopERC20TokensByMarketCap();[
{
“rank”: 1,
“token_name”: “Wrapped Ether”,
“token_symbol”: “WETH”,
“token_logo”: “https://cdn.moralis.io/eth/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png”,
“token_decimals”: “18”,
“contract_address”: “0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2”,
“price_usd”: “1803.89”,
“price_24h_percent_change”: “1.43”,
“price_7d_percent_change”: “0.01”,
“market_cap_usd”: “214188093967”
},
//…
] getTopERC20TokensByPriceMovers():const response = await Moralis.EvmApi.marketData.getTopERC20TokensByPriceMovers();{
“gainers”: [
{
“rank”: “1”,
“token_name”: “Wrapped Ether”,
“token_symbol”: “WETH”,
“token_logo”: “https://assets.coingecko.com/coins/images/2518/large/weth.png?1595348880”,
“token_decimals”: “18”,
“contract_address”: “0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2”,
“price_usd”: “0.0285”,
“price_24h_percent_change”: “0.0285”,
“price_7d_percent_change”: “0.0285”,
“market_cap_usd”: “0.0285”
}
],
//…
} getTopNFTCollectionsByMarketCap():const response = await Moralis.EvmApi.marketData.getTopNFTCollectionsByMarketCap();[
{
“rank”: “1”,
“collection_title”: “CryptoPunks”,
“floor_price_usd”: “0.0”,
“floor_price_24hr_percent_change”: “0.0”,
“market_cap_usd”: “0.0”,
“market_cap_24hr_percent_change”: “0.0”,
“volume_usd”: “0.0”,
“volume_24hr_percent_change”: “0.0”
}
] getHottestNFTCollectionsByTradingVolume():const response = await Moralis.EvmApi.marketData.getHottestNFTCollectionsByTradingVolume();[
{
“rank”: 1,
“collection_title”: “Bored Ape Yacht Club”,
“collection_image”: “https://market-data-images.s3.us-east-1.amazonaws.com/tokenImages/0x2f1ef58880d01489b8d2c9ba759cf7b14db4ee8a55fd6e6b222ad050e7e00fb0.png”,
“volume_usd”: “8261189.224011”,
“volume_24hr_perecent_change”: “17.09”,
“floor_price_usd”: “79591.5288”,
“floor_price_24hr_percent_change”: “0.05”,
“average_price_usd”: “39717.255884668266”
},
//…
]

To study extra concerning the Web3 Market Information API and the assorted endpoints, be part of us all through this text, or try the official Market Information API documentation!

By familiarizing your self with the API for market information in Web3, you’ll have the ability to seamlessly combine crypto market information into your future blockchain tasks very quickly. As such, don’t neglect to enroll with Moralis, and also you’ll have the ability to construct sooner and extra effectively! 

Overview 

We’ll kickstart at present’s article by initially overlaying the ins and outs of crypto market information. In doing so, we are going to briefly discover what it’s and why it’s vital. From there, we’ll dive straight into the Moralis Web3 Market Information API, as that is probably the most accessible technique to get crypto market information. We’ll then cowl the endpoints of the API and present you the way it works in observe with a fast three-step tutorial on the way to get trending NFT collections. Lastly, to conclude the article, we’re going to discover 5 outstanding Web3 Market Information API use circumstances! 

Additionally, do you know that the API solely scratches the floor of what’s potential with Moralis? When you’re severe about constructing Web3 tasks, think about trying out some extra Moralis instruments. As an illustration, discover the NFT API and discover ways to get verified NFT collections in a heartbeat! 

However, with out additional ado, let’s proceed with the article by taking a look at what market information in Web3 is! 

What’s a Web3 Market Information API? – Exploring Crypto Market Information 

On-chain Web3 market information is an integral a part of the crypto {industry}. Not solely does it assist merchants make extra knowledgeable funding selections, however understanding and buying this sort of Web3 information can also be an important a part of blockchain growth. 

Web3 market information dictates every little thing from what NFT collections have gotten widespread, what cash are about to shoot as much as the highest of the charts, or which tokens are presently losers. Consequently, it doesn’t matter when you’re constructing a Web3 pockets, NFT market, or buying and selling platform; you want an environment friendly technique to combine crypto market information into your tasks to offer your clients a compelling person expertise (UX). 

Nevertheless, querying and deciphering this information is less complicated stated than finished. And when you have been to do it your self from scratch, it might require an abundance of growth time and assets. Luckily, you don’t must reinvent the wheel when working with Moralis and the {industry}’s main crypto Market Information API! 

Introducing the #1 Web3 Market Information API 

With the Moralis Web3 Market Information API, you’ll be able to effortlessly unlock the total energy of cryptocurrency market information. This instrument permits you to get trending NFT collections, prime ERC20 tokens by market cap, and rather more with solely single strains of code. As such, when utilizing Moralis, it has by no means been simpler to construct decentralized exchanges (DEXs), crypto wallets, portfolio trackers, or another Web3 tasks! 

Moralis Web3 Market Data API marketing material banner

Utilizing the Web3 Market Information API gives a great deal of advantages, and beneath, yow will discover three outstanding examples: 

Engaged and Knowledgeable Customers: Preserve your customers engaged and knowledgeable with trending Web3 market information.  Improved Person Expertise (UX): Present an improved UX with user-friendly options in your Web3 tasks. Retain Clients: Preserve your clients by offering up-to-date market information. 

The Web3 Market Information API options the next 4 endpoints: 

getTopERC20TokensByMarketCap()getTopERC20TokensByPriceMovers()getTopNFTCollectionsByMarketCap()getHottestNFTCollectionsByTradingVolume()

Within the sections to come back, we’ll cowl every one individually, supplying you with a extra in-depth understanding of how they work!

Get Prime ERC20 Tokens by Market Cap

With the getTopERC20TokensByMarketCap() endpoint, you’ll be able to effortlessly get the highest ERC20 tokens by market cap with a single line of code: 

const response = await Moralis.EvmApi.marketData.getTopERC20TokensByMarketCap();

In return for calling the endpoint above, you’ll get a response containing an array of the highest ERC20 tokens by market cap. Right here’s an instance of what it’d appear to be: 

[
{
“rank”: 1,
“token_name”: “Wrapped Ether”,
“token_symbol”: “WETH”,
“token_logo”: “https://cdn.moralis.io/eth/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2.png”,
“token_decimals”: “18”,
“contract_address”: “0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2”,
“price_usd”: “1803.89”,
“price_24h_percent_change”: “1.43”,
“price_7d_percent_change”: “0.01”,
“market_cap_usd”: “214188093967”
},
//…
]

Fetch Prime ERC20 Tokens by Value Change

With the getTopERC20TokensByPriceMovers() endpoint, you’ll be able to seamlessly get the highest ERC20 tokens by worth change with a single name to the Web3 Market Information API: 

const response = await Moralis.EvmApi.marketData.getTopERC20TokensByPriceMovers();

Calling the endpoint above gives a response containing the highest gainer and loser by worth change. That is an instance of what the response can appear to be: 

{
“gainers”: [
{
“rank”: “1”,
“token_name”: “Wrapped Ether”,
“token_symbol”: “WETH”,
“token_logo”: “https://assets.coingecko.com/coins/images/2518/large/weth.png?1595348880”,
“token_decimals”: “18”,
“contract_address”: “0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2”,
“price_usd”: “0.0285”,
“price_24h_percent_change”: “0.0285”,
“price_7d_percent_change”: “0.0285”,
“market_cap_usd”: “0.0285”
}
],
//…
}

Question Prime NFT Collections by Market Cap

With the getTopNFTCollectionsByMarketCap() endpoint, you’ll be able to simply question the highest NFT collections by market cap with solely a single line of code: 

const response = await Moralis.EvmApi.marketData.getTopNFTCollectionsByMarketCap();

In return for calling the getTopNFTCollectionsByMarketCap() endpoint, you’ll obtain a response with an array containing the highest NFT collections by market cap. Right here’s an instance of what the response can appear to be:

[
{
“rank”: “1”,
“collection_title”: “CryptoPunks”,
“floor_price_usd”: “0.0”,
“floor_price_24hr_percent_change”: “0.0”,
“market_cap_usd”: “0.0”,
“market_cap_24hr_percent_change”: “0.0”,
“volume_usd”: “0.0”,
“volume_24hr_percent_change”: “0.0”
}
]

Get Trending NFT Collections by Buying and selling Quantity

With the getHottestNFTCollectionsByTradingVolume() endpoint, you’ll be able to effortlessly get trending NFT collections by buying and selling quantity with a easy name to the Web3 Market Information API: 

const response = await Moralis.EvmApi.marketData.getHottestNFTCollectionsByTradingVolume();

Calling this endpoint will present a response with an array containing the highest trending NFT collections by buying and selling quantity. You’ll discover an instance of what the response may appear to be beneath: 

[
{
“rank”: 1,
“collection_title”: “Bored Ape Yacht Club”,
“collection_image”: “https://market-data-images.s3.us-east-1.amazonaws.com/tokenImages/0x2f1ef58880d01489b8d2c9ba759cf7b14db4ee8a55fd6e6b222ad050e7e00fb0.png”,
“volume_usd”: “8261189.224011”,
“volume_24hr_perecent_change”: “17.09”,
“floor_price_usd”: “79591.5288”,
“floor_price_24hr_percent_change”: “0.05”,
“average_price_usd”: “39717.255884668266”
},
//…
]

3-Step Tutorial: How you can Get Web3 Market Information with the Moralis API

Within the following sections, we’ll present you the way to get Web3 market information with Moralis in three simple steps: 

Set Up MoralisWrite a ScriptExecute the Code

To reveal the accessibility of the Web3 Market Information API, we’ll present you the way to effortlessly get trending NFT collections by buying and selling quantity. Nevertheless, you’ll be able to observe exactly the identical steps for any of the opposite endpoints to, for example, get prime ERC20 tokens by market cap, question prime NFT collections by market cap, and so forth. 

Moralis title in grey with logo

However, earlier than we are able to bounce into the preliminary step of this crypto market information tutorial, it is advisable to take care of a number of conditions! 

Conditions – Utilizing the Web3 Market Information API

The Moralis API helps a number of programming languages, together with JavaScript, Python, and so forth. Nevertheless, for this tutorial, we’ll be utilizing the previous. Consequently, earlier than you proceed, make sure that to have the next prepared: 

Step 1: Set Up Moralis 

To name the Web3 Market Information API, you want a Moralis API key, and to get one, you want a Moralis account. As such, when you haven’t already, create your account instantly by clicking on the ”Begin for Free” button on the prime of Moralis’ homepage: 

Moralis Web3 Market Data API Start for Free Button

What’s extra, so as to use the Web3 Market Information API, you additionally want no less than Professional plan entry. To get this, click on in your profile on the backside left, hit ”Account”, go to the ”Plan & Billing” tab, and improve to the Professional plan: 

Plan and Billing Section for the Market Data API

When you’re a Professional plan person, you’ll be able to click on on the ”Settings” tab, scroll right down to the ”Secrets and techniques” part, and duplicate your API key: 

Copying the Web3 Market Data API key

Preserve the important thing for now, as you’ll want it within the subsequent step.  

Step 2: Write a Script 

For the second step, arrange a brand new venture in your built-in growth setting (IDE), open a brand new terminal, and run the next command within the root folder to put in the Moralis SDK: 

npm set up moralis @moralisweb3/common-evm-utils

From there, you’ll be able to then create a brand new ”index.js” file and add the next code: 

const Moralis = require(“moralis”).default;
const { EvmChain } = require(“@moralisweb3/common-evm-utils”);

const runApp = async () => {
await Moralis.begin({
apiKey: “YOUR_API_KEY”,
// …and another configuration
});

const response =
await Moralis.EvmApi.marketData.getHottestNFTCollectionsByTradingVolume();

console.log(response.uncooked);
};

runApp();

Subsequent, add your Moralis API key by changing YOUR_API_KEY: 

Showing in the code editor where to insert the API key

We then merely name the getHottestNFTCollectionsByTradingVolume() endpoint and log the response: 

Code editor showing how to call the getHottestNFTCollectionsByTradingVolume() endpoint and log the response-

And that’s it for the code; you’re now able to execute the script, and we’ll present you ways within the subsequent step! 

Word: If you wish to name any of the opposite crypto Market Information API endpoints, merely substitute getHottestNFTCollectionsByTradingVolume() within the script above.

Step 3: Execute the Code 

To run the script, merely open a brand new terminal and run the next command within the venture’s root folder: 

node index.js

In return, you’ll get an array of the highest trending NFT collections by buying and selling quantity. Right here’s an instance of what it’d appear to be: 

[
{
“rank”: 1,
“collection_title”: “Bored Ape Yacht Club”,
“collection_image”: “https://market-data-images.s3.us-east-1.amazonaws.com/tokenImages/0x2f1ef58880d01489b8d2c9ba759cf7b14db4ee8a55fd6e6b222ad050e7e00fb0.png”,
“volume_usd”: “8261189.224011”,
“volume_24hr_perecent_change”: “17.09”,
“floor_price_usd”: “79591.5288”,
“floor_price_24hr_percent_change”: “0.05”,
“average_price_usd”: “39717.255884668266”
},
//…
]

Congratulations! That’s it; that is how straightforward it’s to get the highest trending NFT collections when working with Moralis and the Web3 Market Information API! 

Web3 Market Information API Use Instances 

The Web3 Market Information API is ideal for serving to you construct scalable decentralized functions (dapps). Nevertheless, what precisely are probably the most outstanding use circumstances for crypto market information? And how will you make the most of this data when growing dapps? 

To reply the questions above, be part of us within the previous sections as we discover 5 outstanding Web3 Market Information API use circumstances!

Decentralized Exchanges (DEXs) 

A DEX is a peer-to-peer market the place customers can alternate cryptocurrencies in a non-custodial method with out the necessity for intermediaries. Some outstanding examples of profitable DEXs embrace Uniswap, PancakeSwap, and Curve. 

Example of a DEX Using the Web3 Market Data API

Entry to real-time market information is a basic a part of constructing and working a DEX. This information is essential in offering real-time pricing, giving customers perception into the general state of the market, and staying aggressive in a quickly rising market. 

Web3 Wallets 

Web3 wallets – additionally generally known as crypto wallets – are platforms for storing belongings like NFTs and fungible tokens. Some outstanding actors inside the house embrace MetaMask, Rainbow, and Phantom.

Example of Web3 Market Data Inside a Web3 Wallet

Utilizing crypto market information when constructing a Web3 pockets could be extremely helpful, as this data can provide your customers precious perception into their belongings’ efficiency. What’s extra, it could additionally, for example, permit you to implement a neat token discovery function, permitting customers to search out new funding alternatives by presenting the highest ERC20 tokens primarily based on worth change.

NFT Marketplaces 

NFT marketplaces are web sites permitting you to purchase and promote non-fungible tokens. Some outstanding examples of profitable platforms embrace OpenSea, Blur, and Rarible. 

NFT Marketplace Data Example

When constructing an NFT market, it’s essential that you’ve got entry to real-time Web3 on-chain information. As an illustration, giving your customers perception into trending NFT collections may also help them discover new funding alternatives or worth their present holdings.

Token Analytics 

Token analytic platforms are instruments merchants can use to get precious perception and information associated to numerous cryptocurrencies. These platforms collect, course of, and current information from blockchain networks, permitting customers to make extra knowledgeable funding selections. A outstanding instance is Moralis Cash! 

Moralis Money Landing Page - Web3 Market Data Example

As you’ll be able to think about, when constructing a token analytics platform, it’s important that you’ve got entry to real-time Web3 market information. This can assist customers monitor the efficiency of digital belongings to allow them to discover probably the most promising tokens to put money into.

Portfolio Trackers 

Portfolio tracker platforms are web sites and software program that permit customers to trace the efficiency of their belongings throughout a number of blockchain networks. Some outstanding examples embrace Moralis Cash, Delta, and Kubera. 

Portfolio Tracker Example and How Data is Shown

When constructing a portfolio tracker platform, you want entry to real-time crypto market information because it provides you the chance to serve your clients with up-to-date asset valuations and efficiency metrics. 

Abstract: The Business’s Main Web3 Market Information API

In at present’s article, we explored Moralis’ industry-leading Web3 Market Information API. And in doing so, we discovered that it has 4 endpoints: 

getTopERC20TokensByMarketCap()getTopERC20TokensByPriceMovers()getTopNFTCollectionsByMarketCap()getHottestNFTCollectionsByTradingVolume()

Along with exploring the endpoints, we additionally lined how one can name both of them in three steps: 

Set Up MoralisWrite a ScriptExecute the Code

As such, if in case you have adopted alongside this far, you now know the way to combine crypto market information into your future Web3 tasks utilizing Moralis! 

When you preferred this tutorial, think about exploring extra articles on our Web3 weblog. As an illustration, discover ways to determine NFT and ERC20 spam and rip-off tokens, discover the idea of account abstraction, or learn our Ethereum testnet information. Additionally, when you’re severe about constructing blockchain tasks, don’t neglect to discover some extra Moralis APIs. As an illustration, try the Token API and discover ways to get the stability of ERC20 tokens from any account.

In order for you entry to those industry-leading instruments just like the Web3 Market Information API, keep in mind to enroll with Moralis. You may create your account at present and instantly begin leveraging the true energy of blockchain know-how!



Source link

Tags: APICapdataERC20InsightsMarketNFTstokensTrendingweb3
Previous Post

As Fed Rate Pause Comes into Play Analysts Hint That Bitcoin (BTC) May Repeat Its 2019 Performance

Next Post

Did Ethereum Bribe The SEC To Go After XRP?

Related Posts

Alibaba’s Qwen Deep Research Creates Live Webpages, Podcasts in Seconds
Web3

Alibaba’s Qwen Deep Research Creates Live Webpages, Podcasts in Seconds

1 day ago
The 5 unbelievable crypto comeback stories that changed the world forever
Web3

The 5 unbelievable crypto comeback stories that changed the world forever

2 days ago
Elon Musk’s SpaceX Moves 3 Million Worth of Bitcoin
Web3

Elon Musk’s SpaceX Moves $133 Million Worth of Bitcoin

3 days ago
RAND Warns of AI-Driven Cyber Chaos in New ‘Robot Insurgency’ Report
Web3

RAND Warns of AI-Driven Cyber Chaos in New ‘Robot Insurgency’ Report

4 days ago
NHL Becomes First Major Sports League to License Trademarks to Prediction Markets
Web3

NHL Becomes First Major Sports League to License Trademarks to Prediction Markets

5 days ago
Kadena exit highlights blockchain network’s shift to specialization
Web3

Kadena exit highlights blockchain network’s shift to specialization

5 days ago
Next Post
Did Ethereum Bribe The SEC To Go After XRP?

Did Ethereum Bribe The SEC To Go After XRP?

Did Caroline Ellison and SBF Cook Alameda’s Books to Save the World?

Did Caroline Ellison and SBF Cook Alameda’s Books to Save the World?

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

[ccpw id="587"]
  • Disclaimer
  • Cookie Privacy Policy
  • Privacy Policy
  • DMCA
  • Terms and Conditions
  • Contact us
Contact us for business inquiries: cs@ajoobz.com

Copyright © 2023 Ajoobz.
Ajoobz is not responsible for the content of external sites.

No Result
View All Result
  • Home
  • Bitcoin
  • Crypto Updates
    • Crypto Updates
    • Altcoin
    • Ethereum
    • Crypto Exchanges
  • Blockchain
  • NFT
  • DeFi
  • Web3
  • Metaverse
  • Scam Alert
  • Regulations
  • Analysis

Copyright © 2023 Ajoobz.
Ajoobz is not responsible for the content of external sites.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In