Skip to main content

Endpoint

POST /info

Request Body

ParameterTypeDescription
type*stringMust be "portfolio"
user*stringUser wallet address
periodstringOne of perpDay, perpWeek, perpMonth, or perpAllTime

Response

{
  "accountValueHistory": [[1702512000000, "10000.00"]],
  "pnlHistory": [[1702512000000, "0.00"]],
  "vlm": "0",
  "status": "ok",
  "warnings": [
    {
      "asset": "BTC",
      "assetId": "00020000",
      "timestamp": 1702515600000,
      "type": "perp",
      "reason": "No price data available for timestamp"
    }
  ]
}

Response Fields

FieldTypeDescription
accountValueHistoryarray[timestamp, value] points for account value history
pnlHistoryarray[timestamp, value] points for cumulative PnL history
vlmstringReserved field, currently "0"
status"ok" | "degraded"degraded means some history points were computed with warnings
warningsarrayMissing-price warnings encountered during historical reconstruction

Notes

  • Default period is perpWeek. - vlm is currently reserved and returns "0". - If the price aggregator is unavailable, the handler returns empty histories with status: "ok". - status: "degraded" indicates the response is usable but one or more price lookups emitted warnings.