Whereas most decentralized exchanges (DEX), cryptocurrency wallets, and portfolio trackers use customary crypto value APIs to inform customers when the value of a coin strikes, they usually fail to elucidate why. That is comprehensible, given the advanced nature of the crypto market’s value actions. Thankfully, that is one thing Moralis’ Why Did It Transfer API is now in a position to remedy. With this industry-leading crypto value motion API, you may seamlessly question and combine one-sentence explanations for what’s behind a value motion into your decentralized purposes (dapps). By providing your customers these distinctive insights, you may improve consumer engagement and provides your dapps a particular aggressive benefit!
In immediately’s article, we’ll dive into the intricacies of the Why Did It Transfer (WDIM) API to elucidate what it’s and the way it works. If you happen to’re keen to leap straight into the code, right here’s an instance of what an API name to the https://wdim.moralis.io/api/v1/information endpoint would possibly appear to be:
// Dependencies to put in:
// $ npm set up node-fetch –save
// add “kind”: “module” to package deal.json
import fetch from ‘node-fetch’;
const choices = {
methodology: ‘GET’,
headers: {
settle for: ‘utility/json’,
‘Authorization’: ‘Bearer YOUR_API_KEY’
},
};
fetch(‘https://wdim.moralis.io/api/v1/information’, choices)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
All you need to do is exchange YOUR_API_KEY together with your Moralis API key, and also you’ll get a response containing one-sentence explanations for notable value actions. Right here’s an instance of what it’d appear to be:
{
//…
“web page”: “1”,
“consequence”: {
“id”: 1,
“token_address”: “0x046eee2cc3188071c02bfc1745a6b17c656e3f3d”,
“token_symbol”: “RLB”,
“token_name”: “Rollbit Coin”,
“chain”: “ETH”,
“change_in_percent”: 11,
“headline”: “On-chain quantity reveals heavy wallets accumulating RLB, resulting in an 11% improve immediately.”,
“time_of_price_movement”: “2023-10-13T12:00:00.000Z”,
“motion”: “Optimistic”,
“updated_at”: “2021-10-11T00:00:00.000Z”,
“created_at”: “2021-10-11T00:00:00.000Z”
}
//…
}
To study extra about how this works, be part of us on this information, watch the video beneath, or try the official Why Did It Transfer API documentation web page!
Additionally, if you wish to get entry to the WDIM API your self, please click on the button beneath!
Overview
We’ll kickstart immediately’s article by answering the query, ”Why do you want a crypto value motion API?”. From there, we’ll bounce straight into Moralis’ WDIM API. In doing so, we’ll clarify what it’s, the way it works, and why it is best to leverage this software when constructing Web3 tasks. Subsequent, we’ll briefly have a look at an early success story, exploring how Delta – an industry-leading portfolio tracker platform – is benefiting from utilizing the WDIM API. Lastly, to high issues off, we’ll dive deeper into Moralis to discover the capabilities of the #1 Web3 API supplier additional!
Inside Moralis’ suite of APIs, you’ll discover distinguished instruments just like the Worth API, Pockets API, Token API, and lots of others. These instruments provide industry-leading response instances, are cross-chain suitable, and will let you save about 83% of a challenge’s common go-to-market time. Consequently, when working with Moralis, you may construct dapps quicker and extra effectively.
Additionally, do you know you can enroll with Moralis free of charge? So, should you haven’t already, register an account proper now, and also you’ll acquire instantaneous entry to our Web3 API suite!
Why Do You Want a Crypto Worth Motion API?
The cryptocurrency market is characterised by intense volatility, with many cash frequently growing and reducing in value. These steady value fluctuations current important challenges for merchants, making it troublesome to successfully monitor the market except they’re full-time in crypto. Consequently, should you’re constructing decentralized finance (DeFi) platforms like DEXs, cryptocurrency wallets, or portfolio trackers, you desperately want a option to hold your customers up-to-date with real-time info!
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Why-Do-You-Need-a-Crypto-Price-Movement-API.png)
The simplest option to get real-time cryptocurrency value information is to leverage a crypto value API, which might let you know and your customers when a coin’s value will increase or decreases. Nevertheless, an API for crypto value motion – akin to Moralis’ Why Did It Transfer API – takes this one step additional, providing you with extra info on why the value of a coin strikes.
With this information, you may seamlessly arrange value notifications that briefly clarify the explanations behind a coin’s value motion. This will help increase consumer engagement and provides your challenge a aggressive benefit, making it stand out available in the market.
Now, to raised clarify why you want a crypto value motion API, let’s take the next part to discover the WDIM API in additional element to focus on the advantages of this industry-leading software!
Why Did It Transfer API – Perceive How the Crypto Market Strikes
Whereas there are a number of Web3 APIs telling you when a coin strikes, the WDIM API provides you a one-sentence clarification for why a coin is growing or reducing in worth. Consequently, it’s a recreation changer for anybody trying to construct DeFi platforms like decentralized exchanges, portfolio trackers, and crypto wallets!
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-The-Why-Did-It-Move-API.png)
So, how does the WDIM API work?
Moralis’ system tracks and displays 100+ of the market’s high cryptocurrencies and instantly notifies our in-house workforce of world-class researchers as quickly as a big value motion is detected. From there, the workforce then scans the marketplace for any news-related occasion that may have triggered the value motion. As soon as a match is discovered, they kind up a quick sentence explaining why it occurred.
You possibly can then seamlessly question these sentences to ship partaking value motion and information flash push notifications to your customers. In doing so, you may considerably increase engagement and supply further worth to your prospects.
Right here’s a picture exhibiting you an instance of what it’d appear to be in follow:
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-Notifications.png)
You too can use the WDIM API to question historic occasions and supply real-time updates. With this information, you may, for example, create information feeds for explicit cash.
All in all, whereas most dapps use fundamental APIs to inform customers when a coin’s value modifications, you may acquire a aggressive edge by leveraging the WDIM API. This lets you inform your customers not simply concerning the value fluctuations but in addition present insights into why the value of a coin will increase or decreases!
Why Ought to You Use Moralis’ Why Did It Transfer API?
The WDIM API affords a large number of advantages and benefits. On this part, we’ll cowl just a few the reason why you have to be leveraging this software when constructing dapps:
Create Participating Notifications: Cryptocurrency buyers and merchants at all times search distinctive market perception to know why a coin is growing or reducing in value. With the WDIM API, you may seamlessly arrange partaking notifications to present your customers this info in actual time. Historic Insights: The WDIM API allows you to question previous sentences explaining why the value of explicit cash elevated or decreased. With this information, you can provide your customers historic insights into any coin’s value actions by organising a timeline or information feed. Achieve a Aggressive Benefit: Whereas most dapps give perception into when cash transfer, you may seamlessly leverage the WDIM API to present your customers information on why a cryptocurrency will increase or decreases in value. This can make your platform stand out, providing you with a transparent aggressive benefit that may appeal to plenty of customers.
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-Benefits-of-WDIM-API.png)
However, that offers you an summary of the WDIM API. Within the subsequent part, we’ll dive into the code to showcase how straightforward it’s to make use of this industry-leading software!
How Precisely Does the Why Did It Transfer API Work?
Utilizing the WDIM API is tremendous easy, and on this part, we’ll present you the way it works in follow. In reality, all you want is a single API name to the https://wdim.moralis.io/api/v1/information endpoint. Right here’s an instance of what it’d appear to be:
// Dependencies to put in:
// $ npm set up node-fetch –save
// add “kind”: “module” to package deal.json
import fetch from ‘node-fetch’;
const choices = {
methodology: ‘GET’,
headers: {
settle for: ‘utility/json’,
‘Authorization’: ‘Bearer YOUR_API_KEY’
},
};
fetch(‘https://wdim.moralis.io/api/v1/information’, choices)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
You merely want so as to add your API key from Moralis to the code above by changing YOUR_API_KEY. In return for calling the endpoint, you’ll get a response wanting one thing like this:
{
//…
“web page”: “1”,
“consequence”: {
“id”: 1,
“token_address”: “0x046eee2cc3188071c02bfc1745a6b17c656e3f3d”,
“token_symbol”: “RLB”,
“token_name”: “Rollbit Coin”,
“chain”: “ETH”,
“change_in_percent”: 11,
“headline”: “On-chain quantity reveals heavy wallets accumulating RLB, resulting in an 11% improve immediately.”,
“time_of_price_movement”: “2023-10-13T12:00:00.000Z”,
“motion”: “Optimistic”,
“updated_at”: “2021-10-11T00:00:00.000Z”,
“created_at”: “2021-10-11T00:00:00.000Z”
}
//…
}
You possibly can then use the data returned from the WDIM API to arrange real-time notifications explaining why the value of a coin has moved!
If you happen to’d like to check it your self, try the Why Did It Transfer API reference in our documentation!
Case Research: How Delta Makes use of the WDIM API to Have interaction Customers & Enhance Income
Delta is an industry-leading platform enabling you to trace all of your property in a single place. This contains shares, cryptocurrencies, NFTs, and different digital property. To present their Professional customers the most recent information on why the value of a coin will increase or decreases, Delta is leveraging Moralis’ Why Did It Transfer API!
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-Delta.png)
With the assistance of the WDIM API, Delta Professional customers now get to take pleasure in real-time explanations and historic information for why cryptocurrency costs transfer both up or down. This strategic integration has not solely improved consumer engagement for Delta however has additionally led to a notable improve in subscriptions for his or her Professional plan.
So, if you wish to take your tasks to new heights, observe the examples of {industry} leaders like Delta and begin utilizing the Why Did It Transfer API to spice up engagement, enhance consumer worth, and improve income!
Past Our Crypto Worth Motion API – Exploring Moralis Additional
The WDIM API is only one of many useful sources in Moralis’ Web3 API suite. On this part, we’ll discover Moralis a bit additional.
So, what precisely is Moralis?
Moralis is the {industry}’s #1 Web3 API supplier! With Moralis’ dynamic instruments, you may effortlessly get and combine on-chain information and blockchain performance into your tasks. As such, when working with Moralis, you may construct every little thing from crypto wallets to DEXs with out breaking a sweat.
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-Moralis.jpg)
To spotlight the ability of Moralis, we’re going to take a look at three different interfaces you should utilize along with our crypto value motion API to construct dapps:
Worth API: Moralis’ Worth API is probably the most full API for crypto costs, protecting every little thing from the smallest cash to established cryptocurrencies. With this software, you may effortlessly get the present value of any token, make batch requests, and so on.
For instance, with the getTokenPrice() endpoint, you may simply get the value of any token:
const response = await Moralis.EvmApi.token.getTokenPrice({
“chain”: “0x1”,
“deal with”: “0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0”
}); Pockets API: The Pockets API helps 500+ million addresses throughout the most important blockchains, together with Ethereum, Polygon, BNB Good Chain, and others. With this industry-leading API, you may seamlessly fetch the native steadiness, NFT steadiness, transactions, and so on., of any pockets with single strains of code.
As an illustration, right here’s the getNativeBalance() endpoint in motion, exhibiting you the best way to fetch a pockets’s native steadiness:
const response = await Moralis.EvmApi.steadiness.getNativeBalance({
“chain”: “0x1”,
“deal with”: “0xDC24316b9AE028F1497c275EB9192a3Ea0f67022”
}); Token API: The Moralis Token API lets you question and combine real-time token costs, balances, and extra into your dapps. As such, with this software, you may construct every little thing from DEXs to portfolio trackers.
For instance, with the getWalletTokenBalances() endpoint, you may get the ERC-20 token balances of any pockets:
const response = await Moralis.EvmApi.token.getWalletTokenBalances({
“chain”: “0x1”,
“deal with”: “0x1f9090aaE28b8a3dCeaDf281B0F12828e676c326”
});
Try our Web3 API web page to study extra about all our interfaces!
Additionally, do you know you can entry our APIs free of charge? As such, should you haven’t already, enroll with Moralis now!
Abstract: Crypto Worth Motion API – Perceive Why Crypto is Up Or Down
In immediately’s article, we kicked issues off by answering the query, ”Why do you want a crypto value motion API?”. In doing so, we discovered that the crypto market is extremely unstable, making it troublesome for buyers to observe it. Consequently, when constructing DeFi platforms like DEX, portfolio trackers, and crypto wallets, it’s important to maintain customers up-to-date on when and why the value of a crypto will increase and reduces.
Nevertheless, whereas most traditional APIs present updates when a coin’s value modifications, they typically don’t give info as to why. Thankfully, that is the place Moralis’ WDIM API now enters the equation!
When a coin’s value will increase or decreases, Moralis’ WDIM API supplies a one-sentence clarification for what’s behind the value motion. You possibly can then seamlessly question this info to arrange real-time alerts and inform your customers about current occasions. This can will let you increase engagement and enhance consumer worth.
Subsequent, we dove into an early success story, discovering that Delta – a longtime portfolio tracker platform – leverages Moralis’ WDIM API. In doing so, they’ve been in a position to improve consumer engagement and signups for his or her Professional plan.
To high issues off, we launched you to some extra Moralis instruments that work completely along with the WDIM API. In doing so, we coated the Worth API, Pockets API, and Token API.
![](https://moralis.io/wp-content/uploads/2024/01/Blog-Crypto-Price-Movement-API-Moralis-Logo-2.png)
If you happen to preferred this crypto value motion API information, contemplate studying extra content material right here on the weblog. As an illustration, should you’re new to the Web3 area, try our newest guides exploring the Ethereum ecosystem in addition to the Polygon ecosystem. Additionally, if you wish to take your improvement endeavors to the following degree, don’t neglect to enroll with Moralis. You possibly can create an account free of charge, and also you’ll get instantaneous entry to our industry-leading Web3 APIs!