Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/juandoroteoflesiauni-lang/Market-options-stocks-ScannerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/030-realtime-data)<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/030-realtime-data"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/030-realtime-data/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/030-realtime-data"><img src="https://agentmods.dev/badge/rules/juandoroteoflesiauni-lang/market-options-stocks-scanner/030-realtime-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02203 |
| Opus 5 | $0.00000 | $0.01102 |
| Sonnet 5 | $0.00000 | $0.00441 |
| Haiku 4.5 | $0.00000 | $0.00220 |
Grade A, and why
030-realtime-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.
⚡ DATOS EN TIEMPO REAL — TRADING TERMINAL
PRINCIPIOS DE TRADING EN TIEMPO REAL
Los datos de mercado llegan miles de veces por segundo. Un error en este módulo = datos incorrectos = decisiones de trading equivocadas = pérdidas.
🔌 ARQUITECTURA WEBSOCKET BACKEND
# backend/app/websockets/market_feed.py
from fastapi import WebSocket, WebSocketDisconnect
from typing import Dict, Set
import asyncio
import json
class MarketFeedManager:
"""
Gestiona todas las conexiones WebSocket de clientes.
Patrón: PubSub — un stream de exchange, N clientes.
"""
def __init__(self):
# symbol -> set de websockets conectados
self._subscribers: Dict[str, Set[WebSocket]] = {}
self._lock = asyncio.Lock()
async def subscribe(self, websocket: WebSocket, symbol: str) -> None:
"""Suscribir cliente a un símbolo."""
async with self._lock:
if symbol not in self._subscribers:
self._subscribers[symbol] = set()
# Iniciar feed del exchange si es el primero
asyncio.create_task(self._start_exchange_feed(symbol))
self._subscribers[symbol].add(websocket)
async def unsubscribe(self, websocket: WebSocket, symbol: str) -> None:
"""Desuscribir cliente — SIEMPRE llamar en disconnect."""
async with self._lock:
if symbol in self._subscribers:
self._subscribers[symbol].discard(websocket)
if not self._subscribers[symbol]:
# Limpiar stream si no hay más clientes
del self._subscribers[symbol]
async def broadcast(self, symbol: str, data: dict) -> None:
"""Enviar datos a todos los clientes suscritos."""
if symbol not in self._subscribers:
return
dead_connections = set()
message = json.dumps(data)
for websocket in self._subscribers[symbol].copy():
try:
await websocket.send_text(message)
except Exception:
dead_connections.add(websocket)
# Limpiar conexiones muertas
for ws in dead_connections:
await self.unsubscribe(ws, symbol)
async def _start_exchange_feed(self, symbol: str) -> None:
"""Conectar al exchange y retransmitir datos."""
try:
async for tick in exchange.get_price_stream(symbol):
if symbol not in self._subscribers:
break # No hay más suscriptores
await self.broadcast(symbol, {
"type": "tick",
"symbol": symbol,
"price": str(tick.price),
"volume": str(tick.volume),
"timestamp": tick.timestamp.isoformat()
})
except Exception as e:
logger.error(f"Exchange feed error for {symbol}: {e}")
feed_manager = MarketFeedManager()
# Endpoint WebSocket
@router.websocket("/ws/market/{symbol}")
async def market_websocket(websocket: WebSocket, symbol: str):
await websocket.accept()
await feed_manager.subscribe(websocket, symbol)
try:
while True:
# Mantener conexión viva con heartbeat
await websocket.receive_text()
except WebSocketDisconnect:
await feed_manager.unsubscribe(websocket, symbol)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 325 lines · 0 tokens per session scan A 537893ccac15
030-realtime-data is a cursor rule published in the GitHub repository juandoroteoflesiauni-lang/Market-options-stocks-Scanner (11 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,203 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
viberaven-payments
Apply when editing Stripe, Polar, or payment webhook handlers.
payment-payment-idempotency
Apply when implementing idempotency logic in payment connector code or handling duplicate payment requests. Covers paymentId as idempotency key, payment state machine transitions, retry semantics for cancellation and refund operations, and requestId handling. Use for preventing duplicate charges and ensuring correct…
architecture
At the start of every response, say "APPLIED ARCHITECTURE RULE".
ponytail
Ponytail, lazy senior dev mode. Always pick the simplest solution that works.
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.