Writing

Notes on trading, infrastructure, and building in public.

2026-09-10 4 min read

Pagination, Part 4: Best Practices

What an API should expose to be walked correctly, and what a client should do to walk it safely.

apisengineeringdata
2026-09-09 6 min read

Pagination, Part 3: Range Walks and the Truncation Anchor

Endpoints bounded by a start and an end truncate whatever falls between them from one end. Which end decides the only direction a client can walk safely, and almost nobody documents it.

apisengineeringdata
2026-09-08 7 min read

Pagination, Part 2: Tokens and Key-Based Cursors

Cursor pagination addresses rows by what they are instead of where they are. Opaque tokens, key cursors, and the boundary problem when the key is not unique.

apisengineeringdata
2026-09-07 7 min read

Pagination, Part 1: The Model and Index-Based Paging

A formal model of paginated APIs, page and offset paging as slices of an ordered sequence, and what breaks the moment the data moves under the walk.

apisengineeringdata
2026-09-06 8 min read

Margining and Liquidations, Part 4: Venue Comparison

How leading derivatives venues implement isolated, cross, and portfolio margin—and where similar product names conceal different risk models.

derivativesriskmarket structure
2026-09-05 3 min read

Margining and Liquidations, Part 3: Scenario-Based Margining

How scenario-based portfolio margin measures joint risk, credits real hedges, and adds buffers for risks its stress grid can miss.

derivativesriskmarket structure
2026-09-04 3 min read

Margining and Liquidations, Part 2: Cross Margining

How cross margin pools collateral across positions, calculates account-wide requirements, and fails to recognize offsetting hedges.

tradingderivativesrisk
2026-09-03 2 min read

Margining and Liquidations, Part 1: Isolated Margining

How isolated margin determines position limits, collateral requirements, and liquidation thresholds for futures and perpetuals.

tradingderivativesrisk
2026-06-30 2 min read

Introducing Tribulnation Catalogue: One ID for Every Asset, Everywhere

Every exchange invented its own names for everything. Catalogue is the translation layer — a free, open API for crypto assets, networks, and instruments.

engineeringopen source
2026-05-11 2 min read

Introducing Typed: Exchange Clients That Actually Work

Why we built our own async, validated Python clients for every crypto exchange we trade on — and why we're making them public.

engineeringapi designopen source
2026-01-23 3 min read

The Proper Way to Write API Clients

How to write API clients for simplicity, precision and ease of use.

engineeringapi design
2026-01-22 2 min read

Perps and Arbitrage

An introduction to perpetual instruments and the arbitrage that makes them work.

tradingderivativesmarket structure
2026-01-20 4 min read

Futures: Linearity and Equivalence

An introduction to futures contracts, their pricing, linearity, and equivalence of multiple positions.

tradingderivatives