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
Response
The input Ethereum address
Mock total portfolio value in 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
}
Single-Chain Portfolio Value
Endpoint
GET /api/v2/sandbox/report/address/{address}/chain/{chain_id}/total/usd
Path Parameters
The chain ID (e.g., 1 for Ethereum)
Response
The input Ethereum address
Human-readable chain name
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"
}
- Response Time: Instant (no blockchain queries)
- Quota: Does not count against your API quota