aster-api-spot-trading-v3
Installation
SKILL.md
Aster Spot API Trading (v3 — Testnet)
Base: https://sapi.asterdex-testnet.com. Signed (TRADE/USER_DATA). POST/DELETE: body application/x-www-form-urlencoded.
New order
POST /api/v3/order (W: 1)
| Parameter | Req | Notes |
|---|---|---|
| symbol, side, type | Y | side: BUY/SELL; type → see below |
| timeInForce | N | GTC, IOC, FOK, GTX |
| quantity, quoteOrderQty | N | MARKET BUY: quantity or quoteOrderQty; MARKET SELL: quantity |
| price, stopPrice | N | stopPrice for STOP*, TAKE_PROFIT* |
| newClientOrderId | N | Unique client order ID |
Type-specific required: LIMIT → timeInForce, quantity, price. MARKET → quantity or quoteOrderQty (BUY). STOP/TAKE_PROFIT → quantity, price, stopPrice. STOP_MARKET/TAKE_PROFIT_MARKET → quantity, stopPrice.
Order types: LIMIT, MARKET, STOP, TAKE_PROFIT, STOP_MARKET, TAKE_PROFIT_MARKET.