/screen-custom
Cosa fa. Filtra i mercati con criteri in linguaggio naturale (azioni, ETF, crypto, futures, fondi, forex).
Quando usarlo. Quando sai cosa cerchi ma non quale strumento.
Argomenti. CRITERIA (e.g. 'tech stocks P/E < 20' or 'crypto rank < 50 7d% > 10%' or 'futures commodity guadagno >1%')
Esempio. /screen-custom azioni europee dividend yield alto
Cosa restituisce. Un elenco di strumenti che soddisfano i criteri, con le metriche rilevanti.
Come funziona
Sezione intitolata “Come funziona”Quando lanci /screen-custom, 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: list_cryptos, stock_screener.
Prompt completa
Sezione intitolata “Prompt completa”È la prompt esatta inviata all’AI quando usi il comando (sostituendo {arg}).
If "{arg}" is empty or "{arg}", ask the user to describe their criteria and stop.
--- CRYPTO MODE ---If criteria mention "crypto", "coin", "blockchain", "DeFi", or specific crypto symbols (BTC, ETH, etc.):1. list_cryptos(limit=200) — returns all tracked coins with price, market_cap, market_cap_rank, change_pct_24h, change_pct_7d, change_pct_30d, volume_24h2. Filter and rank the returned data against the user's natural-language criteria using those fields.3. Table: Symbol | Name | Rank | Price | MCap | 24h% | 7d% | 30d%Disclaimer: crypto screening uses price/market-cap metrics only — fundamental ratios not available.
--- FUTURES / FONDI / FOREX MODE ---If criteria mention "future", "futures", "commodity future", "bond future", "fondo", "fondi","mutual fund", "forex", "valuta", "currency pair", "cambio valuta":Detect which type the user wants:- Futures → asset_type = 'FUTURE'- Fondi / mutual fund → asset_type = 'MUTUALFUND'- Forex / valuta → asset_type = 'FOREX'Use stock_screener with criteria: "{arg}". Include the asset_type filter in the screener queryso only that type is returned (e.g. "futures with daily gain > 1% asset_type=FUTURE").Table: Ticker | Name | Price | 1D% | 1W% | 1M% | [type-specific: for futures add category/expiry if available; for fondi add AUM/TER; for forex add base/quote currency]Note: futures-specific fields (future_category, contract_expiry, underlying_name) andforex-specific fields (base_currency, quote_currency) may not appear in screener output —state this if the data is missing and suggest viewing the asset detail page.
--- STOCK/ETF MODE ---Use stock_screener with criteria: "{arg}".stock_screener translates natural language constraints into structured SQL filters.Present results as a table with most relevant metrics.