Dashboard: API examples

Contract-derived requests, potential responses and API links for dashboard.

Generated from the public OpenAPI. Examples illustrate the contract and are not live results. Use your assigned gateway, credentials and identifiers. The snippets do not execute automatically.

Use Node.js 22 or later. Copy the setup below into an .mjs file, set QFP_BASE_URL and QFP_ACCESS_TOKEN, then append the operation snippet you need. No repository checkout or downloaded client is required. Keep secrets in your backend and persist each write key and body before sending.

Request setup

const required = name => {
  const value = process.env[name];
  if (!value) throw new Error(`Set ${name} before running this example`);
  return value;
};
const baseUrl = required('QFP_BASE_URL').replace(/\/$/, '');
if (!/^https:\/\//.test(baseUrl)) throw new Error('Use your assigned HTTPS gateway');
const token = required('QFP_ACCESS_TOKEN');
const segment = value => encodeURIComponent(value);
async function request(method, path, body, key) {
  const headers = { Authorization: `Bearer ${token}`, 'API-Version': '1.0.0', Accept: 'application/json' };
  if (key) headers['Idempotency-Key'] = key;
  const multipart = body instanceof FormData;
  if (body !== undefined && !multipart) headers['Content-Type'] = 'application/json';
  const response = await fetch(baseUrl + path, {
    method, headers, body: body === undefined ? undefined : multipart ? body : JSON.stringify(body),
    signal: AbortSignal.timeout(30_000), redirect: 'error',
  });
  const text = await response.text();
  const data = text && response.headers.get('content-type')?.includes('json') ? JSON.parse(text) : text || null;
  if (!response.ok) {
    const error = new Error(`HTTP ${response.status}`);
    Object.assign(error, { status: response.status, data, headers: response.headers });
    throw error;
  }
  return { status: response.status, data };
}

getSummary

Dashboard summary with KPIs, instruments, compliance, and FX rates. API Reference · Integration guide

GET /api/dashboard/summary

ParameterLocationRequired
API-VersionheaderYes
const body = undefined;
const result = await request('GET', '/api/dashboard/summary', body, undefined);
console.log(result.status, result.data);

Replace angle-bracket placeholders before calling. Persist any idempotency key with the business instruction.

Potential responses

Documented statuses: 200, 401.

Example 200 (default); see the reference for other outcomes.

{
  "instruments": [
    {
      "id": "NXUSD-D1",
      "symbol": "NXUSD-D1",
      "name": "Tokenised USD Deposit",
      "ccy": "USD",
      "network": "Overledger \u00b7 Ethereum",
      "outstanding": 1210000000,
      "holders": 412,
      "status": "active"
    }
  ],
  "totalOutstandingUsd": 2556397961.78,
  "totalReservesUsd": 2556397961.78,
  "reserveRatio": 100,
  "totalHolders": 1284,
  "compliance": {
    "pendingKyc": 5,
    "restrictedWallets": 3,
    "pendingApprovals": 2
  },
  "fx": {
    "USD": 1,
    "EUR": 1.08,
    "JPY": 0.006369426751592357,
    "GBP": 1.28
  }
}

For CSV/download endpoints, the response may be text rather than JSON. The request helper preserves that distinction.

getIssuance

Issuance breakdown by period. API Reference · Integration guide

GET /api/dashboard/issuance

ParameterLocationRequired
API-VersionheaderYes
periodqueryNo
const body = undefined;
const result = await request('GET', '/api/dashboard/issuance', body, undefined);
console.log(result.status, result.data);

Replace angle-bracket placeholders before calling. Persist any idempotency key with the business instruction.

Potential responses

Documented statuses: 200, 400.

Example 200 (thirtyDays); see the reference for other outcomes.

{
  "period": "30D",
  "periodLabel": "last 30 days",
  "instruments": [
    {
      "symbol": "NXUSD-D1",
      "ccy": "USD",
      "minted": 341000000,
      "redeemed": 187000000,
      "net": 154000000,
      "backingRatio": 100
    }
  ],
  "totals": {
    "mintedUsd": 634847133.76,
    "redeemedUsd": 359878980.89,
    "netUsd": 274968152.87,
    "reserveCoverPct": 100,
    "reservesHeldUsd": 2556397961.78
  }
}

For CSV/download endpoints, the response may be text rather than JSON. The request helper preserves that distinction.

getActivity

Recent activity events. API Reference · Integration guide

GET /api/dashboard/activity

ParameterLocationRequired
API-VersionheaderYes
limitqueryNo
const body = undefined;
const result = await request('GET', '/api/dashboard/activity', body, undefined);
console.log(result.status, result.data);

Replace angle-bracket placeholders before calling. Persist any idempotency key with the business instruction.

Potential responses

Documented statuses: 200, 401.

Example 200 (default); see the reference for other outcomes.

{
  "events": [
    {
      "id": "e1",
      "type": "Mint",
      "instrument": "NXUSD-D1",
      "amount": 50000000,
      "ccy": "USD",
      "wallet": "td:tdbank:9f3c...a1e4",
      "status": "confirmed",
      "tx": "0x8a4f...c2",
      "timestamp": "2026-07-31T09:42:00Z"
    }
  ],
  "totalCount": 142
}

For CSV/download endpoints, the response may be text rather than JSON. The request helper preserves that distinction.


Did this page help you?