Skip to Content
Scalar

API Reference

REST and WebSocket APIs for trading and market data.

Scalar has two REST APIs and two WebSocket feeds. New to the API? Start with Build on Scalar, which signs and submits an order step by step.

APIBase URL on testnetAuth
Trading RESThttps://testnet-api.scalar.marketSigned orders. A SIWE bearer token for private reads and cancels.
Trading WebSocketwss://testnet-api.scalar.market/wsThe same SIWE token, in the authenticate frame.
Market data WebSocketwss://testnet-api.scalar.market/market-data/wsNone
Data RESThttps://data.scalar.marketNone, except to set a username

Each REST endpoint has its own page with parameters, response samples, TypeScript types and a playground. The WebSocket feeds are stateful, so they are documented frame by frame on one page.