API reference hub
Cube Exchange API
Introduction
Cube is a hybrid exchange built from first principles for the future of digital and traditional asset trading. At it's core, a low-latency matching engine powers trading at 200'000 operations per second with 200µs latency, and a decentralized settlement layer powers a non-custodial peer-to-peer settlement that ensures the safety of your assets.
Overview
This documentation covers a large part of the Cube API, and is roughly organized into the following:
- Exchange Info: Information about the exchange, such as assets, markets, account management, and more.
- Market Data: Market data, including level 3 (order by order) book data, trade summaries, and more.
- Order Entry: Trading and order management.
- Perpetual Futures: Information about our perpetual futures contracts, including contract specifications, margin requirements, funding, settlement, and liquidation.
- Fees: Information about fees on Cube.
Connectivity
- REST: For market data snapshots and order entry.
- Websocket: For realtime market data and trading.
- TCP FIX and UDP Multicast: Out lowest latency connectivity. Reach out for more information.
Environments
If you're interested in building with us, reach out about getting access to our staging environment, where you can test your integrations before going live!
Contact
Reach out to us at engineering@cube.xyz for questions or feedback!
Docs
Documentation map
Section 01
Exchange Info
Exchange Info01
Section 02
Market Data
Market Data01
Websocket API
Market Data02
REST API
Section 03
Order Entry
Order Entry01
Terminology
Order Entry02
WebSocket API
Order Entry03
REST API
Order Entry04
Implied Matching
Order Entry05
Market Price Protection
Section 04
Perpetual Futures
Perpetual Futures01
Perpetual Futures
Perpetual Futures02
Contract Specifications
Perpetual Futures03
Margin
Perpetual Futures04
Funding
Perpetual Futures05
Settlement
Perpetual Futures06
Liquidation
Perpetual Futures07
API
Section 05
Fees
Fees01