API ReferenceGetting StartedIntroduction

Introduction

Overview of the SPACEDEX REST and WebSocket API.

The SPACEDEX API lets you access market data, manage your account, and place spot trades programmatically. It is a fast, predictable interface built for bots, dashboards, and integrations of every size.

There are two ways to talk to SPACEDEX: a REST API for requests and responses, and a WebSocket API for real-time streaming of prices, order-book updates and account events.

Base endpoints

InterfaceBase URL
RESThttps://api.spacedex.com
WebSocketwss://stream.spacedex.com

Conventions

Every REST response is JSON. All timestamps are Unix time in milliseconds. Quantities and prices are returned as strings to preserve precision, so parse them with a decimal-safe type, never a float, before doing math.

TermMeaning
SymbolA trading pair such as BTCUSDT (base asset BTC, quote asset USDT)
Base assetThe asset you are buying or selling (BTC in BTCUSDT)
Quote assetThe asset the price is denominated in (USDT in BTCUSDT)
WeightThe rate-limit cost of an endpoint (see Rate Limits)

Endpoint security

Each endpoint carries a security type. Public endpoints need nothing. Signed endpoints (TRADE and USER_DATA) require an API key and a request signature, described in Authentication.

Security typeRequirement
PUBLICNo key. Market data and exchange metadata.
API_KEYA valid API key header, no signature.
TRADEAPI key + signature. Places and cancels orders.
USER_DATAAPI key + signature. Reads private account data.
NoteThis documentation describes API version v1. Breaking changes ship under a new version path and are announced in the Changelog.
© 2018–2026 fexwave All rights reserved
Risk Warning

Cryptocurrencies and their derivatives are innovative financial products with great volatility and high investment risks. Although fexwave is committed to providing users with easy-to-use trading tools, trading itself is still a highly sophisticated field. Trading digital assets and their derivatives are subject to high market risk and price volatility and may result in partial or total loss of account funds. You must carefully consider and exercise clear judgment to evaluate your financial situation and the aforementioned risks before using fexwave Services. You shall be responsible for all losses arising therefrom. If necessary, please consult relevant professionals to make informed decisions before investing. By accessing, downloading, using or clicking on “I agree” to accept any fexwave Services provided by fexwave, you agree that you have read, understood and accepted all of the terms and conditions stipulated in fexwave's Terms of Use as well as our Privacy Policy.

Trading by copying or replicating the trades of other traders involves a high level of risks, even when copying or replicating the top-performing traders. Past performance of a fexwave community member is not a reliable indicator of future performance. Content on fexwave's trading platform is generated by members of its community and does not contain advice or recommendations by or on behalf of fexwave.