Api Endpoint

CoinStats Portfolio Value

CoinStats shared portfolio total value and PnL — total value, DeFi value, unrealized + realized profit/loss. Requires sharetoken header

Open interactive test console

Offering

Provider
x402.coinstats.app
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.coinstats.app/portfolio/value
MIME type
application/json
First seen
2026-10-16T02:00:03.055Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xa2AD8183209E5d2F7f0d8F995f5601a0bb5100c7"
  }
]

Observed health

Status
Healthy
Latest latency
153 ms
Average latency
243 ms
HTTP status
402
Last checked
Reachability
100% over 15 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "http",
  "method": "GET",
  "queryParams": {
    "currency": "USD",
    "portfolioId": "abc123def456"
  },
  "headerFields": {
    "passcode": "optional-portfolio-passcode",
    "sharetoken": "eyJhbGciOi... (obtain from CoinStats portfolio -> Share)"
  }
}

Output schema

{
  "type": "json",
  "example": {
    "totalValue": 12500.75,
    "defiValue": 2500.25,
    "totalCost": 10000.5,
    "unrealizedProfitLoss": 1250.75,
    "unrealizedProfitLossPercent": 12.5,
    "realizedProfitLoss": 500.25,
    "realizedProfitLossPercent": 5,
    "allTimeProfitLoss": 1751
  }
}