Multi-venue perpetual accounting standards

Binance, Bybit, and Hyperliquid use conflicting naming conventions, fee tokens, and funding intervals. Standardizing trade records into an isolated relational format prevents miscalculating net strategy edge. Read the companion guide: How to Reconcile Binance, Bybit, and Hyperliquid Perpetual Fills and PnL.

raw fill schema reconciliation across Hyperliquid, Binance, and BybitThree-to-one schema normalization pipeline translating Hyperliquid userFills, Binance userTrades, and Bybit execution/list fields into a canonical audit record. MULTI-VENUE RAW EXPORT TO CANONICAL LEDGER NORMALIZATION HYPERLIQUID (userFills) tid / cloid → trade_id px / sz → price / qty dir ("B/A") → side crossed → maker/taker fee (USDC) → fee_amount closedPnl → price_pnl BINANCE (userTrades) id / orderId → trade_id price / qty → price / qty side → BUY / SELL maker (bool) → role commission → fee (USDT/BNB) realizedPnl → price_pnl BYBIT (v5 list) execId execPrice/Qty side isMaker execFee PnL in closed-pnl CANONICAL ROW • UTC ISO time • Exact Venue • Price & Qty • Isolated Fee • Gross PnL ✓ Auditable Download the Perpetual Execution & PnL Reconciliation Worksheet to standardize multi-venue exports
Three-to-one schema normalization pipeline translating Hyperliquid userFills, Binance userTrades, and Bybit execution/list fields into a canonical audit record. 설명용 교육 다이어그램 · 실시간 시장 데이터 아님
ComponentReconciliation ruleWhy it matters
Execution fillsRecord fill price, exact executed quantity, liquidity role, and timestamp in UTCSeparates maker rebate benefits from taker drag
Fee token valuationIsolate secondary fee deductions (e.g., BNB) and convert to USD at execution timePrevents collateral balance distortion
Funding carryLog every discrete settlement event separately from trade closed PnLIsolates directional alpha from passive carry yield
Cash reconciliationVerify: Net PnL = Gross PnL − Fees ± Funding = Δ BalanceDetects unexpected slippage or liquidation penalties

How to reconcile a multi-venue ledger

  1. Export raw fill and transaction histories from each exchange REST API or CSV exporter.
  2. Normalize client identifiers, symbols, and side flags into universal schema.
  3. Convert token-denominated fees into USD reference values.
  4. Sum gross trade PnL, maker/taker fees, and funding settlements separately.
  5. Audit account ending equity against starting equity plus net cash flow.

The worksheet below gives you the same structured ledger to fill in directly on this page.