Skip to content

Rubin Integration Documentation

This documentation is crafted specifically for developers who want to build trading applications, bots, analytics tools, or integrate Rubin into their own platforms.

You'll find everything you need—from REST & WebSocket API references to integration guides. Whether you're creating a high-frequency trading bot or building a DeFi dashboard, this doc will help you get up and running quickly and securely.

Pick a scenario

Depending on your use case, you can quickly jump to the sections that will help you start integrating right away.

Build a Trading Bot

Use the libraries to automate trading: fetch market data, place and manage orders.

Quick Start Python→Quick Start TypeScript→Quick Start Rust→Connecting to Rubin→Wallet Setup→Trading Guide→Spot Trading→

Stream Real-Time Updates

Receive live market and account data using WebSocket connections.

WebSocket Data Feeds→WebSocket API Reference→Watch Orderbook→Full Node Streaming→

Integrate into Your App

Display market, order, and position data directly in your application.

Integration Guide→Indexer HTTP API→Market Data Guide→Account Data Guide→Get Perpetual Markets→

Access Account Data

Use the Indexer API to query account info, balances, and positions. For actions requiring authentication, use private Node API methods.

Indexer Accounts API→Private Node API→Account Management→Accounts and Subaccounts→Permissioned Keys→

Connect an AI Agent

Let Claude, ChatGPT, Cursor or your own agent trade on Rubin through the MCP server — authorized with one wallet signature, with a trading key that never leaves the server.

AI Agents Overview→Connect a Client→OAuth & Trading Keys→Permissions→

Accept Fiat Payments (Onramp)

Let users buy USDC with fiat currency through SBP and receive it on their Rubin account — the same flow the rubin.trade deposit dialog uses.

Onramp Overview→Signed Requests→Integration Flow→Onramp API Reference→

Onboarding FAQ

Check out the onboarding FAQ.

Onboarding FAQs→