Docs

client.resources.<vaults|markets|funds>.select

Read only the canonical detail fields required by a product surface.

Package@torq-finance/sdk
Signatureclient.resources.vaults.select(resourceId, fields)

Behavior

Provides typed top-level and dotted field selection for vault, market, and recovery-fund detail models while preserving resource identity, address, chain, and freshness evidence.

Example

const card = await torq.resources.vaults.select(vaultId, [
  'netApyBps',
  'totalAssets',
  'portfolioLiquidity.immediatelyAvailableAssets',
  'publicMetrics.queueStatus',
]);

Security boundary

Unsupported or unavailable paths fail with invalid_fields. Do not substitute an inferred value when a canonical field is absent.

See the API Reference for the governed endpoint contract and the workflow guide for canonical completion semantics.