| name | monitor-peer-activity |
| description | Watch real-time Peer protocol events — new intents, fulfillments, deposit changes, and rate updates. Get alerts on large trades, track your deposits, or monitor competitor rates. Use when the agent needs to react to protocol events, watch for specific activity, or build an event-driven workflow. |
Monitor Peer Activity
The Problem
The agent manages deposits, adjusts rates, or reacts to market conditions on Peer protocol. Without visibility into real-time events, the agent operates blind -- missing new intents against its deposits, competitor rate changes, or large volume spikes.
What You Can Monitor
- Intent activity -- new intents signaled, fulfilled, or pruned
- Deposit changes -- created, topped up, withdrawn, or closed
- Rate updates -- any LP changing their conversion rates
- Specific entities -- filter by deposit ID, maker address, or intent hash
Quick Example
import { Peerlytics } from '@peerlytics/sdk';
const peerlytics = new Peerlytics({
apiKey: process.env.PEERLYTICS_API_KEY,
});
const events = await peerlytics.getActivity({
type: 'intent_fulfilled',
since: .(.() / ) - ,
: ,
});
( event events) {
.();
}