Roth IRA
- userId
-
Mathilde Ziemann-Nienow @mathilde.ziemann-nienow6
- name
- Roth IRA
- type
- investment
- balance
- 201839.52
- currency
- CHF
- isActive
- true
- createdAt
Overview
accounts / #407
Roth IRA
#407
Request
curl example
curl -sS \ "https://example-data.com/api/v1/accounts/407" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/accounts/407" ); 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/407"
);
const account = (await res.json()) as Account; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/accounts/407"
)
account = res.json() Response
{
"id": 407,
"userId": 202,
"name": "Roth IRA",
"type": "investment",
"balance": 201839.52,
"currency": "CHF",
"isActive": true,
"createdAt": "2024-10-05T06:13:17.539Z"
}