Builder Codes: Turn dYdX Order Flow into Revenue Streams
Builder Codes: Turn dYdX Order Flow into Revenue Streams
Builder Codes: Turn dYdX Order Flow into Revenue Streams

DYDX

Perps

Builder Codes: Turn dYdX Order Flow into Revenue Streams

Integrate wallets, bots and front-ends across 200+ perp markets and earn fees on every trade.

Seppmos

Researcher

Date

July 22, 2025

Integrate wallets, bots and front-ends across 200+ perp markets and earn fees on every trade.

The Problem

Decentralised trading apps delight users with self-custody but struggle to fund development. Traditional affiliate links rely on off-chain trackers and flaky payouts. Builders need revenue that is native, transparent and automatic.

The Fix: Builder Codes

Think of Builder Codes as on-chain affiliate tags.

These "tags" can be used to monetize on-chain order flow by providing users access to perp markets natively in your wallet, Telegram bot or trading app.

Add a Builder Code to any dYdX order and earn fees whenever your users' orders get filled.

A Builder Code is simply two extra fields—builder_address and fee_ppm—embedded in any dYdX order. When that order fills, the protocol streams your share of the taker fee straight to the address you supplied. No whitelists, dashboards or monthly settlements: the split is enforced at consensus.

message BuilderCodeParameters

string builder_address = 1; // where fees land

uint32 fee_ppm = 2; // parts-per-million, max 10 000 (1%)

Attach the object, broadcast the order, and you’re in business.

Why it Matters

Builder Codes signify a transformation in how DEXs reward ecosystem participants, offering developers a native method to earn from order flow.

  • ❇️ Offer 200+ perp markets to your users

  • ❇️ Set your own builder fee - Control monetization

  • ❇️ No approvals, no rev-share caps, fully permissionless

  • ❇️ Plug & play monetization for wallets, bots, & apps

  • ❇️ Scale with your volume! Your incentives, your rules!

All activity is queryable through the public indexer (/orders, /fills), so you can track exactly how much each integration earns.

Where it Fits

The flexibility of Builder Codes supports a broad range on integrations and use cases:

  1. 🖥 Trading terminals

  2. 📱 Mobile wallets

  3. 🤖 Telegram bots

  4. 🌐 Local-language front-ends

Crypto.com Integrates dYdX Perps

Crypto.com embedded Builder Codes in its On-chain App. Users stay inside their familiar mobile UI, orders are routed and settle directly on-chain on dYdX, and Crypto.com collects fees transparently.

This approach allows Crypto.com to maintain complete control over its mobile user interface while leveraging dYdX's high-performance infrastructure and fee attribution model.

The Bigger Picture

Builder Codes shift economics away from centralised affiliates to open, on-chain attribution. As on-chain volumes grow, that tiny fee percentage compounds—giving builders a sustainable, protocol-aligned business model.

Ready to Build?

Head over to the dYdX documentation for implementation details referring to Builder Codes.

For technical support, questions & topic related discussions with other builders join the dYdX Discord.

The future of trading is permissionless and Builder Codes ensure builders get paid along the way.


Thanks for reading folks!

We hope this article helped you stay up-to-date with the latest developments in the Cosmos ecosystem.

Disclaimer

This article is intended to educate readers about certain topics and should not be considered financial advice in any way.

Table of contents

Title

Share article

Share article

Share article

Stay Informed and Inspired

Join our exclusive subscriber community to never miss out!
By signing up, you'll receive straight to your inbox

Join our exclusive subscriber community to never miss out! By signing up, you'll receive straight to your inbox

Our media partners