ИИ-инструменты и скрипты
Reconcile a Bybit Options Settlement Against the Exchange
Это объявление показано на языке оригинала (английский).
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.
Что вы получите: 1 файл · 9.88 KB · ZIP
Варианты покупкиОписание товара
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.
Example request
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.
Example result
Example on a fictional setup (window 2025-01-10, ETH option, one hedge leg).
- 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.
- Completeness: check_cashbalance_chain.py snapshot.json reports 37 rows, 0 breaks, so no cash event in the window was missed.
- 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 |
- 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.
- 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.
Requirements
- Claude Code or a 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
How to install
Unzip into your Claude Code skills folder (~/.claude/skills/ or .claude/skills/ in a project) and start a new session; the skill loads by its description.
Что вы получите
1 файл · 9.88 KB
- exchange-delivery-reconciliation.zipZIP · 9.88 KB
ИИ-инструменты и скрипты
Reconcile a Bybit Options Settlement Against the Exchange
Это объявление показано на языке оригинала (английский).
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.
Теги
Частые вопросы
Доступ открывается сразу?
Да. Это цифровой товар - скачать его можно сразу после оплаты, прямо из своей библиотеки.
Можно ли использовать в коммерческих проектах?
Да. Коммерческое использование разрешено: в своём бизнесе и в том, что вы продаёте. Перепродавать и распространять сам файл нельзя.
Какие условия возврата?
Запросить возврат можно в течение 30 дней. Если что-то не так, оформите заявку в своём заказе - её рассмотрит команда Getly.
Какие форматы и размеры файлов я получу?
Вы скачаете 1 файл - ZIP - всего 9.88 KB.
Обновления бесплатны?
Да - когда продавец выпускает новую версию, вы можете бесплатно скачать актуальные файлы из своей библиотеки. Последние изменения смотрите в истории версий.
Цена
$6.00



