API ReferenceGetting StartedQuick Start

Quick Start

Create an API key and make your first request.

You can call public market-data endpoints with no setup at all. To read your account or trade, you first create an API key.

1. Create an API key

Sign in to SPACEDEX, open Account, then API. Create a new key and choose its permissions. You will see the API key once and the secret key only once, so store the secret somewhere safe. If you lose it, delete the key and create a new one.

PermissionWhat it allows
ReadRead account balances, orders and trades (USER_DATA)
TradePlace and cancel orders (TRADE)
WithdrawSubmit withdrawals (disabled by default; enable with care)
CautionTreat your secret key like a password. Anyone with it can act on your account within the key's permissions. Never commit it to source control or paste it into a browser.

2. Make your first public request

Check connectivity and read the current price of a symbol. No key required.

bash
curl "https://api.spacedex.com/api/v1/ping"
# {}

curl "https://api.spacedex.com/api/v1/ticker/price?symbol=BTCUSDT"
# {"symbol":"BTCUSDT","price":"64210.50"}

3. Make your first signed request

Read your balances. This requires your API key and a signature (full details in Authentication).

bash
API_KEY="your-api-key"
SECRET="your-secret-key"
QUERY="timestamp=$(($(date +%s)*1000))"
SIG=$(echo -n "$QUERY" | openssl dgst -sha256 -hmac "$SECRET" | cut -d' ' -f2)

curl -H "X-SDX-APIKEY: $API_KEY" \
  "https://api.spacedex.com/api/v1/account?$QUERY&signature=$SIG"
NoteThat is the whole loop: pick an endpoint, add auth if it is signed, send the request. The rest of these pages document each endpoint in detail.
© 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.