Get vault total value

GET/vault/{vault_id}/total

Get the total USD value across all vault assets.

Parameters

Path

  • vault_idstringrequired

    Vault id.

Query

  • include_currencystringoptional

    Currencies to include (e.g. usd).

Responses

The total vault value.

    • livemodeboolean

      true when the API key that made the request acts in a live environment, false in a sandbox.

      Show full description

      It is on every object a keyed request answers with — the resource itself, each item of a list, and each object inside a list a resource carries — but not on the success/message envelope or on an object nested directly in another (such as destination, fees or pagination), so a payload read on its own still says which side of the boundary it came from. The two public endpoints answer without it. It is derived from the key at the time of the response and is never stored.

    • total_usdstring

      Combined USD value of every asset in the vault.

    • included_currencyarray<string>
Request
curl "https://api.stridge.com/v1/vault/string/total" \
  -H "X-API-Key: $STRIDGE_API_KEY"

Set your api key as STRIDGE_API_KEY (sent as X-API-Key).

Response200
"livemode": true,
"total_usd": "25000.00",
"ETH",
"USDT"
]
}
}