Investment Portfolio
- userId
-
Jaylon Conroy @jaylon_conroy22
- name
- Investment Portfolio
- type
- investment
- balance
- 54463.84
- currency
- CNY
- isActive
- true
- createdAt
Overview
accounts / #413
Investment Portfolio
#413
Request
curl example
curl -sS \ "https://example-data.com/api/v1/accounts/413" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/accounts/413" ); const account = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/accounts.d.ts https://example-data.com/types/accounts.d.ts
import type { Account } from "./types/accounts";
const res = await fetch(
"https://example-data.com/api/v1/accounts/413"
);
const account = (await res.json()) as Account; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/accounts/413"
)
account = res.json() Response
{
"id": 413,
"userId": 205,
"name": "Investment Portfolio",
"type": "investment",
"balance": 54463.84,
"currency": "CNY",
"isActive": true,
"createdAt": "2025-01-09T04:19:48.885Z"
}