Skip to main content
Configure leverage for trading on Aster exchange. Leverage allows you to control larger positions with less capital.

Features

  • Flexible leverage: Set leverage from 1x to 125x
  • Symbol-specific: Configure different leverage for each trading pair
  • Risk management: Higher leverage increases both potential profits and losses

Aster - Set Leverage

Configure leverage for a specific trading pair on Aster exchange.

Endpoint

POST /api/aster/perp/:walletId/leverage

Path Parameters

Request Body

Request Parameters

Example Request

Success Response

Response Fields

Use Cases

  • Set leverage before opening a position
  • Adjust risk exposure for different trading strategies
  • Configure different leverage levels for various trading pairs
  • Implement dynamic leverage based on market conditions

Important Notes

High Leverage Risk: Higher leverage amplifies both gains and losses. A 125x leverage position can be liquidated with less than 1% adverse price movement.
Leverage must be set before placing orders. The leverage setting applies to all future orders for the specified symbol until changed.
Start with lower leverage (5-10x) when learning to trade perpetual futures. Increase leverage gradually as you gain experience.

Avantis Leverage

Avantis leverage is configured per-trade at execution time (not via a separate API call). Leverage is passed directly in the openPosition request. Limits vary by order type and pair:
Avantis does not have a separate set-leverage endpoint. Leverage is specified in each trade request and applies to that individual position.

Leverage Guidelines

Error Responses

400 Bad Request - Invalid Leverage

400 Bad Request - Invalid Symbol

401 Unauthorized - Missing Wallet ID