# Rubin > Rubin is a self-custody decentralized exchange (DEX) for trading crypto perpetual futures and spot markets. Orders and balances settle on-chain through a transparent, high-performance order book, so users keep full control of their funds while accessing deep liquidity, low fees, advanced order types, and a complete trading API. Rubin serves four audiences: individual traders, professional market makers, broker partners, and platform integrators. It combines the self-custody and transparency of on-chain settlement with the speed and order-book depth expected from a professional derivatives venue. Onboarding takes seconds — connect an existing crypto wallet, or create a secure wallet with email or social login. Key facts: - Product: decentralized perpetual futures + spot trading - Custody: non-custodial / self-custody; users trade from a wallet they control - Markets: crypto perpetual futures on BTC, ETH, SOL, XRP, SUI, and HYPE; new markets are added through on-chain governance - Order types: limit, market, stop-loss, take-profit, and conditional orders; cross-margin - Sign-in: connect an EVM wallet (MetaMask, WalletConnect, Coinbase Wallet) and authorize with a single wallet signature, or create a wallet with email or social login - Accounts: an EVM wallet is the account identity — the 0x address you already own is the account, and the chain address (rit1...) is the same 20 bytes shown in another format - Access: web app, mobile app, REST/WebSocket API, API keys, and an MCP server for AI-agent trading - Automation: mint an API key to let a bot, script, or AI agent trade the account; API keys can place and cancel orders but can never withdraw funds - Earning: trading rewards, staking, an automated yield vault, and an affiliate/referral program - Partners: builder fees and embeddable trading for brokers and integrators - Build your own exchange: Code Builder (code.rubin.trade) — an embeddable trading widget, a trading SDK, and an MCP server, published to your own domain - Transparency: a public block explorer for blocks, transactions, validators, and staking ## Trade - [Trade perpetuals](https://rubin.trade/trade/BTC-USD): Open long/short positions on crypto perpetual futures with cross-margin and advanced orders. - [All markets](https://rubin.trade/markets): Browse the full list of perpetual and spot markets with live prices. - [Spot markets](https://rubin.trade/spot): Trade spot directly from your own wallet. - [Portfolio](https://rubin.trade/portfolio): Positions, orders, fills, fees, and account history. ## Earn - [Vault](https://rubin.trade/vault): Deposit to earn yield from automated market-making strategies. - [Staking](https://rubin.trade/staking): Stake to earn rewards and help secure the network. - [Referrals & affiliates](https://rubin.trade/referrals): Earn a share of fees by referring traders. - [Leaderboard](https://rubin.trade/leaderboard): Track and follow top-performing traders. ## Build & integrate - [API keys](https://rubin.trade/api): Create an API key so a bot, script, or AI agent can trade the account. Keys are trade-only — they can place and cancel orders, never withdraw. - [API keys & MCP tokens (quick link)](https://rubin.trade/trading-keys): Same flow as a deep link, with the MCP token for AI agents. - [Code Builder](https://code.rubin.trade): Build your own exchange on Rubin — configure a trading widget visually, embed it with an iframe or the trading SDK, connect the MCP server for AI agents, publish to your own domain, and earn builder fees. - [MCP & AI trading](https://code.rubin.trade/ai): How to connect an AI agent or assistant to Rubin. - [SDK & API docs](https://code.rubin.trade/docs): REST/WebSocket API and trading SDK reference. - [Block explorer](https://explorer.rubin.trade/ritbit-mainnet): Browse blocks, transactions, validators, and staking on Rubin Chain. - For market makers: low-latency order placement, maker rebates, and volume-based fee tiers across all listed markets. - For brokers & integrators: embed Rubin in your own product, route order flow, and earn builder fees on the volume you bring. ## Details - [Full capabilities](https://rubin.trade/llms-full.txt): Expanded description of Rubin's products, EVM support, API keys, Code Builder, and integration options. - [Documentation](https://docs.rubin.trade): Protocol, trading, and governance documentation. - [Press](https://rubin.trade/press): Articles, reviews, and interviews about Rubin in crypto media, plus official logos. - [Terms of Use](https://rubin.trade/terms) - [Privacy Policy](https://rubin.trade/privacy)