POST
https://prv.gateway.indexer.biya.io
/
injective_portfolio_rpc.InjectivePortfolioRpc
/
AccountPortfolio
AccountPortfolio
curl --request POST \
  --url https://prv.gateway.indexer.biya.io/injective_portfolio_rpc.InjectivePortfolioRpc/AccountPortfolio \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_address": "<string>"
}
'
Get the account’s portfolio.
account_address
string
required
Account address (required)

Response

{
  "portfolio": {
    "account_address": "string",
    "bank_balances": [
      {
        "denom": "string",
        "amount": "string",
        "usd_value": "string"
      }
    ],
    "subaccounts": [
      {
        "subaccount_id": "string",
        "denom": "string",
        "deposit": {
          "total_balance": "string",
          "available_balance": "string",
          "total_balance_usd": "string",
          "available_balance_usd": "string"
        }
      }
    ],
    "positions_with_upnl": [
      {
        "position": {
          "ticker": "string",
          "market_id": "string",
          "subaccount_id": "string",
          "direction": "string",
          "quantity": "string",
          "entry_price": "string",
          "margin": "string",
          "liquidation_price": "string",
          "mark_price": "string",
          "aggregate_reduce_only_quantity": "string",
          "updated_at": "number",
          "created_at": "number"
        },
        "unrealized_pnl": "string"
      }
    ]
  }
}