Crypto News Guides

What Is dYdX Exchange? How does It Work? Complete Beginner’s Guide[2024]

Centralized exchanges offer an easy entry point to the crypto world with familiar interfaces and quick transactions. However, there’s a key tradeoff: you’re giving a third party control over your assets the minute you use a centralized exchange. While decentralized exchanges have been around for a while, their slower transaction speeds previously held them back.

Enter dYdX — a decentralized trading platform for perpetual contracts with fast and efficient transactions. It offers the simplicity and functionality of a centralized exchange while allowing you to retain full custody of your assets.

In this article, you’ll learn what it is, how it differs from centralized exchanges, and how you can trade using the platform. Let’s dig in.

What Is dYdX Exchange?

dYdX is a decentralized exchange (DEX) that allows users to trade perpetual futures contracts (aka perpetual contracts) for over 35+ cryptocurrencies, including BTC, ETH, and SOL. These financial instruments are particularly appealing to experienced traders looking to take advantage of leverage trading.

It first launched on the Ethereum blockchain, but this became unsustainable, as the growing traffic on the Ethereum network caused gas fees to soar. This was particularly damaging for dYdX as it was subsidizing its users’ gas fees. For this reason, it then moved to the Ethereum layer-2 solution, Starkware, as part of its v3 iteration in 2021.

As part of its commitment to fully decentralize the platform, dYdX launched its v4 iteration on its standalone blockchain, the dYdX chain, using the Cosmos SDK. As a result, all parts of the dYdX v4 protocol are fully decentralized.

The History of dYdX

Founded in August 2017 by ex-Coinbase engineer Antonio Juliano, dYdX Decentralized Trading Platform has become one of the most successful decentralized exchanges. Its name, dYdX, is a clever play on words, as the platform allows users to trade derivatives, and dy/dx is one of the ways that the mathematical function of derivatives is expressed.

Its initial whitepaper outlined the protocols for advanced trading methods like margin trading and covered calls, a compelling niche in the crypto market. The idea quickly caught on, with it achieving a $10 million valuation before generating revenue. 

Since its launch, the protocol has undergone several evolutions, refining both its product offerings and the benefits it offers users.

dYdX on Layer 1

The first version of dYdX used Ethereum smart contracts to power spot and margin trades on the platform. These smart contracts allowed users to offer or accept loans for margin trades without middlemen, thus maintaining its trustless and self-custodial nature. This iteration of the platform allowed for up to 5x leverage trading on major cryptocurrencies like ETH and BTC.

Ultimately, Ethereum’s network congestion made this pretty slow and expensive, especially in periods of high activity. As a result, it sunsetted this version of the protocol on November 1, 2021.

dYdX on Layer 2

In an attempt to make trading as seamless as its centralized counterparts, as well as to lower transaction fees, it shifted its operations to the Layer 2 solution, Starkware. To clarify, Starkware uses Zero-Knowledge (ZK) rollups to enable faster transactions. This version processes trades off-chain on a central order book in batches and then finalizes those batches on-chain.

As a result of using Starkware, it was able to provide its users not only with faster transaction speeds but also with lower gas and trading fees, as well as lower minimum trade sizes. Besides these benefits, dYdX v3 offers users higher leverage than the v2 product (up to 25x), as well as more cryptocurrency trading pairs and cross-margin options (which allow for higher leverage trading). Notably, v3 also marked its shift to focusing solely on perpetual trading, which quickly eclipsed margin trading as the platform’s most popular offering.

While dYdX has always been a fully non-custodial trading platform, it did have some centralized aspects on its Ethereum and Starkware versions. Fully decentralizing the platform was always a major goal, which it finally realized upon the full launch of dYdX Chain and dYdX v4 in November 2023.

dYdX Chain

In a major stride towards decentralization, dYdX v4 moved to open-source all aspects of the platform. Specifically, this meant decentralizing its order book (the list of all buy and sell orders for specific trading pairs) and matching engine (the system that matches buy and sell orders). 

It was able to achieve this thanks to the launch of its fully independent blockchain, dYdX chain, on October 23rd, 2023. Notably, v4 grants users even faster transaction speeds, as this chain claims the ability to process over 2000 transactions per second (TPS) – much faster than the double-digit TPS measurements of both Ethereum and Starkware.

It’s important to note that this chain is completely independent of its parent company, as the dYdX DAO oversees its governance. For example, it is the community that will decide which new exchange pairs of cryptocurrencies will be added via on-chain governance. Similarly, the community will also be the ones to decide whether or not dYdX reintroduces spot and margin trading on the platform.

What’s more, the company no longer takes trading fees from dYdX v4, underscoring its mission to provide users with a community-driven trading experience. Instead, all the fees collected will go to the chain’s stakers and validators.

How Does dYdX Work?

