API access
BetaProgrammatic access to private market data. Default rate limit: 100 req/min. WebSocket streams are on the Institutional tier.
API key
Keys are scoped to your account. Revoke at any time.
Quick start
import truffle
client = truffle.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 pricesGET
/api/v1/companies/:id/orderbookOrder book depth for a companyPOST
/api/v1/ordersPlace a buy/sell orderGET
/api/v1/predictionsList all prediction marketsPOST
/api/v1/predictions/:id/betPlace a prediction betGET
/api/v1/portfolioGet your positions and balancesPOST
/api/v1/shareShare a secondary with the networkGET
/api/v1/perps/:idPerp market data (mark, funding, OI)WS
/ws/v1/pricesReal-time price stream via WebSocketSDKs
Python
v0.4.2pip install truffleTypeScript
v0.3.1npm i @mithril/sdkGo
v0.2.0go get truffle.dev/sdkData 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