{
  "opencollection": "1.0.0",
  "info": {
    "name": "Core Portfolio API",
    "version": "0.1.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "/core/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Portfolio",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get overview",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "includeBase",
                "value": "",
                "type": "query",
                "description": "Whether to include total and available amounts denominated in the base asset, in addition to the selected denomination."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves an overview of the portfolio, including the total portfolio value and a breakdown of individual holdings."
        },
        {
          "info": {
            "name": "Get performance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/performance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio performance."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the performance of the portfolio, including the average cost, total invested, and unrealized gains (gains and losses)."
        },
        {
          "info": {
            "name": "Get historical balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/historical-balance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio historical data."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the historical balance of the portfolio, including the total and available balance over time."
        },
        {
          "info": {
            "name": "Get asset performance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/assets/:asset/performance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "asset",
                "value": "",
                "type": "path",
                "description": "The asset code."
              },
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio performance."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the performance of an asset in the portfolio, including the average cost, total invested, and unrealized gains (gains and losses)."
        },
        {
          "info": {
            "name": "Get many assets performance",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/assets/_mget/performance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio performance."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the performance of multiple assets in the portfolio, including the average cost, total invested, and unrealized gains (gains and losses) for each asset."
        },
        {
          "info": {
            "name": "Get asset historical balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/assets/:asset/historical-balance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "asset",
                "value": "",
                "type": "path",
                "description": "The asset code."
              },
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio historical data."
              },
              {
                "name": "includeBase",
                "value": "",
                "type": "query",
                "description": "Whether to include total and available amounts denominated in the base asset, in addition to the selected denomination."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the historical balance of a specific asset in the portfolio, including the total and available balance over time."
        },
        {
          "info": {
            "name": "Get account performance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/:accountId/performance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account id."
              },
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio performance."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the performance of an account in the portfolio, including the average cost, total invested, and unrealized gains (gains and losses)."
        },
        {
          "info": {
            "name": "Get many accounts performance",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/_mget/performance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio performance."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the performance of multiple accounts in the portfolio, including the average cost, total invested, and unrealized gains (gains and losses) for each account."
        },
        {
          "info": {
            "name": "Get account historical balance",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/:accountId/historical-balance",
            "headers": [
              {
                "name": "X-On-Behalf-Of",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Ip",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Agent",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Origin",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Country",
                "value": ""
              },
              {
                "name": "X-Uphold-User-Subdivision",
                "value": ""
              },
              {
                "name": "X-Uphold-User-City",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "The account id."
              },
              {
                "name": "denomination",
                "value": "",
                "type": "query",
                "description": "Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default."
              },
              {
                "name": "interval",
                "value": "",
                "type": "query",
                "description": "The interval for the portfolio historical data."
              },
              {
                "name": "includeBase",
                "value": "",
                "type": "query",
                "description": "Whether to include total and available amounts denominated in the base asset, in addition to the selected denomination."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/core/oauth2/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves the historical balance of a specific account, including the total and available balance over time."
        }
      ]
    }
  ],
  "bundled": true
}