API Access

BETA

Programmatic access to private market data. Rate limit: 100 req/min. WebSocket available on Institutional tier.

API Key

Keys are scoped to your account. You can revoke them at any time.

Quick Start

import mithril

client = mithril.Client(api_key="mith_xxx")

# Get all companies
companies = client.companies.list()

# Place a buy order
order = client.orders.create(
    company="anthropic",
    side="buy",
    price=148.50,
    size=100,
    instrument="secondaries"
)

print(f"Order {order.id}: {order.status}")

REST Endpoints

GET/api/v1/companiesList all companies with latest prices
GET/api/v1/companies/:id/orderbookOrder book depth for a company
POST/api/v1/ordersPlace a buy/sell order
GET/api/v1/predictionsList all prediction markets
POST/api/v1/predictions/:id/betPlace a prediction bet
GET/api/v1/portfolioGet your positions and balances
POST/api/v1/shareShare a secondary with the network
GET/api/v1/perps/:idPerp market data (mark, funding, OI)
WS/ws/v1/pricesReal-time price stream via WebSocket

SDKs

Python
v0.4.2
pip install mithril
TypeScript
v0.3.1
npm i @mithril/sdk
Go
v0.2.0
go get mithril.dev/sdk

Data Licensing

Research

$500/mo
  • Full price history
  • Order book snapshots
  • Prediction market data
  • 100 req/min

Compliance

Popular
$2K/mo
  • Everything in Research
  • KYC/AML event feed
  • Transfer audit trail
  • Dedicated support

Institutional

$5K/mo
  • Everything in Compliance
  • Real-time WebSocket
  • Raw deal flow data
  • Custom integrations