Skip to main content
GET
https://api.credprotocol.com
/
api
/
v2
/
sandbox
/
report
/
address
/
{address}
/
total
/
usd
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/total/usd" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
  "timestamp": "2024-01-15T10:30:00Z",
  "total_asset_usd": 125000.50
}

Overview

Returns mock portfolio value data for testing. This page covers both the all-chains and single-chain portfolio value endpoints.
SANDBOX: These endpoints return mock data for testing only. Do not use for production decisions.

All-Chains Portfolio Value

Endpoint

GET /api/v2/sandbox/report/address/{address}/total/usd

Path Parameters

address
string
required
Any Ethereum address

Response

address
string
The input Ethereum address
total_asset_usd
number
Mock total portfolio value in USD
timestamp
string
ISO 8601 timestamp
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/total/usd" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
  "timestamp": "2024-01-15T10:30:00Z",
  "total_asset_usd": 125000.50
}

Single-Chain Portfolio Value

Endpoint

GET /api/v2/sandbox/report/address/{address}/chain/{chain_id}/total/usd

Path Parameters

address
string
required
Any Ethereum address
chain_id
integer
required
The chain ID (e.g., 1 for Ethereum)

Response

address
string
The input Ethereum address
chain_id
integer
The requested chain ID
chain_name
string
Human-readable chain name
total_asset_usd
number
Mock portfolio value on this chain
curl -X GET "https://api.credprotocol.com/api/v2/sandbox/report/address/0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17/chain/1/total/usd" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f0Ab17",
  "timestamp": "2024-01-15T10:30:00Z",
  "total_asset_usd": 85000.50,
  "chain_id": 1,
  "chain_name": "Ethereum"
}

Performance

  • Response Time: Instant (no blockchain queries)
  • Quota: Does not count against your API quota