Trandence

Convertitore CSV Universale con IA: Importa da qualsiasi broker

Il tuo broker non è nell’elenco? Puoi comunque importare le tue operazioni. Converti l’esportazione del tuo broker in Trandence CSV, un formato semplice e standardizzato che Trandence legge per qualsiasi broker, e importala con Other broker (Trandence CSV).

Il modo più rapido per convertirla è con un assistente IA che usi già. Anche a mano, in un foglio di calcolo, funziona.

Risorse rapide:

  • Modello CSV: Scarica Trandence_CSV_Template.csv
  • Prompt IA integrato: Usa il pulsante Copy in alto a destra nel blocco del prompt qui sotto (oppure fai clic su Copy AI prompt nella finestra di importazione di Trandence).

Convertire con il tuo assistente IA (ChatGPT, Claude, Gemini)

Funziona con ChatGPT, Claude, Gemini o qualsiasi assistente che accetti file e possa eseguire codice.

  1. Esporta lo storico delle operazioni dal tuo broker in CSV o Excel. Se il broker lo consente, includi solo gli ordini eseguiti.
  2. Apri una nuova conversazione con il tuo assistente e allega il file.
  3. Copia il prompt qui sotto e invialo. L’assistente ti chiede da quale broker viene il file e tutto ciò che gli serve. In Trandence il pulsante Copy AI prompt nella finestra di importazione copia lo stesso prompt.
  4. Per prima cosa l’assistente ti spiega come ha interpretato il file: il formato delle date, come sono indicate le vendite allo scoperto, quali righe salterà. Controlla con attenzione e correggilo se qualcosa non va. È qui che si scoprono la maggior parte degli errori.
  5. Scarica il file convertito e annota il fuso orario indicato dall’assistente.
  6. Confronta la verifica dell’assistente con il tuo broker: il numero di righe e la commissione totale devono coincidere con il tuo estratto conto.

Se il link di download non funziona. Alcuni assistenti mostrano un link che apre una pagina di ricerca invece del file. Il prompt chiede all’assistente di stampare anche il file finito come output del codice: copia quell’output in un editor di testo semplice, come Blocco note o TextEdit, e salvalo con estensione .csv.

Se il tuo broker esporta date senza orario. L’assistente te lo dice prima della conversione. Il file si importa comunque, con ogni esecuzione alle 12:00:00, ma la durata delle operazioni e le statistiche intraday non saranno significative. Le righe dello stesso giorno devono restare nell’ordine in cui sono avvenute, altrimenti una vendita può finire prima del suo acquisto e l’operazione viene letta come short: controlla il lato di ogni operazione nell’anteprima. Se il tuo broker offre un’esportazione con l’orario di esecuzione, usa quella.

Il prompt è in inglese perché gli assistenti lo interpretino tutti allo stesso modo, ma l’assistente ti risponderà nella tua lingua.

Help me convert a trade history export from my broker into "Trandence CSV" so I can import it into my trading journal. Reply in the language I write to you in.

BEFORE YOU START
1. Ask me which broker the export comes from and which of its reports it is, unless I have already said. If I attached a file, you may name the broker you think it comes from and ask me to confirm.
2. Then ask me, in one message, for anything else you need and cannot read from the file, only what matters for this broker and file. For example: the timezone of the times; whether I trade options; whether fees are in a separate report; whether the export starts on a day when I had no open positions (if not, a sale that closes a position opened earlier is read as a short sale, so I should export a longer period).
3. If I have not attached the file yet, tell me how to export it from that broker, if you know, and ask me to attach it.

HOW TO WORK
1. Do not retype, summarise or regenerate rows yourself. Write a script that reads my file and writes the result, run it, and give me the file to download. If you cannot run code, say so and give me the script instead.
   Download links from some assistants do not work, so also have the script print the finished file's full contents as code output, which I can copy into a .csv file. Do not retype those contents in your message. If the file has more than 1000 rows, print only the first 20 and say so.
