Skip to main content

Perps Analytics Endpoints

Analytics and reporting endpoints for perpetual futures trading performance.

GET /delegation/portfolio-management/get-positions

Fetch open positions from exchange with enhanced risk metrics.

Query Parameters

  • exchange_account_id (string, required): The exchange account UUID

Request Example

Response Example

Risk Metrics


GET /portfolio-management/exchange-account/perps/summary

Get combined perp performance summary with symbol-level breakdown.

Query Parameters

  • exchange_account_id (string, required*): The exchange account UUID
  • portfolio_id (string, required*): Portfolio ID - aggregates all accounts
  • start_ts (number, optional): Start timestamp (epoch ms)
  • end_ts (number, optional): End timestamp (epoch ms)
Provide either exchange_account_id or portfolio_id, not both.

Request Example

Response Example

Symbol Performance Metrics


GET /portfolio-management/exchange-account/perps/fills

List individual trade fills for perpetual orders.

Query Parameters

  • exchange_account_id (string, required*): The exchange account UUID
  • portfolio_id (string, required*): Portfolio ID - aggregates all accounts
  • market (string, optional): Filter by market (e.g., “BTC/USDT:USDT”)
  • start_ts (number, optional): Start timestamp (epoch ms)
  • end_ts (number, optional): End timestamp (epoch ms)
  • page (number, optional): Page number (default: 0)
  • size (number, optional): Results per page (default: 100, max: 500)

Request Example

Response Example


GET /portfolio-management/exchange-account/perps/twap-orders

List Hyperliquid TWAP orders with execution metrics.
This endpoint is specific to Hyperliquid exchange accounts.

Query Parameters

  • exchange_account_id (string, required*): The exchange account UUID
  • portfolio_id (string, required*): Portfolio ID - aggregates all accounts
  • symbol (string, optional): Filter by symbol
  • page (number, optional): Page number (default: 0)
  • size (number, optional): Results per page (default: 50, max: 200)

Request Example

Response Example

TWAP Execution Metrics


GET /portfolio-management/exchange-account/perps/rebates

List trading rebates/rewards for an exchange account.
Primarily used for Gate.io VIP rebate programs.

Query Parameters

  • exchange_account_id (string, required*): The exchange account UUID
  • portfolio_id (string, required*): Portfolio ID - aggregates all accounts
  • currency (string, optional): Filter by currency (e.g., “USDT”)
  • start_ts (number, optional): Start timestamp (epoch ms)
  • end_ts (number, optional): End timestamp (epoch ms)
  • page (number, optional): Page number (default: 0)
  • size (number, optional): Results per page (default: 50, max: 500)

Request Example

Response Example