Injective Book Lab Go → WebAssembly · mainnet
loading Go runtime… endpoint: none yet

A Go order book client and a frequent batch auction (FBA) matcher, compiled to WebAssembly. Every book below is a live exchange-module query to Injective mainnet, decoded and matched in Go with 18-digit fixed-point decimals.

Built by Edward Tay for a job application to Injective Labs. Independent work; not affiliated with or operated by Injective Labs. Simulations only; nothing is signed or sent. Source: github.com/edwardtay/injective-booklab · browse files.

01 Market

Loading markets from the chain…

02 Taker order simulator

Walks the live book level by level, prices the fill at the market's on-chain taker fee, and runs the exchange module's tick and min-notional checks on the order.

03 Live order book

Pick a market.

04 Endpoint health hedged reads + seq guard

The Go client starts the next public LCD when one errors or takes over 400 ms, keeps the first valid answer, and rejects any snapshot whose seq is lower than one it already returned (a lagging node).

EndpointOKErrorsStaleLast ms · seq
No requests yet.

05 Batch auction lab

Drop a block's worth of new orders onto the live book and clear it the way the exchange EndBlocker does: market orders first against the start-of-block book at one uniform price per side, then new limit orders merged with the book and matched while the spread is negative, at one clearing price inside the matched range (resting mid for spot, mark price for perps, else the nearer bound).

IDTypeSidePrice (worst for market)Quantity