API ReferenceSpot TradingPlace an Order

Place an Order

Submit a spot order to the market.

POST/api/v1/orderWeight: 1TRADE

Place a spot order. A MARKET order fills immediately at the best available price; a LIMIT order rests on the book until it fills at your price or better.

ParameterTypeRequiredDescription
symbolSTRINGYesThe trading pair, e.g. BTCUSDT
sideENUMYesBUY or SELL
typeENUMYesLIMIT or MARKET
quantityDECIMALYes*Amount of base asset. Required for LIMIT and for MARKET SELL
quoteOrderQtyDECIMALYes*For a MARKET BUY, spend this much quote asset instead of quantity
priceDECIMALYes*Required for LIMIT orders
timeInForceENUMYes*For LIMIT: GTC, IOC or FOK. Required for LIMIT
clientOrderIdSTRINGNoYour own unique id for the order; echoed back and used to query it
timestampLONGYesRequest time in ms

timeInForce controls a LIMIT order's lifetime: GTC (good til cancelled) rests until filled or cancelled, IOC (immediate or cancel) fills what it can now and cancels the rest, FOK (fill or kill) fills fully at once or not at all.

bash
# LIMIT buy 0.01 BTC at 64000 USDT
curl -X POST -H "X-SDX-APIKEY: $API_KEY" "https://api.spacedex.com/api/v1/order" \
  -d "symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=0.01&price=64000&timeInForce=GTC&timestamp=$TS&signature=$SIG"
json
{
  "orderId": 288274,
  "clientOrderId": "my-order-1",
  "symbol": "BTCUSDT",
  "side": "BUY",
  "type": "LIMIT",
  "price": "64000.00",
  "origQty": "0.01000000",
  "executedQty": "0.00000000",
  "status": "NEW",
  "transactTime": 1717430400123
}
NoteAlways set a clientOrderId. If a network error hides the response, you can query the order by that id to learn whether it was accepted, instead of risking a duplicate.
POST/api/v1/order/testWeight: 1TRADE

Validate an order without sending it to the matching engine. Same parameters as above; a successful test returns an empty object.

© 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.