DocsQuick Start Guide
Quick Start Guide
Get up and running with Cedar in under 5 minutes.
Cedar provides a unified API to trade across every major crypto venue — CEX, DEX, and prediction markets. This guide walks you through installation, authentication, and placing your first trade.
1. Install the SDK
bash
# Python
pip install cedar-sdk
# TypeScript / Node.js
npm install @cedar/sdk2. Initialize the Client
python
from cedar import Client
client = Client(api_key="ck_live_your_api_key")3. Place Your First Trade
python
# Market buy 0.01 BTC — Cedar's SOR finds the best price
order = client.order.create(
symbol="BTC/USDT",
side="buy",
type="market",
amount=0.01
# No venue specified → SOR auto-routes to best price
)
print(order.status) # → "filled"
print(order.filled_price) # → 95420.50
print(order.venue) # → "binance" (auto-selected)
print(order.fee) # → 0.1% of trade valueThat's it. Cedar handles venue selection, order routing, authentication, and fee calculation. Your agent just describes what it wants to trade.