Developer Portal

Build on top of Causal. Access market data, embed widgets, and create integrations.

Authentication

All API requests require an API key. Include it in the Authorization header:

Authorization: Bearer causal_sk_live_...

Get your API key from the dashboard settings.

SDK Installation

npm install @causal/sdk

Quick Start

import { CausalClient } from '@causal/sdk';

const client = new CausalClient({
  apiKey: 'your-api-key',
});

// Get all markets
const markets = await client.markets.list();

// Get market details
const market = await client.markets.get('tiktok-ban-2025');

// Place an order
const order = await client.orders.create({
  marketId: 'tiktok-ban-2025',
  side: 'YES',
  shares: 100,
});

Rate Limits

Free tier100 req/min
Pro tier1,000 req/min
EnterpriseUnlimited

Embed Widget

Embed market data on your website with a single snippet:

<iframe
  src="https://causal.markets/embed/tiktok-ban-2025"
  width="350"
  height="200"
  frameborder="0"
  style="border-radius: 12px;"
/>

API Playground

Test API endpoints interactively.