Skip to main content
@trdrs/sdk is the TypeScript client for this API. Zero dependencies, works in Node and the browser, and every method is generated from the same OpenAPI document this site renders — so the SDK cannot describe a route the engine does not serve. Install from the repository until the first npm release:

Construct once

The right key is chosen per operation from the contract’s own security block, so a partner call sends the partner key and a trading call sends the firm key without you routing anything.

Call a route

Every method carries the operation’s summary and semantics as JSDoc, so an editor shows you the idempotency and atomicity rules without leaving the call.

Stream

Handle refusals

A 423 is a state to display, not an error to retry — the SDK names it so you cannot mistake it.

Regenerating

The generated methods and types are committed, so nothing is fetched at build time. When the engine ships a route, npm run generate rewrites them from the served document, and a test fails if the committed output ever drifts from the contract.