Pacifica
  • Getting Started
    • Closed Alpha Guide
      • Link To Guide PDF
    • Closed Alpha Trading Competition
  • Trading on Pacifica
    • Overview
    • Contract Specifications
      • Oracle Price & Mark Price
      • Settlement Mechanism
    • Order Types
      • Market Order
      • Limit Order
      • Order Rules & Constraints
    • Margin & Leverage
    • Funding Rates
    • Liquidations
  • API Documentation
    • API
      • REST
        • Account
        • Agent
        • Funding
        • Info
        • Kline
        • Orders
        • Portfolio
        • Positions
        • Models
      • Websocket
        • Orderbook
        • Trades
        • Orders
        • Positions
        • User Order History
        • User Trade History
        • Candle
        • Account Data
    • Specification
  • Other
    • Brand Assets
    • Contact Us
    • Glossary of Terms
Powered by GitBook
On this page
  1. API Documentation
  2. API
  3. REST

Portfolio

PreviousOrdersNextPositions

Get Portfolio History

get

This endpoint allows users to get portfolio history.

Query parameters
accountstringRequired

User account address (required)

start_timeinteger · int64 | nullableOptional

Start time in milliseconds (optional)

end_timeinteger · int64 | nullableOptional

End time in milliseconds (optional)

granularity_in_minutesinteger · int64 | nullableOptional

Time granularity in minutes (optional)

limitinteger · int64 | nullableOptional

Maximum number of records to return (optional, defaults to system defined limit)

offsetinteger · int64 | nullableOptional

Number of records to skip (optional, defaults to 0)

Responses
200
Successfully retrieved portfolio history
application/json
400
Invalid request
401
Unauthorized
500
Internal server error
get
GET /api/v1/portfolio?account=text HTTP/1.1
Host: 
Accept: */*
[
  {
    "account_equity": "997.88760080",
    "timestamp": "2025-03-26T16:42:00Z"
  },
  {
    "account_equity": "997.98277520",
    "timestamp": "2025-03-26T16:41:00Z"
  }
]