Place Trading Orders
Execute trading orders on supported exchanges. Each exchange has its own endpoint with specific requirements.Supported Exchanges
Aster - Place Order
Execute orders on Aster exchange for perpetual futures trading.Endpoint
POST /api/aster/perp/:walletId/order
Path Parameters
Request Body
Request Parameters
Order Types
MARKET- Execute immediately at best priceLIMIT- Execute only at specified priceSTOP_MARKET- Stop loss (market execution)TAKE_PROFIT_MARKET- Take profit (market execution)
Position Sides
BOTH- One-way mode (default) - single position per symbolLONG- Long position (hedge mode)SHORT- Short position (hedge mode)
Time in Force
GTC- Good Till Cancel (default)IOC- Immediate or CancelFOK- Fill or Kill
Example Request
Success Response
Hyperliquid - Place Order
Execute orders on Hyperliquid exchange for perpetual futures trading.Endpoint
POST /api/trading/hyperliquid/orders
Headers
Request Body
Request Parameters
Hyperliquid uses simple asset symbols like
BTC, ETH, HYPE. The price field should be provided for both MARKET and LIMIT orders.Example Request
Success Response
Lighter - Place Order
Execute orders on Lighter DEX using API credentials from your Lighter account.Endpoint
POST /api/trading/lighter/orders
Query Parameters (Required)
Full Example URL
Request Body
Request Parameters
Lighter uses spot token symbols like “USDC”. Quantity is in base asset units.
Example Request
Success Response
Avantis - Place Order (Client-Side Execution)
Avantis trades are executed client-side via on-chain transactions on the Base network. Unlike other exchanges, orders are not routed through the Tide backend — the frontend signs and submits transactions directly to Avantis smart contracts.Open Position
Request Parameters
Order Types
Leverage Limits
Precision
Supported Pairs
Contract Addresses (Base Mainnet)
Error Responses
400 Bad Request - Missing Parameters
400 Bad Request - Invalid Order Type
401 Unauthorized - Missing Wallet ID
403 Forbidden - Invalid API Credentials (Lighter)
500 Internal Server Error
Order Types
Market Orders
Execute immediately at the best available price.Limit Orders
Execute only at the specified price or better.Important Notes
Wallet ID Header: For Aster and Hyperliquid, you must include the
x-wallet-id header with your server wallet ID.Symbol Formats:
- Aster:
BTCUSDT,ETHUSDT - Hyperliquid:
BTC,ETH,HYPE(simple asset symbols) - Lighter:
USDC,USDT - Avantis:
ETH,BTC,SOL(simple asset symbols, mapped to pair index)