Advertisement. Remove ads.
dYdX (DYDX) just gifted every dev a tiny cash register. Builder Codes add a two-line snippet to any order sent through the exchange’s API: a payout address and a fee in parts per million. When the trade fills, the protocol skims your cut on-chain and kicks it straight to you.
No affiliate dashboards, no spreadsheets, no tokens taped to pigeons. It’s protocol-enforced monetization, stitched directly into the protobuf.
The setup is insultingly simple (simple for those who know what they're doing that is). Pop a BuilderCodeParameters object into the order message, pick a fee up to 10,000 ppm (one percent), and ship. Validation checks the address format and fee cap; bad metadata is bounced before it clogs the mempool.
Everything else is automatic. The fee and recipient hit the ledger, visible on /orders and /fills endpoints, so you can brag, or debug, without guessing.
Why care? Because wallets, Telegram bots, regional front-ends, and quant terminals can now route users into 200-plus perp markets and skim a guaranteed micro-toll. More order flow equals more fills, and fills equal auto-paid revenue that scales with your app, not with your server bill.
No permission, no whitelisting, and no awkward emails to BD asking for a custom rev-share.
Use cases are already sprouting.
Trading terminals can slap on one percent and stay free to use. Mobile wallets can tuck a few basis points into each swipe and finally fund themselves. Even Crypto.com (CRO) jumped in - its Onchain App pipes mobile perp trades straight to dYdX, collects fees with Builder Codes, and leaves users in full custody of their keys.
Win-win, minus the middleman. The kicker? It’s fully transparent. Every tip is audit-friendly, every route traceable. In a world where opaque rebates breed distrust, on-chain attribution feels downright civilized.
Builder Codes don’t just monetize bots; they turn order routing into a protocol-native business model. If your product shoves orders around anyway, why not get paid in basis points instead of karma?
Also See: Compliance As Code: Chainlink’s Big Bet
For updates and corrections, email newsroom[at]stocktwits[dot]com.