Skip to main content
You can set the leverage level for each symbol for your account.
You cannot change the leverage level if you have any open orders or a non zero position.
Leverage management is performed over WebSocket.
  • Endpoint: wss://trade.qfex.com?api_key=YOUR_API_KEY
  • Authenticate within 1 minute of connecting.

Example Request

  • symbol — the symbol to set the leverage for
  • leverage — the leverage level to set

Sample Code

Example Response