All Articles

    Options Trading Journal Import: Tastytrade, Schwab, IBKR

    Import options trades into a journal from Tastytrade, Schwab, Robinhood, Fidelity and IBKR: which CSV to export, how trades are matched, and what to check.

    9 min read

    To import options trades into a trading journal, export your transaction history from the broker as CSV, covering a date range that includes the opening trade of every position, and upload it to a journal that can read that broker's format. The journal then has to match each sell to open with its later buy to close, expiration or assignment, because brokers list transactions, not trades. Most import problems come from that matching step, so it's worth knowing how it works and what to check afterwards.

    This guide covers where to find the export at Tastytrade, Schwab, Robinhood, Fidelity and Interactive Brokers, what ThetaScanner's importer does with each file, and a checklist for after the import.

    Transactions vs trades: what a broker export contains

    A single cash-secured put shows up in your broker history as two or more rows. One row when you sell it, and a second when you buy it back, when it expires, or when you're assigned. Roll it and you get a buy to close and a sell to open on the same day. Close half and you get a partial buy to close.

    A journal wants one row per trade: this put, sold on this date for this premium, closed on that date for that price. So the importer has to pair them up. ThetaScanner's importer does this per contract (same ticker, put or call, strike and expiration), first in, first out. If you sold two contracts and bought one back, the first contract is closed and the second stays open as its own row.

    The pairing can only see what's in the file. If you sold a put in August and export only September onward, the September buy to close has nothing to match.

    Before you export: two rules

    1. Pick a start date before the oldest position you still care about. For open positions, that means the date you opened them, not the start of this month. When in doubt, export the whole year.
    2. Don't re-import overlapping ranges. The importer doesn't check whether a trade is already in your journal, so importing January to June and then March to September brings March to June in twice. If you need to redo an import, delete the earlier rows first or import only the new dates.

    How to export trades from each broker

    Brokers rename menus every so often, so treat the paths below as directions rather than exact labels. What matters is the type of file: a transaction or activity history in CSV, not a positions snapshot, a tax form or a PDF statement.

    Tastytrade

    Use the account's transaction history (under History in the web platform) and download it as CSV. The importer recognizes the file by columns such as Instrument Type, Value, Underlying Symbol, Expiration Date, Strike Price and Call or Put. It reads opens and closes from the action columns, and expirations, assignments and exercises from the sub type or description. Premium is taken from the row's cash value, and fees are the Commissions and Fees columns added together. Futures options are skipped.

    Charles Schwab

    Use the account's transaction history and export it as CSV. Schwab's file has Date, Action, Symbol, Description, Quantity, Price, Fees & Comm and Amount columns, and may start with a title line and end with a totals row; both are handled. Option symbols look like XYZ 12/19/2025 45.00 P. Actions read Sell to Open, Buy to Close, Expired, Assigned and so on. Dates written as "01/18/2024 as of 01/15/2024" are understood.

    Robinhood

    Robinhood's account activity report is generated from the reports section of the account menu, and it can take a while before the file is ready to download. The importer reads the Trans Code column: STO, BTC, BTO, STC, OEXP (expired), OASGN (assigned) and OEXCS (exercised). Robinhood's file has no fee column; regulatory fees are netted into Amount. The importer works out fees as the difference between quantity × price × 100 and the Amount. It's usually pennies per contract, but it's there.

    Fidelity

    Use the account history (Activity & Orders, then History) and download it. Fidelity's file has a few title lines before the header and disclaimer text after the data, which the importer skips. Actions are long phrases like "YOU SOLD OPENING TRANSACTION PUT (XYZ) ...". The contract is read from the symbol (for example -XYZ251219P45) or, if that's missing, from the action text. Commission and Fees are added together. Newer Fidelity files can include several accounts; everything in the file lands in one journal, so export one account at a time if you keep them separate.

    Interactive Brokers (IBKR)

    Two formats work. The first is the Activity Statement exported as CSV from the statements area of the client portal. IBKR's activity CSV has many sections; the importer reads only the Trades section. The second is a Flex Query of trades in CSV, which you set up once and rerun. For a Flex Query, include at least Symbol, Put/Call, Strike, Expiry, Underlying Symbol, Trade Date, Quantity, Trade Price, IB Commission, Open/Close Indicator, Notes/Codes, Asset Class and Multiplier.

    IBKR quantities are signed (negative means sold) and the open or close side comes from the codes: O for open, C for close, Ep for expired, A for assigned, Ex for exercised. A row without an open or close code is listed as an error instead of guessed. Mini options with a multiplier other than 100 are rescaled, so the dollar premium comes out right.

    What the importer handles

    ThetaScanner's journal is built for options sellers, and the importer follows that. Here's how each kind of broker row ends up in the journal.

    Broker eventJournal result
    Sell to open, never closed in the fileAn OPEN trade
    Sell to open, then buy to closeA CLOSED trade with the close date and price
    Buy to close on the same day as a new sell to open, same ticker and type, different strike or expirationThe closed leg is marked ROLLED; the new leg is its own trade
    ExpirationAn EXPIRED trade, full premium kept
    Assignment on a short putAn ASSIGNED trade, and the shares are added to your portfolio at the strike
    Assignment on a short callAn ASSIGNED trade, and the shares are removed from your portfolio
    Partial closeSplit into a closed row for the contracts closed and an open (or later closed) row for the rest
    Long options (buy to open, sell to close)Skipped, with a warning
    Stock trades, dividends, transfersIgnored

    Fees

    Commissions and fees are read from each broker's columns and attached to the trade. Opening fees are split evenly across the contracts in the opening order, and closing fees go to the contracts that were closed. So if you open 2 contracts for $2.28 in fees and close one for $1.14, the closed row carries $1.14 + $1.14 = $2.28 and the open row carries $1.14.

    Rolls

    Roll detection is a same-day rule: a buy to close and a sell to open on the same ticker and the same type (put or call) on the same day, at a different strike or expiration. That catches the normal roll order. It has two edge cases. A roll done across two days (close Thursday, reopen Friday) comes in as a plain CLOSED trade. And an unrelated buy to close that happens on a day you opened another strike on the same ticker gets marked ROLLED. P&L is the same either way; only the label differs. Imported legs also aren't linked into a roll chain the way they are when you use the journal's own Roll action, so chain-level P&L won't show for imported rolls. For the strategy side, see how to roll covered calls.

    Multi-leg trades

    This is the big one if you trade spreads. Because the journal tracks sold options and skips long options, a put credit spread imports as its short put only. The long put is skipped with a warning. The short leg then looks like a naked put, with more premium than the spread really kept on a win and none of the long leg's protection on a loss. Iron condors and other multi-leg trades have the same issue. If spreads are a big part of your trading, check those rows by hand after import. The credit spreads vs cash-secured puts post explains why the two need different capital math.

    A worked example

    Hypothetical Tastytrade history for XYZ:

    • Oct 1: sell to open 2 XYZ Oct 31 $45 puts at $1.10, fees $2.28
    • Oct 20: buy to close 1 of them at $0.40, fees $1.14
    • Oct 20: sell to open 1 XYZ Nov 21 $43 put at $0.95, fees $1.14
    • Oct 31: the other $45 put expires
    • Nov 21: the $43 put expires

    The importer builds three trades. The preview labels the first two as slices of the same opening row, because one sell order became two outcomes.

    TradeStatusP&L after fees
    1 × $45 put, Oct 1 to Oct 20ROLLED (same-day open of a different strike)$110 − $40 − $2.28 = $67.72
    1 × $45 put, Oct 1 to Oct 31EXPIRED$110 − $1.14 = $108.86
    1 × $43 put, Oct 20 to Nov 21EXPIRED$95 − $1.14 = $93.86

    Total: $270.44. Check it against the cash: $220 + $95 of premium, minus the $40 buyback, minus $4.56 of fees, is $270.44. That kind of quick reconciliation is the best test that an import worked.

    What to check after importing

    The import dialog shows a preview before anything is saved: which broker was detected, how many trades were built, how many are valid, and the reason for each invalid row. Read the warnings; they tell you about skipped long options and expirations or assignments that had no opening trade in the file. Then, after importing:

    1. Open positions match the broker. Compare the journal's open trades with your broker's positions page, contract for contract. Any mismatch usually means a missing opening trade or a date range that's too short.
    2. Assigned shares are right. After a put assignment the shares appear in the Portfolio tab at the strike, with a cost basis of the strike minus that put's premium. Premium from earlier rolls on the same position isn't folded in, and your broker may show a different basis, so check the number you want to track.
    3. Shares you bought outright are there. Stock purchases are ignored on import, so covered calls on shares you bought directly need those shares added to the portfolio.
    4. Fees look plausible. Total them for a month and compare with the broker's fee summary.
    5. Spreads are handled. If you trade spreads, find the short legs and decide how you want them recorded.
    6. Nothing came in twice. Sort by open date and scan for duplicate rows if you've imported overlapping files.

    Importing into ThetaScanner's journal

    In the trading journal, Import CSV opens the dialog. You can upload a broker file directly (the broker is detected from the column headers) or use the journal's own CSV template, which takes ticker, type, strike, premium, contracts, open date, expiration date and status, plus optional close date, close price, notes and fees. The journal's CSV export uses the same columns, so you can export, edit in a spreadsheet and re-import.

    Imported trades go in with their final status and dates, oldest first, so assignments and share counts are applied in the right order. On the Free plan the journal holds up to 5 open trades; closed history isn't limited, so you can import a full year of past trades and the import tells you if any open trades didn't fit. Once your history is in, assignments feed the wheel cycle tracking, and Pro adds the Analytics tab, where you can compare your results with SPY (see does the wheel beat SPY?). For what to record beyond the numbers, the options trading journal guide has a list.

    Frequently Asked Questions

    Why does my import say a buy to close has no matching sell to open?

    Your export starts after the position was opened, so the closing trade has nothing to pair with. Export a longer date range that includes the original sell to open and import again.

    Can I import trades from more than one broker into the same journal?

    Yes. Import each broker's file separately; the format is detected from each file's headers. Just make sure the date ranges don't overlap with trades you've already imported from that broker.

    Do I need to export stock trades too?

    Not for the options themselves. An assigned put recorded in the export is enough for the journal to add the shares at the strike, and an assigned call removes them. Shares you bought outright need to be added to the portfolio separately.

    Does importing trades from my broker give me tax-ready numbers?

    No. A journal is for judging your trading, not for filing taxes. Brokers adjust cost basis and handle wash sales in their tax forms in ways a journal doesn't, so use your broker's tax documents for taxes.

    Educational content, not investment advice. Options involve risk and are not suitable for every investor. Examples use hypothetical numbers.

    Ready to find your next trade?

    Screen 100,000+ options contracts by delta, theta, ROI, and annualized yield, with fresh snapshots throughout the trading day. Free plan, no card needed.

    Start Free with ThetaScanner →