Cookbook#
Task-oriented, runnable recipes for common TetraFi flows. Use the filters below to narrow by persona (Taker / Solver / Ops), language (TypeScript / Python), and level (Beginner / Advanced). Each card opens its snippet on the one-page recipe book.
Filter10 of 10 recipes
Persona
Language
Level
12345678910
Submit an RFQ and Accept the Best Quote
taker·TS + Py·beginner
Poll Settlement to Completion
taker·TS + Py·beginner
Check Compliance Before Trading
taker·TS + Py·beginner
List Available Corridors
taker·TS + Py·beginner
Stream Settlement Events via WebSocket
taker·TS + Py·advanced
Handle Rate Limits with Exponential Backoff
All personas·TS + Py·advanced
Register a Webhook Endpoint
ops·TS + Py·beginner
Fetch the WORM Audit Trail
ops·TS + Py·advanced
Cross-Chain Swap: Ethereum → Optimism
taker·TS + Py·advanced
Switch Between Sandbox and Production
All personas·TS + Py·beginner
How these recipes are organised#
- Self-contained - each snippet works end-to-end against the sandbox with a valid API key; no cross-recipe setup assumed.
- TS + Python side-by-side - every recipe toggles between languages with identical semantics.
- Prerequisites -
@tetrafi/sdk(npm) ortetrafi(PyPI) installed.TETRAFI_API_KEYset.