Join waitlist →
Automation recipe · intermediate

Auto paper-trade the top 5 daily EXTREME flows

A hands-off way to backtest "follow the unusual flow": every morning, pull the day's highest-scoring EXTREME options prints from RadarPulse and open matching positions in your free $100K paper-trading wallet. No real money, no broker, just a clean, automated experiment in whether the strongest scored flow is worth following.

What it does. Calls the RadarPulse flow API, keeps only prints flagged EXTREME (score 85+), takes the top 5 by score, and submits each as a paper trade. Run it on a daily schedule and your paper wallet becomes a running record of how the day's most unusual flow plays out.

Prerequisites

The script

Illustrative Node example against the RadarPulse API beta. Set RADARPULSE_API_KEY in your environment.

// auto-paper-trade.mjs, open paper trades on the day's top EXTREME flows
const KEY = process.env.RADARPULSE_API_KEY;
const BASE = "https://api.radarpulse.io"; // API beta base
const TOP_N = 5;

async function main() {
  // 1) Pull recent scored flow (min score 85 = EXTREME)
  const res = await fetch(`${BASE}/api/v1/flow?minScore=85&limit=200`, {
    headers: { "x-api-key": KEY }
  });
  if (!res.ok) throw new Error(`flow ${res.status}`);
  const { data } = await res.json();

  // 2) De-dupe by ticker, keep the highest-scoring print per name, take top N
  const best = new Map();
  for (const p of data) {
    const cur = best.get(p.ticker);
    if (!cur || p.score > cur.score) best.set(p.ticker, p);
  }
  const picks = [...best.values()].sort((a, b) => b.score - a.score).slice(0, TOP_N);

  // 3) Open a paper position matching each print's direction
  for (const p of picks) {
    const order = {
      ticker: p.ticker,
      side: p.type,           // CALL or PUT, mirror the flow
      strike: p.strike,
      expiry: p.expiry,       // ISO date from the API
      qty: 1,
      note: `auto: EXTREME score ${p.score} (${p.bias})`
    };
    const r = await fetch(`${BASE}/api/paper/submit`, {
      method: "POST",
      headers: { "x-api-key": KEY, "Content-Type": "application/json" },
      body: JSON.stringify(order)
    });
    console.log(p.ticker, p.type, "score", p.score, "→", r.status);
  }
}
main().catch(e => { console.error(e); process.exit(1); });

Endpoints shown (/api/v1/flow, /api/paper/submit) are part of the RadarPulse API beta. Field names are illustrative, the live API reference ships with your beta key.

How to run it

1. Get your API key from your RadarPulse account (beta).
2. Save the script, set RADARPULSE_API_KEY, adjust TOP_N if you want more or fewer names.
3. Run it once manually, confirm it prints your picks and 200s from the paper endpoint.
4. Schedule it daily, e.g. a GitHub Action cron a few minutes after 9:30 ET, or a Railway/Replit scheduled job.
5. Review the results in your RadarPulse paper wallet + the leaderboard over a few weeks.

Risk & responsibility. This opens paper positions only, simulated, no real money, no broker. Unusual options prints are not buy or sell signals and can reflect hedging or spreads; "follow the EXTREME flow" is an experiment, not financial advice. You are responsible for any script you run and for respecting API rate limits. Keep your API key secret. Trading and investing involve substantial risk of loss.

Get a beta API key

Programmatic scored flow + the paper-trading endpoints power this recipe. Join the waitlist for early API access.

Join the waitlist →

Keep exploring