{"slug":"api-x402node-dev-wallet-pnl-d0a5e2","title":"Realized profit and loss and cost basis for an ERC20 token in a wallet on Base, ","host":"api.x402node.dev","method":"GET","resource":"https://api.x402node.dev/wallet/pnl","category":"market","description":"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 ","price_listed":0.1,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"address":"string","quote":"string","token":"string","wallet":"string"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"address":{"description":"EVM/chain address (optional)","type":"string"},"quote":{"description":"Quote (required)","type":"string"},"token":{"description":"ERC20 contract address (optional)","type":"string"},"wallet":{"description":"Wallet (optional)","type":"string"}},"required":["quote"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"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. Accepts payment on Base or Solana — either network works.","last_updated":"2026-09-09T22:02:46.999Z","schemes":["exact"]}