2. Before converting, tell me briefly, and wait for my confirmation:
   - which columns of my file you will use for each output column;
   - the date format you found (for example MM/DD or DD/MM) and how you know;
   - the timezone of the times in the file, if the file or the broker says;
   - whether the file has execution times or only dates. If only dates, say so clearly: my journal can still import them, but hold times and intraday statistics will not be meaningful;
   - how buys, sells, short sales and covers are marked;
   - whether the file has option trades, and how it writes the contract (symbol, expiry, strike, call or put) and the option price;
   - which rows you will skip and why (cancelled or unfilled orders, deposits, dividends, interest, fee-only rows, futures and options on futures, crypto, non-US stocks).
   If something is ambiguous, ask me instead of guessing.
3. After converting, show me a check: rows read, rows written, rows skipped by reason; shares bought and shares sold per symbol; contracts bought and sold per option contract; total commission; first and last DateTime. List every symbol or contract where the amounts bought and sold differ, because that is either a position still open or a mistake. Trandence shows the same totals when I import the file, so I can compare them.

OUTPUT FORMAT
- A CSV file, comma-separated, UTF-8, with exactly this header: DateTime,Symbol,Side,Quantity,Price,Commission,Expiry,Strike,Right,Multiplier,Event,OrderId
- The last six columns are for options. Leave them empty on stock rows.
- One row per execution (fill), in the order the executions happened. Sort by DateTime with a stable sort, so rows with the same DateTime keep their order. If the file lists newest first, reverse it before sorting; otherwise, when times are missing or equal, a sell can end up before the buy it closes and the trade is read as a short. If the file has only closed round-trip trades (entry and exit on one row), write two rows per trade: the entry and the exit.
- DateTime: YYYY-MM-DD HH:MM:SS, the time of the fill exactly as in the file. Do not convert timezones and do not invent times: if the file has dates only, use 12:00:00 (noon keeps the date the same in any timezone). If the file gives a UTC offset, you may keep it: 2026-09-15T09:31:07-04:00
- Symbol: the ticker only, for example AAPL or BRK.B, without exchange prefixes or suffixes.
- Side: BUY, SELL, SHORT (a short sale that opens or adds to a short) or COVER (a buy that closes a short). If the file does not mark short sales, use only BUY and SELL.
- Quantity: number of shares, positive, no sign.
- Price: price per share, positive, with a dot as the decimal separator, no currency symbol, no thousands separator.
- Commission: all fees for that fill added together (commission, exchange and regulatory fees), as a positive number; empty if none.
- US stocks and US stock or index options only.

OPTIONS
- Symbol: the underlying ticker (for example NVDA, or SPXW for SPX weeklies), and fill Expiry (YYYY-MM-DD), Strike (a number) and Right (CALL or PUT).
- Quantity: number of contracts. Price: the premium per share as quoted, for example 3.40, not 340. If the file gives the price per contract, divide it by the multiplier.
- Multiplier: only if the file states one other than 100; otherwise leave it empty.
- OrderId: the broker's order id, if the file has one.
- Event: only for a row where the file itself records that a contract expired, was assigned or was exercised. Write EXPIRATION, ASSIGNMENT or EXERCISE, leave Side empty, and use Price 0, or the settlement price per share if the file shows a cash settlement. The shares an assignment or exercise delivers are a normal stock row, as in the file.
- Never add an expiration, assignment or exercise row that is not in my file, even for a contract that is past its expiry and still open. My journal asks me what happened to it.

Il prompt chiede all’assistente di convertire il file con uno script invece di riscrivere le righe da solo. Gli assistenti che ricopiano tabelle lunghe perdono righe e cambiano numeri senza dirlo; uno script le copia esattamente. Se il tuo assistente non può eseguire codice, ad esempio con alcuni piani gratuiti, ti darà lo script da eseguire tu stesso, oppure puoi convertire il file a mano.

