Works with the AI tools you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+22 more

    trading pnl reconciliation

    1

    Reconstruct positions and cash from fills to identify discrepancies against broker statements.

    $15

    Secure checkout via Stripe

    30-day refund guarantee

    Converts to your local currency at checkout

    Security scanned
    trading pnl reconciliation

    trading pnl reconciliation

    Example session with this skill installed

    Reconcile the account 'Alpha-01' for 2023-10-27. Compare the execution logs in fills.json against the snapshot in broker_statement.json. Focus on the BTC/USDT pair.

    • Read your context and instructions
    • Compiled the trading pnl reconciliation
    • Generated the document

    The reconciliation for account Alpha-01 is complete. I have processed 42 fills and 3 cash adjustments. There is a minor discrepancy in the final BTC position equivalent to 0.000012 BTC, likely due to a rounding mismatch on a taker fee.

    Reconciliation Report: Alpha-01 (2023-10-27)

    MetricOpening SnapshotReconstructedClosing SnapshotVariance
    Cash (USDT)1,250,400.001,185,210.501,185,210.500.00
    Asset (BTC)12.5000000014.1200000014.120000000.00
    Asset (ETH)50.0000000048.0000000047.99998800-0.00001200

    Discrepancy Analysis

    IDTypeAssetAmountResolution
    DISP-001Fee MismatchETH-0.000012Unresolved. Detected on Fill #8922. Likely precision difference.
    ADJ-001DepositUSDT+50,000.00Confirmed. Match found in internal treasury logs.

    Data References

    • Source Fills: fills.json (v2.1)
    • Statement: broker_statement.json (Ref: 99821-X)
    • Interval: 2023-10-27 00:00:00 to 23:59:59 UTC

    Next steps

    1. Review Fill #8922 in the execution log to confirm the fee calculation method.
    2. Export the reconciled ledger to the strategy performance folder.
    3. Update the precision settings in the config file to match the broker's 8-decimal output.

    trading-pnl-reconciliation.pdf

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    What you get

    Audit daily execution logs against official broker statements.Identify missing or duplicate trade fills in high-frequency data.Reconstruct signed positions from raw transaction history.Isolate cash adjustments like dividends and deposits from trade P&L.

    About this skill

    The problem

    Manual reconciliation of trading activity is error-prone and slow. Discrepancies between execution logs and broker snapshots often lead to inaccurate P&L reporting and hidden accounting errors.

    What it does

    • Reconstructs signed positions and cash balances from raw fill data and manual adjustments.
    • Identifies missing or duplicate fills by comparing reconstructed state against closing snapshots.
    • Distinguishes between settlement cash and trade-date cash to ensure timing accuracy.
    • Processes deposits, withdrawals, and dividends while preventing double-counted fees.
    • Generates a structured ledger and a dedicated discrepancy table for audit trails.

    Frameworks & tools

    Python 3 for analysis scripts, JSON for data contracts, and standardized ledger modeling for spot and linear instruments.

    Why this beats prompting it yourself

    General-purpose LLMs struggle with the strict mathematical consistency required for position reconstruction. This skill enforces a specific accounting workflow that separates trade-date logic from settlement events, ensuring you don't miss small but compounding fee errors or timing mismatches.

    Use cases

    • Verifying daily trading activity against prime brokerage or exchange statements.
    • Auditing strategy performance by isolating execution fills from external cash movements.
    • Pre-processing raw trade data for tax-lot accounting or performance reporting systems.
    • Investigating broken trade sequences and unexplained cash variances.

    Known limitations

    Does not handle tax reporting, FX conversions, or corporate actions like splits. Limited to spot and fully paid linear instruments; no native derivative margin accounting.

    How to install

    Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.

    ~30 seconds
    1. 1

      Download the ZIP

      Free skills download straight away. Paid skills unlock right after purchase.

    2. 2

      Unzip into your skills folder

      Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.

    3. 3

      Ask your agent to use it

      Restart the agent if it was already running. It picks the skill up automatically - no config needed.

    Skills folder by agent

    Click the path to copy it. Create the folder if it does not exist yet.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 13 days ago

    • Passed all security checks, Safe to install

    Needs access to

    Alpaca

    Listed13 days ago

    What's inside

    Frequently Asked Questions