← Back to directory

Realized profit and loss and cost basis for an ERC20 token in a wallet on Base, ...

https://api.x402node.dev/wallet/pnl

Overview

Realized profit and loss and cost basis for an ERC20 token in a wallet on Base, computed from on-chain DEX trades against a quote asset (USDC by default). Returns average buy and sell price, realized PnL, remaining position and cost basis. Search terms: wallet PnL, realized gains, cost basis, token profit, crypto tax accounting, trade history.

Protocol x402
Price $0.10
Payment Asset USD Coin
Payment Network eip155:8453
Category crypto/wallet
Provider x402node
Source bazaar
Indexed 2026-06-03 00:17:40

Health

Status healthy
Latency (p50) 423ms
Uptime (30d) 100.0%
Reliability Score 95/100
Last Checked 2026-10-29 23:04:41
Last Healthy 2026-10-29 23:04:41
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "address": "string", "quote": "string", "token": "string", "wallet": "string" }, "type": "http" }

Recent Health Checks

Time Status HTTP Latency Error
2026-10-29 23:04:41 healthy 402 510ms
2026-10-29 22:04:36 healthy 402 144ms
2026-10-29 21:02:56 healthy 402 229ms
2026-10-29 20:02:50 healthy 402 247ms
2026-10-29 19:04:35 healthy 402 290ms
2026-10-29 18:02:50 healthy 402 510ms
2026-10-29 17:05:36 healthy 402 1473ms
2026-10-29 16:02:54 healthy 402 548ms
2026-10-29 15:02:20 healthy 402 581ms
2026-10-29 14:04:37 healthy 402 423ms
2026-10-29 13:04:28 healthy 402 250ms
2026-10-29 12:01:59 healthy 402 224ms
2026-10-29 11:05:07 healthy 402 146ms
2026-10-29 10:04:44 healthy 402 610ms
2026-10-29 09:02:17 healthy 402 243ms
2026-10-29 08:03:52 healthy 402 144ms
2026-10-29 07:02:05 healthy 402 352ms
2026-10-29 06:06:18 healthy 402 1724ms
2026-10-29 05:01:24 healthy 402 635ms
2026-10-29 04:04:52 healthy 402 587ms