# Price Monitor

**Behavior**

When to query price:\
`cron` - On Cron interval\
`block` - On every new block

*Source*\
Where to query price:\
`oracle` - On-chain Feed (Chainlink Oracle format)\
`coingecko` - Coingecko Feed

*Currency*\
Currency of the price. Default is `usd`.

*NOTE*: Currently supported only for `coingecko` feed.\
`oracle` feed requires adding Chainlink Oracle Contracts in configuration

**Use cases**

* Alert on sudden price drops of stablecoins or RWAs.
* Detect oracle price manipulation attempts in DeFi protocols.
* Track token price feeds for liquidation risk management.

**Detector Configuration**

1. *Name* - Enter a descriptive name for your monitor, for example: "Price Monitor".
2. *Cron*
3. *Threshold*

<figure><img src="https://1039275029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bLm0AVvg6UVsPcZKKl7%2Fuploads%2Fgit-blob-d6d8fc3fbc8e17efd5d88bd00407b25fb2455260%2Fprice_monitor_faq.png?alt=media" alt=""><figcaption></figcaption></figure>

**Alert example**

<figure><img src="https://1039275029-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1bLm0AVvg6UVsPcZKKl7%2Fuploads%2Fgit-blob-6f5b0981e1991cb1820e02765f51d98d06f37af2%2Fprice_monitor_alert.png?alt=media" alt=""><figcaption></figcaption></figure>