Il tuo file va all’assistente che scegli, secondo le sue condizioni. Trandence non lo vede finché non importi il risultato.

Convertire a mano

Per uno storico breve basta un foglio di calcolo. Scarica il modello ufficiale, allinea le tue colonne all’intestazione e salva come CSV (delimitato da virgole):

Il formato Trandence CSV

Una riga per esecuzione, con questa intestazione:

DateTime,Symbol,Side,Quantity,Price,Commission
2026-02-02 09:31:07,AAPL,BUY,100,227.15,1.00
2026-02-02 09:48:22,AAPL,SELL,100,228.40,1.00
Colonna Obbligatoria Contenuto
DateTime Sì 2026-02-02 09:31:07. I secondi sono facoltativi. Viene letto nel CSV Timezone scelto all’importazione, a meno che non abbia un proprio scostamento: 2026-02-02T09:31:07-05:00.
Symbol Sì Il ticker: AAPL, BRK.B.
Side Sì BUY, SELL, SHORT o COVER. Se il tuo broker non indica le vendite allo scoperto, usa solo BUY e SELL: una vendita senza posizione lunga aperta è trattata come vendita allo scoperto, e l’acquisto che la chiude come ricopertura.
Quantity Sì Numero di azioni, positivo.
Price Sì Prezzo per azione, positivo, con il punto come separatore decimale. Niente $, niente separatori delle migliaia.
Commission No Tutte le commissioni e i costi dell’esecuzione sommati. Vuoto significa nessuno.

I nomi delle colonne non distinguono maiuscole e minuscole, e le colonne in più vengono ignorate.

Opzioni

Le opzioni su azioni e indici vengono importate dallo stesso file. Aggiungi le colonne dedicate alle opzioni nell’intestazione e lasciale vuote sulle righe delle azioni:

DateTime,Symbol,Side,Quantity,Price,Commission,Expiry,Strike,Right,Multiplier,Event,OrderId
2026-02-02 09:31:07,AAPL,BUY,100,227.15,1.00,,,,,,
2026-02-02 09:35:12,NVDA,BUY,2,3.40,1.30,2026-02-20,140,CALL,,,8812
2026-02-02 10:02:41,NVDA,SELL,2,5.10,1.30,2026-02-20,140,CALL,,,8840
2026-02-10 09:40:05,SOFI,SHORT,1,1.34,1.14,2026-02-20,26,PUT,,,8911
2026-02-20 17:00:00,SOFI,,1,0,,2026-02-20,26,PUT,,ASSIGNMENT,
2026-02-20 17:00:00,SOFI,BUY,100,26.00,5.00,,,,,,
Colonna Contenuto
Symbol Il ticker del sottostante: NVDA, oppure SPXW per le settimanali su SPX. Puoi anche inserire qui l’intero contratto come simbolo OCC, ad esempio NVDA 260220C00140000, lasciando vuoti Expiry, Strike e Right.
Expiry Data di scadenza, 2026-02-20.
Strike Prezzo di esercizio (strike): 140.
Right CALL o PUT.
Quantity Numero di contratti.
Price Il premio per azione così come quotato: 3.40, non 340. Trandence applica il moltiplicatore.
Multiplier Solo se diverso da 100, ad esempio su un contratto rettificato dopo uno split.
Event EXPIRATION, ASSIGNMENT o EXERCISE, solo su una riga in cui l’esportazione del tuo broker registra tale evento. Lascia Side vuoto e usa prezzo 0, oppure il prezzo di regolamento per azione per un’opzione su indice regolata in contanti.
OrderId L’identificativo dell’ordine del broker, se presente. Le gambe dello stesso ordine lo condividono.

Un’assegnazione corrisponde a due righe. L’opzione si chiude sulla riga ASSIGNMENT, mentre le azioni ricevute o consegnate compaiono come una normale riga azionaria al prezzo di strike, come nell’esempio. Il premio resta sull’operazione in opzioni; le azioni costituiscono un’operazione a sé.

