Reconcile a Bybit Options Settlement Against the Exchange

    by Claude Workflow Lab

    1

    This skill reconciles a completed settlement against independent exchange data and produces a per-figure verdict table.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Reconciles an options settlement against independent sources, the transaction log first
    • GET-only snapshot of one Bybit settlement window into a single JSON file
    • Proves the transaction log window is complete with a balance-chain check on every row

    Reconcile a Bybit Options Settlement Against the Exchange

    Example session with this skill installed

    Last Friday's ETH call delivery shows +41 USDT in the bot UI. Check it against Bybit and tell me if every figure is right.

    • Read your context and instructions
    • Compiled the reconcile a bybit

    Example on a fictional setup (window 2025-01-10, ETH option, one hedge leg).

    1. Snapshot: pull_exchange_state.py with a read-only key, GET only, one JSON file. No further exchange calls after this; everything below is recomputed offline from it.
    2. Completeness: check_cashbalance_chain.py snapshot.json reports 37 rows, 0 breaks, so no cash event in the window was missed.
    3. Per-figure verdict table (ours / exchange / delta / oracle):

    | figure | ours | exchange | delta | oracle |
    | premium | 12.40 | 12.40 | 0.00 | execution row plus tx-log cash flow identity |
    | option fees | 0.062 | 0.062 | 0.000 | execution list |
    | settlement fee | 0.31 | 0.31 | 0.00 | delivery record |
    | hedge fills qty | 0.50 | 0.50 | 0.00 | order history |
    | final PnL | 41.05 | 40.66 | +0.39 | closed PnL + delivery PnL |

    1. The +0.39 delta traces to the settlement fee counted on the UI row twice; the stored columns are right and the page decomposition is wrong.
    2. The stored cash-settlement figure was not used as evidence because it is derived as a residual, which would cancel any error.

    Verdict: DB correct; one display defect. Detector note: it only runs from the deferred reconcile loop, so it never examined this healthy delivery.

    check_cashbalance_chain.py snapshot.json

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

    About this skill

    After an options delivery, the bot's own drift detector often says everything matches, and that proves little: it may never run for a healthy delivery, or it compares figures fetched by the same helper that wrote them. This skill reconciles a completed settlement against independent exchange data and produces a per-figure verdict table.

    What is inside:

    • SKILL.md - why the obvious shortcut fails; the independent oracles (the transaction log is the strongest); a non-circular premium identity; the procedure from finding what actually settled, taking one raw read-only snapshot and never calling the exchange again, recomputing every stored figure, resolving what the hedge orders did, running the engine's own detector without writing to production, checking the UI layer, and handling multi-leg sessions that share a hedge; notes on operating on the production box; and the reporting format (ours / exchange / delta / oracle).
    • scripts/pull_exchange_state.py - standard-library, GET-only snapshot of one Bybit V5 settlement window into a single JSON file: executions, order history, closed PnL, positions, delivery records and the paged transaction log.
    • scripts/check_cashbalance_chain.py - proves a transaction-log window is complete: every row must satisfy cashBalance minus change equals the previous cashBalance. Exits 1 on a break.

    Who it is for: people running a Bybit V5 options bot who need to trust their P&L figures. The scripts place and cancel nothing. It is also part of the Production Ops: DB, Scrapers, Trading Bot pack at a lower per-skill price.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    Accounts
    Bybit
    Software
    Claude Code
    ora compatible agent runtime
    Python 3 (standard library only)

    A read-only Bybit V5 API key (READONLY_API_KEY and READONLY_API_SECRET). Read access to the bot's stored settlement figures.

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Environment Variables

    Allowed Hosts

    api-testnet.bybit.com
    api.bybit.com
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    Prove or disprove that every stored settlement figure (premium, fees, hedge fills, PnL) equals what Bybit reports, using independent oracles including the transaction-log cashBalance chain. Includes a snapshot fetcher and a chain checker.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Reconcile a Bybit Options Settlement Against the Exchange on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.