---
title: "Recent trades for up to 50 wallets in one call"
method: POST
path: "/wallet/batch/trades"
tags: ["Wallet"]
---

# Recent trades for up to 50 wallets in one call

`POST /wallet/batch/trades`

## Request

- Base URL: `https://madeonsol.com/api/v1`
- URL: `https://madeonsol.com/api/v1/wallet/batch/trades`
- Auth: HTTP bearer

The batch twin of `GET /wallet/{address}/trades`: same rows, same fields, same 90-day window — for **up to 50 wallets per request**, up to 100 trades each, newest first. Pass `since` (unix seconds) and you get only trades newer than that across every wallet; the response's `next_since` is the newest `block_time` seen, so feed it straight back on the next poll. Missing wallets come back with an empty `trades` array — *not observed*, never a 404.

**Why:** sweeping many wallets through the single-wallet route costs one request per wallet; fifty lookups in one call is one round-trip and one quota unit. Trades carry `price_sol`/`price_usd` (executed) and `market_price_sol`/`market_price_usd` (canonical) exactly like the single route.

**Coverage honesty:** the tape is the pump.fun / LaunchLab / bags pipeline — a wallet's Raydium-native or Meteora memecoin trades are not on it; the `coverage` block says so. PRO+.

## Request body

- object
  - `wallets` string[], required: Base58 wallet addresses. Also accepts a comma-separated string.
  - `since` integer: Unix seconds; only trades strictly after this. Default: 90 days ago (cannot reach further back).
  - `limit_per_wallet` integer
  - `action` 'buy' | 'sell'

## Response `200`

OK — `wallets[]` of `{wallet, count, trades[]}` plus `since`, `next_since`, `limit_per_wallet`, `coverage`

- object
  - `wallets` object[]
    - `wallet` string
    - `count` integer
    - `trades` object[]
      - `tx_signature` string
      - `token_mint` string
      - `action` 'buy' | 'sell'
      - `sol_amount` number
      - `token_amount` number
      - `price_sol` number, nullable: This trade's executed price (sol_amount / token_amount)
      - `price_usd` number, nullable
      - `market_price_sol` number, nullable: Canonical pool price sampled near this trade's slot
      - `market_price_usd` number, nullable
      - `block_time` integer
      - `traded_at` string, date-time
  - `since` integer
  - `next_since` integer: Newest block_time seen — feed back as `since` on the next poll
  - `limit_per_wallet` integer
  - `coverage` object
    - `history_start_days` integer
    - `scope` string
    - `note` string

## Other responses

- `400`: Invalid body
- `401`: Missing or invalid API key, or an expired free-tier key. Authentication-stage error: no `X-RateLimit-*` headers, no `_rid`.
- `403`: Forbidden. One of: the key's tier is below this endpoint's or parameter's gate (`tier_required` with an `upgrade` block); the public demo key used outside its allow-list (`demo_key_endpoint_not_allowed`); an invalid or revoked key; an origin-restricted key called from a disallowed origin (`code` `origin_not_allowed` / `origin_required`). `X-RateLimit-*` headers are present only on `tier_required`.
- `429`: Too many requests. Every 429 carries `Retry-After`. A quota 429 (`rate_limit_exceeded`, with `X-RateLimit-*`), a heavy-query concurrency 429 (`error_kind` `concurrency`/`capacity`), or the per-IP authentication-failure block (30 failed auths/min; plain `error` + `retry_after_seconds`, no `X-RateLimit-*`).
- `500`: Unexpected server error from the route (`Internal server error`, with `_rid`). Safe to retry with backoff. A failed API-key lookup is a 503 `auth_backend_unavailable`, never a 500.
- `503`: Temporarily unavailable — a Postgres statement timeout while the dataset is under load or maintenance (`statement_timeout`, with `X-RateLimit-*` and `_rid`), or the API-key lookup itself unavailable (`auth_backend_unavailable`, authentication stage: no `X-RateLimit-*`, no `_rid`, not counted as a failed authentication). Always carries `Retry-After`; honour it.

---

[API](https://skmtc.dev/madeonsol/apis/madeonsol-api.md) · [All operations](https://skmtc.dev/madeonsol/apis/madeonsol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/madeonsol/apis/madeonsol-api/revisions/96ce84657f55?raw)
