Call it
curl https://api.peume.com/v1/call/token-dex-trade-history \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"address": "your address",
"chain": "ethereum",
"limit": 20,
"offset": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/token-dex-trade-history", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"address": "your address",
"chain": "ethereum",
"limit": 20,
"offset": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/token-dex-trade-history",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"address": "your address",
"chain": "ethereum",
"limit": 20,
"offset": 0
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: token-dex-trade-history.
Parameters
addressRequiredstringToken CONTRACT ADDRESS — 0x-prefixed hex (EVM chains only; Tron also accepts base58 T...). This is NOT a ticker symbol (e.g. do NOT pass USDC or BTC). To resolve a ticker symbol to a contract address, call GET /v1/search/token?q={symbol}&chain={chain} and use the address whose chain is supported by this endpoint. This endpoint has no symbol parameter. Example: 0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48.
chainstringChain. Can be ethereum, base, bsc, arbitrum, or tron. Example: ethereum. Defaults to "ethereum".
ethereum · base · bsc · arbitrum · tron
Example: ethereum
limitintegerResults per page. Example: 20. Defaults to 20.
Example: 20
offsetintegerPagination offset. Example: 0. Defaults to 0.
Example: 0
includestringComma-separated enrichments to attach to each trade. Currently valid: labels — adds a taker_label field with entity information for the taker address. Example: labels.