Non aggiungere una scadenza non registrata dal tuo broker. Se un contratto ha superato la data di scadenza e l’esportazione non lo ha chiuso, lascialo aperto. Trandence lo mostra sotto Expired options to resolve nella pagina Trades, dove scegli se è scaduto senza valore, è stato assegnato o è stato esercitato. Il prompt qui sopra fornisce la stessa istruzione all’assistente.

Le opzioni su futures non sono ancora supportate: un file che le contiene viene rifiutato.

Importare in Trandence

  1. Apri Trandence e vai alla pagina Trades.
  2. Fai clic su Import Trades e scegli Upload CSV/TXT.
  3. Seleziona il broker Other broker (Trandence CSV).
  4. Imposta CSV Timezone sul fuso orario degli orari nel tuo file. Per la maggior parte dei broker statunitensi è America/New_York.
  5. Seleziona o trascina il file CSV convertito.
  6. Controlla le operazioni riconosciute prima di salvare. In alto, la sezione Check the converted file before saving mostra i totali stampati dal tuo assistente: righe, commissione totale, prima e ultima data/ora, e azioni o contratti acquistati e venduti per ciascun simbolo. Devono coincidere; un simbolo con quantità sbilanciate rappresenta una posizione ancora aperta oppure un errore. Apri quindi due o tre operazioni e confrontale con l’estratto conto del tuo broker, verificando anche il P&L totale dello stesso periodo. Trandence mostra il P&L al netto delle commissioni. In questo modo si individuano anche gli errori che un file formalmente corretto può nascondere, come giorno e mese invertiti.
  7. Fai clic su Save & Review Session, oppure su Import & Review Summary se il file copre più giorni, per salvare l’importazione.

Per il flusso di importazione completo, consulta Importazione delle operazioni.

Se il file viene rifiutato

Trandence rifiuta l’intero file se una riga non è valida, così una riga difettosa non sparisce mai in silenzio dal tuo diario. Il messaggio indica le righe e il problema, ad esempio:

Trandence CSV has 1 invalid row. Nothing was imported. Row 3: Side must be BUY, SELL, SHORT or COVER, got "Sold".

Ciclo di feedback IA (Copy for your AI assistant)

Se il file è stato creato da un assistente IA e Trandence segnala un errore di validazione, non è necessario modificare il CSV manualmente:

  1. Sotto il banner di errore nella finestra di importazione di Trandence, fai clic su Copy for your AI assistant.
  2. Incolla il report copiato direttamente nella stessa conversazione con ChatGPT, Claude o Gemini.
  3. Il report elenca ogni problema con i numeri di riga e i valori riscontrati e istruisce l’assistente a correggere lo script di conversione e generare un nuovo file CSV completo, anziché ritoccare singole righe a mano.

Cause di validazione più comuni

  • Date in un altro formato, come 02/03/2026. Usa 2026-02-03 e verifica che giorno e mese non siano invertiti.
  • Valori del lato del broker, come Bot, Sld o Buy to Cover. Usa BUY, SELL, SHORT o COVER.
  • Numeri formattati, come $1,234.50. Usa 1234.50.
  • Un foglio di calcolo che ha salvato con il punto e virgola. Salva come CSV separato da virgole.
  • Una riga di opzione priva di parte del contratto, ad esempio uno strike senza scadenza. Compila insieme Expiry, Strike e Right, oppure inserisci il simbolo OCC in Symbol.
  • Un prezzo dell’opzione espresso per contratto, come 340.00 per un premio di $3,40. Dividi per il moltiplicatore.

Serve aiuto?

Scrivici quale broker usi a help@trandence.com. I broker più richiesti dai trader ottengono una propria opzione di importazione nativa, così non dovrai convertire nulla.

Serve aiuto?

Domande su Convertitore CSV Universale con IA: Importa da qualsiasi broker? Rispondiamo entro un giorno lavorativo.

Contatta il supporto