Salta ai contenuti

/insider-activity

Cosa fa. Mostra le operazioni degli insider (Form 4) e i relativi pattern.

Quando usarlo. Per cogliere acquisti/vendite dei dirigenti.

Argomenti. TICKER

Esempio. /insider-activity TSLA

Cosa restituisce. Le transazioni insider con i codici operazione e i pattern.

Quando lanci /insider-activity, Dexter non esegue codice fisso: invia all’AI la prompt qui sotto — il segnaposto {arg} viene sostituito con ciò che scrivi dopo il comando — e l’agente la esegue chiamando da sé gli strumenti necessari. Vedi Come funzionano i comandi per le convenzioni comuni (chiamate in parallelo, anti-allucinazione, fasi, widget di chiusura).

Strumenti che può usare: get_insider_trades, get_sec_form4, get_sec_filings, portfolio_get, get_sec_document, show_ticker_link, memory_update.

Flusso/visualizzazione: chiude con i pulsanti di dettaglio (show_ticker_link); salva un appunto in memoria (memory_update).

È la prompt esatta inviata all’AI quando usi il comando (sostituendo {arg}).

Insider trading analysis for {arg} (6-12 months).
In parallel:
- get_insider_trades → Form 4 from local DB (aggregated, yfinance source)
- get_sec_form4(ticker={arg}, limit=20) → parse Form 4 XML directly from SEC EDGAR: insider name, title, officer/director/10% flags, transaction codes (P/S/A/M/F/D/G/J/C), shares, price, value per transaction
- get_sec_filings(ticker={arg}, form_type='4', limit=5) → recent Form 4 filings list with document URLs
- portfolio_get
If get_sec_form4 returns filings where error contains "XML not accessible": for those specific filings, call get_sec_document(url=document_url) using the document_url from get_sec_filings as fallback — the HTML Form 4 contains the same transaction details in readable form.
Cross-reference all three sources. Trust hierarchy: get_sec_form4 > get_sec_filings/get_sec_document > get_insider_trades.
get_sec_form4 provides SEC transaction codes that get_insider_trades lacks (yfinance only gives human-readable text like "Sale", not the code).
Transaction codes: P = Open market purchase, S = Open market sale, A = Grant/Award, M = Option exercise, F = Tax withholding, D = Return to issuer, G = Gift, J = Other, C = Derivative conversion.
Identify: who (name/title/role), dates, prices, amounts, open-market buys (code P) vs option exercises (code M) vs awards (code A), cluster buys (multiple insiders buying within 30 days = strong bullish signal).
Flag: sales (code S) that are NOT tax withholding (code F) or options-related (code M+F combo within 3 days).
Assess overall pattern (bullish/neutral/bearish). Flag anomalous transactions by size vs known compensation.
If user holds {arg}: contextualize insider signal vs current position.
Finalize FIRST — call show_ticker_link and memory_update, THEN write the report once (no tool calls after the report).