As previously mentioned, both the order book and matching engine of dYdX v4 are decentralized. But how does this work?

First off, users begin by placing a buy or sell order. It supports eight different order types, which are essentially just instructions to buy or sell an asset under certain conditions. Once you place an order on the exchange, a validator node stores it off-chain. 

After the order is placed, validator nodes then communicate with other nodes to find a matching trade. Remember, since it is a decentralized trading platform, users are effectively trading cryptocurrencies with one another: dYdX simply facilitates the trade. 

Let’s say that a user places an order to buy a certain amount of BTC for a certain amount of USDC. The validator nodes must find another user with a matching order to sell BTC for USDC to finalize both trades. Once the nodes identify matching trades, they add these trades to new blocks and propose them to the rest of the network.

It’s important to note here that when you place an order on dYdX it is not processed on-chain until it becomes a finalized trade. This mechanism also allows dYdX to have a much better throughput: it prevents excess data from taking up space on the blockchain. Crucially, this also means that users can submit and cancel orders without having to pay any gas fees. 

Of course, users still have to pay trading fees, 100% of which are used to compensate validators and stakers on the network. The fees are decided on via community governance and calculated as a percentage of the total order. To follow, users must pay these fees in USDC. For example, if you placed an order to buy $100 worth of an asset at a 0.1% trading fee, you would pay a fee of $0.10 in USDC.

dYdX

What Is dYdX for?

As an advanced trading platform, dYdx offers a range of features to traders and investors. Let’s look at how features such as perpetual trading and staking have boosted its popularity.

Perpetual Trading

Perpetuals are a subset of futures contracts that essentially allow you to place a bet on the future price of an asset. However, in contrast to standard futures contracts which close on a predetermined date, perpetuals have no expiration date. Rather, the buyers (longs) and sellers (shorts) of the contract, exchange payments on an ongoing basis according to the difference between the price of the contract and the actual, real-time price of the underlying asset.

Leverage trading is particularly popular in perpetual trading. Trading with leverage means increasing your exposure size on an asset by borrowing money, otherwise called leverage. Traders use leverage to multiply their gains, though, of course, this same tactic can multiply their losses too.

Let’s understand this through an example. Say, you have $100 of capital, and you want to trade $BTC with 10x leverage. The exchange opens up a position of $1000 worth of Bitcoin (BTC), backed by your $100 capital. If the value of BTC moves up by 1%, you get a 10% return on your margin. But, if the market doesn’t move in your favor and the value of your BTC position drops close to your margin amount, the exchange can liquidate your position to repay your loan.

On a centralized exchange, there is an internal algorithm that monitors these market movements and the trader’s position through order books. On the other hand, it uses open-source smart contracts to execute these trades in a transparent, trustless manner. What’s more, you can leverage decentralized liquidity pools, with capital supplied by other traders, to place position bets.

Governance 

dYdX’s native token also doubles as its governance token. Holders can participate in major protocol decisions. They can also propose and vote on protocol upgrades or changes; such as algorithm changes, managing funds, and chain upkeep. 

Governance forums drive the dYdX Governance Process using Improvement Proposals (“DIPs”) to formally approve proposals. Governance smart contracts keep track of each address’ voting power, proposal vote count, and specific timelocks. If a proposal passes a certain threshold of “yes” votes, it becomes part of the official dYdX roadmap. 

Staking

Users can stake their current crypto holdings on the exchange and earn interest in the form of native this token. This serves as an incentive for users to deposit their funds on the platform and promote its usage.

Apart from staking, traders can also choose to provide liquidity to facilitate trades on the platform. dYdX has two main pools — liquidity pools and safety pools — where users can stake USDC coins to earn this token and a share of the trading fees on the platform. 

NFTs

Hedgies is a free 4,200 NFT hedgehog art collection on Ethereum which rewards the exchange’s active users. Every day since February 2023, the top trader by profit and loss (PnL) on it receives a Hedgies NFT. Plus dYdX also maintains weekly leaderboards and distributes Hedgies to the top ten contestants. Thus, these NFTs recognize and incentivize the top traders while simultaneously building a community of exceptional traders. 

A Hedgie acts as the main access pass to an active trading community. For example, a Hedgie unlocks exclusive Discord channels to discuss trade strategies, community events, and much more. Plus holding a Hedgie also gives you a 3% discount on its overall trading fees.

dYdX

dYdX Token: Explained

This token (ethDYDX) is an Ethereum-based multipurpose governance currency for the dYdX exchange. Launched in August 2021, ethDYDX has a total supply of 1 billion tokens. Over five years, these tokens will be accessible according to the following allocation:

  • 27.7% for previous investors in dYdX Trading Inc., the company that created dYdX
  • 15.3% for the founders employees, and other contributors to either dYdX Trading Inc. or the dYdX Foundation
  • 7.0% for future employees and contributors of dYdX Trading Inc. or the dYdX Foundation
  • 26.1% for the Community treasury
  • 23.9% for rewards to traders, stakers, and liquidity providers

