Skip to content

endpoints / wallet

Wallet PnL API

What a wallet spent and got back on one coin: realised profit, open position, in SOL and USD.

GET/v1/memecoin/wallet/:wallet/pnl

Price
$0.003 / call
Free
first 100 calls a day
Freshness
up to 30 s old
Auth
Bearer key

Try it

A real call, charged like any other. Edit anything and run it.

Response

{
  "wallet": "AEjQP2gxyVrrtJqUw5dCoNLgfjXhoTreJY8sTKar6dPv",
  "mint": "8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump",
  "trades": 2,
  "bought_sol": 0.6153,
  "sold_sol": 1.3703,
  "realized_pnl_sol": 0.755,
  "realized_pnl_usd": 53.17,
  "tokens_held_by_trades": 0,
  "open_cost_sol": 0,
  "open_value_sol": 0,
  "unrealized_pnl_sol": 0,
  "transactions_read": 2,
  "fully_read": true,
  "method": "Average cost: each sale is matched against the average price paid for the tokens held at that moment. Transfers in or out are not trades and are ignored.",
  "source": "The wallet's own token account for this coin, read on chain; price from Jupiter."
}

What the example answered when this page was built, shortened. Run it for a live answer.

Copy it

Runs as-is with your key in place of c2a_your_key. The snippets follow the inputs above.

curl "https://api.crypto2api.com/v1/memecoin/wallet/AEjQP2gxyVrrtJqUw5dCoNLgfjXhoTreJY8sTKar6dPv/pnl?mint=8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump" \
  -H "Authorization: Bearer c2a_your_key"

Parameters

NameInTypeRequiredWhat it isExample
walletpathstringyesThe wallet's address.AEjQP2gxyVrrtJqUw5dCoNLgfjXhoTreJY8sTKar6dPv
mintquerystringyesThe coin's mint address.8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump

The answer

Always { data, cost_usd, balance_usd, cached, request_id }. cost_usd is what this call was charged (0 while you are inside the free 100); cached: true means the answer was shared with another caller and may be up to 30 s old. A fact the API could not read is left out or named, never estimated.

More in Wallet