How it works

Trade hash chain

Every trade event is linked into a public chain of SHA-256 hashes, so anyone can verify that the trading history was never changed. Nothing can be edited, reordered or removed without breaking every later hash.

What is chained

Every open, close, partial close and liquidation creates a record with a sequence number. Its hash covers the previous record's hash and the record's public fields:

hash = sha256( "trade-chain:v1" | seq | prevHash | positionId | market | side | kind |
               closeSeq | price | snapshotId | notional | leverage | realizedPnl | timeMicros )
  • Fields are joined with |.
  • price is in units of 10⁻⁸ USD, notional and realizedPnl in micro-USDC, and the time in microseconds since 1970.
  • The first record's prevHash is 64 zeros.

Why it matters

To change one past trade, an operator would have to recompute the hash of every trade after it. Anyone who saved an earlier hash, or a published anchor, would see the difference. The database also refuses edits and deletions of trade records.

Check it yourself

On the History page, each row shows its sequence number and hash. Verify recomputes the hash in your own browser from the raw fields, and checks that it links to the previous record. It does not rely on the server's own verdict.

For a full check, see Verify the chain.

Anchoring

The chain is built so that batches can be published on a public blockchain. A single on-chain transaction would then pin the whole history up to that point.

Note

On-chain publishing isn't live yet. Anchors are currently recorded internally as pending; this page will list the network and transactions once they are.