After the initial five years, it could become inflationary depending on what the community decides. However, the maximum rate of inflation is set to be 2% per year. Similarly, the community has full control over its 50% allocation. Indeed, governance proposals have changed the initial token allocations since its launch.

The exchange uses its native token to enable governance across the platform. Beyond its governance role, this token directly incentivizes active engagement in many aspects of the protocol, such as retroactive mining, liquidity pools, and perpetual trading. 

While holders of the token received substantial trading discounts at first, this feature was discontinued on September 29, 2023. Currently, the Ethereum-based token ethDYDX is migrating to this chain, aiming to broaden and expand its utility further.

The Technology Behind DYDX

DYDX is built on the Ethereum blockchain and is powered by smart contracts. The protocol uses this protocol standard and has custom smart contracts specifically designed for advanced derivatives trading. Its order book is also maintained on the Ethereum blockchain, and all transactions are public and transparent. 

It also has an order book relayer, an off-chain service that processes and relays trading order data, improving transaction speed. The protocol supports various types of advanced derivatives trading, such as margin trading, perpetual swaps, and options, providing traders with a high degree of customization and flexibility. 

This protocol is designed with an emphasis on self-custody and risk minimization. Users have full control over their funds and positions and can make withdrawals without restrictions at any time. The protocol also incorporates multiple layers of security, including smart contract audits and an insurance fund that provides protection against losses due to unforeseen events.

The Dydx ecosystem

Its ecosystem consists of several components that contribute to the functionality and growth of the protocol: 

  • The trading protocol: the centerpiece of the Dydx ecosystem, allowing users to trade advanced derivatives such as options and futures with a high degree of customization and flexibility. The protocol is fully decentralized and operates on the Ethereum blockchain. 
  • The order book relayer: an off-chain service that processes and relays trading order data, improving transaction speed. 
  • The DYDX token: the native utility token of this protocol, used for paying transaction fees and voting on governance proposals. 
  • Integration with various DeFi protocols, including Compound and Aave, enabling users to deposit their crypto assets and earn yields on their holdings. 
  • Third-party tools and services developed to facilitate the use of this protocol, such as wallets and trading interfaces. 
  • The Dydx Foundation: the organization behind this protocol, responsible for its development and growth. The foundation collaborates with partners and developers to further enhance and expand the protocol. 

The Future of dYdX

Judging from its continued growth and popularity, it is leading the path to decentralizing crypto trading. dYdX v4 lets you maintain self-custody of your cryptocurrency while making your assets work for you in a variety of trade set-ups. 

Decentralizing this chain holds immense implications for the future of crypto trading. It directly eliminates central points of control and reduces regulatory pressure. What’s more, letting the community decide which on-chain pairs to add gives it a competitive edge. Users can collectively influence and choose new trading options, making the platform more dynamic and responsive to their needs.

For this, the roadmap includes becoming 100% decentralized by the end of 2022. The decentralized exchange is currently in its third version. With dYdX v4, the exchange aims to operate as fully decentralized, with no centralized components. 

Most components of the dYdX v3 platform are decentralized; however, the company relies on centralized systems for the orderbook and the matching engine. As a result, a full decentralization of its platform will mean the decentralization of the orderbook and matching engine.

The fourth version of this protocol will be rolled out as an open-source, decentralized and community-controlled trading platform. In addition to full decentralization, the dYdX v4 protocol is expected to see the reintroduction of trading features such as spot, margin and additional synthetic products. The company also intends to bring in improvements to existing margin and collateral options as well as other trade activities.

With dYdX v4, the community will take control away from the company, dYdX Trading Inc., which, as a result, will no longer be able to collect revenue on the trading fees. Upon community approval, the inability to earn revenue will apply to the connected centralized systems as well.

Despite crypto’s inherent goal of the decentralization of finance, centralized exchanges such as Binance and Coinbase dominate the trading landscape in terms of trading volumes. One of the main reasons relates to the ease of regulating centralized entities. With decentralization, however, it intends to give power back to the community of investors while delivering the utmost transparency. Read Cointelegraph’s detailed guide on further improving your understanding of decentralized exchanges and how they work.

Disclaimer ||

The Information provided on this website article does not constitute investment advice ,financial advice,trading advice,or any other sort of advice and you should not treat any of the website’s content as such.

Always do your own research! DYOR NFA

Coin Data Cap does not recommend that any cryptocurrency should be bought, sold or held by you, Do Conduct your own due diligence and consult your financial adviser before making any investment decisions!

    Leave feedback about this

    • Quality
    • Price
    • Service

    PROS

    +
    Add Field

    CONS

    +
    Add Field
    Choose Image