Skip to main content
ChainStream currently supports Solana (sol), Ethereum (eth), and BSC (bsc). Supported DEXes are Jupiter, Raydium, PumpFun, Moonshot, Candy (Solana), and KyberSwap (Ethereum/BSC). Some examples below reference additional protocols for conceptual illustration — check Supported Chains for the current coverage.
Coming Soon - This feature is currently under development. Stay tuned!
This document introduces how to use ChainStream to monitor DeFi protocol activities, including liquidity changes, large trades, yield tracking, and risk alerts.

Supported DeFi Protocols

DEX (Decentralized Exchanges)

Other DeFi verticals

Lending, yield aggregators, and liquid staking are common monitoring targets in DeFi generally. ChainStream’s indexed swap and DEX analytics focus on the protocols above on Solana, Ethereum, and BSC. Before building lending- or vault-specific alerts, confirm what your deployment exposes in the API reference and Supported Chains.

Monitoring Dimensions

1. Liquidity Monitoring

Monitored Events

Key Metrics

Rug Pull Risk Signals

  • Single withdrawal > 30% of pool
  • 24h cumulative withdrawal > 50%
  • LP concentrated in few addresses (< 5)

2. Trading Monitoring

Real-time Trading Flow

Subscribe to real-time trades via WebSocket:

Trading Analysis Dimensions


3. Yield Tracking

Tracked Content

Yield Metrics

Impermanent Loss Estimation

Impermanent Loss Formula

4. Risk Alerts

Protocol-Level Risks

Position-Level Risks

Alert Configuration Example


Monitoring Scenarios

Scenario 1: New Pool Discovery

Goal: Discover newly created trading pools as early as possible

Scenario 2: Rug Pull Warning

Goal: Monitor rug pull risk for held pools
1

Add Monitoring

Add target pool to monitoring list
2

Set Threshold

Set withdrawal threshold (e.g., single > 10%)
3

Receive Alerts

Receive real-time alerts
4

Adjust Position

Adjust position promptly

Scenario 3: Arbitrage Opportunity Discovery

Goal: Discover cross-DEX price differences
1

Subscribe Price Feeds

Subscribe to price feeds from multiple DEXs
2

Calculate Spread

Calculate spread percentage
3

Cost Evaluation

Consider Gas and slippage costs
4

Send Alert

Alert when net profit > threshold

Scenario 4: Liquidation Monitoring

Goal: Monitor lending position health
1

Get Position

Get lending position for target address
2

Calculate Health Factor

Calculate real-time health factor
3

Warning

Warn when health factor < 1.5
4

Urgent Alert

Urgent alert when health factor < 1.2

Data Latency


API Endpoints


Arbitrage Scanner

Build an arbitrage scanning tool

Price Alert Bot

Build a price alert system