{
  "opencollection": "1.0.0",
  "info": {
    "name": "Broker Account Activities Portfolio History API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Portfolio History",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Account Portfolio History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://broker-api.sandbox.alpaca.markets/v2/account/portfolio/history",
            "params": [
              {
                "name": "period",
                "value": "",
                "type": "query",
                "description": "The duration of the data in <number> + <unit>, such as 1D, where <unit> can be D for day, W for week, M for month and A for year. Defaults to 1M."
              },
              {
                "name": "timeframe",
                "value": "",
                "type": "query",
                "description": "The resolution of time window. 1Min, 5Min, 15Min, 1H, or 1D. If omitted, 1Min for less than 7 days period, 15Min for less than 30 days, or otherwise 1D."
              },
              {
                "name": "date_end",
                "value": "",
                "type": "query",
                "description": "The date the data is returned up to, in “YYYY-MM-DD” format. Defaults to the current market date (rolls over at the market open if extended_hours is false, otherwise at 7am ET)"
              },
              {
                "name": "extended_hours",
                "value": "",
                "type": "query",
                "description": "If true, include extended hours in the result. This is effective only for timeframe less than 1D."
              }
            ]
          },
          "docs": "Returns timeseries data about equity and profit/loss (P/L) of the account in requested timespan."
        }
      ]
    }
  ],
  "bundled": true
}