# DeFi Alert

DeFi Alert is a cryptocurrency alerting service, just like how a push notification works. This is one of the prototype use cases ThirdFi made to demonstrate some of the functions the ThirdFi provides.&#x20;

## Features

1. DeFi Alert has the ability to retrieve & send a high-quality aggregated price action of a cryptocurrency from each network.&#x20;
2. DeFi Alert supports the following networks' mainnet to get the high-quality price:
   * Ethereum
   * BNB Chain
   * Polygon Chain
   * Arbitrum Chain
   * Avalanche Chain
   * Optimism Ethereum
   * Moonriver
   * Fantom Opera
   * Harmony
   * Moonbeam
   * Metis
3. The price the DeFi Alert provides is made sure that the value is close to the actual representation of the market value.

## Goal

1. To have the availability to get the latest aggregated price movement from the on-chain network price oracles.
2. To create an opportunity for traders to profit by buying the asset on the lower-priced exchange and selling it on the higher-priced exchange by alerting them.

{% hint style="info" %}
Why do traders require a high-quality price?

1. Aggregated price data provides a more accurate and comprehensive view of market prices by combining data from multiple exchanges, which can help traders identify trends, detect anomalies, and make more informed decisions.
2. By having access to accurate and timely price data, traders can quickly react to market changes and take advantage of trading opportunities as they arise.

What happens when traders rely on just one source of cryptocurrency price?

1. Without access to high-quality aggregated price data, traders risk making decisions based on incomplete or inaccurate information, which can lead to significant losses.
2. Relying on just one exchange for price data may be more likely to fall victim to price manipulation schemes or otherwise could also cause them to buy or sell at an unfavorable price.
   {% endhint %}

## How it works

1. DeFi Alert supports three main notification routes to alert the user.
2. The following routes DeFi Alert provides via Webhook:
   * Slack - DeFi Alert Bot Notification.
   * Telegram - DeFi Alert Bot.
   * Discord Bot Webhook - Using your bot to act as middleware.

## How to use The DeFi Alert Webapp

1. Register & Log in to your account.
2. Pick the network of your choice. For example, “Avalanche Mainnet”
3. Pick a notification channel that you wish to receive a notification for this setup.
4. Pick the cryptocurrency that you want to monitor. Assuming you want to pick the “ETHUSD” pair.
5. Set the targeted price to be alerted for the pair “ETHUSD” in terms of when it:
   * goes above
   * goes below
6. All set. Then your request to alert the targeted price will be saved.
7. Once the price actions from the network for the pair “ETHUSD” has hit your condition (”above”/”below”), you will receive the notification on your integrated webhook. *(Figure 1.0: Illustration of DeFiAlert's panel to set up an alerting)*

<figure><img src="/files/vb7VsMyvMxqOQ86EZ42L" alt=""><figcaption></figcaption></figure>

8. Example of a received alert on Slack Channel: (*Figure 2.0: Illustration of alert received on Slack Channel.)*

<figure><img src="/files/TCCqkZWR4dXYV000IFQy" alt=""><figcaption></figcaption></figure>

9. That’s not all. We can customize the alert message too in DeFiAlert Setting. *(Figure 3.0: Illustration of alert message customization.)*

<figure><img src="/files/uzaVpJ10RQHDeM7yLgoC" alt=""><figcaption></figcaption></figure>

Example of what we will be receiving after these changes: *(Figure 4.0: Illustration of alert message customization.)*

<figure><img src="/files/dFm2nsW6KyB0ZrxqVUnX" alt=""><figcaption></figcaption></figure>

\*Note:&#x20;

To make this work as intended, webhook channel(s) to retrieve a notification has been connected. You’re allowed to use multiple channels to receive a single price alert too.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://thirdfi.gitbook.io/thirdfi.org-1/product/thirdfi-developer/use-case/defi-alert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
