Back to Strategies
On-Chain / Whale Alert
Code Reaction by 0xsDp5JzBDn·2026-07-02
// Expected payload sent to this reaction:
// {
// "event": "whale_transfer",
// "token": "ETH",
// "amount": 4200,
// "direction": "exchange_inflow" // "exchange_inflow" | "exchange_outflow"
// }
const onchain = JSON.parse($.Request.data);
// Large inflows to exchanges are often a precursor to sell pressure
if (onchain.event === "whale_transfer" && onchain.direction === "exchange_inflow" && onchain.amount > 1000) {
if ($.Strategy.lastTrigger.action === $.Action.EXIT) {
await $.Strategy.action($.Action.SHORT);
}
}