Trade History

Solana API endpoint for fetching trade history, volume, and metrics for any supported Solana AMM or DEX program, filtered by program.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Fetch historical trade and swap data across Solana AMMs and DEXs using this API endpoint. DEXs and AMMs include Pump.fun, Raydium, Meteora and more. Filter by token, market, program, authority, or time range to retrieve detailed trade activity including price, size, fees, and transaction metadata.

With pagination, sorting, and resolution options, this endpoint is ideal for building trading analytics, volume tracking, and execution monitoring tools.

Returns historical trade and swap data with filtering by token, market, DEX, time and many more filters.

Replaces: GET /token/trades


Demo for Historical Trade Data API

The free live demo for these endpoints can be found here:

You can visit this link to access and try the demo: https://solana-historical-trade-data-api.vybenetwork.com

Query Params
string | null

The program on which the trade occurred

string | null

The public key of the base token

string | null

The public key of the quote token

string | null

The public key of either the base or quote token

string | null

Market id to filter with. If provided, the baseMintAddress and quoteMintAddress fields are ignored

string | null

Authority public key to filter with

string | null

Resolution of the data. Possible values: 1h, 1d, 1w, 1m, 1y, or a string parseable to seconds

int64 | null
≥ 0

Start time of the data to return (unix timestamp)

int64 | null
≥ 0

End time of the data to return (unix timestamp)

int32 | null
≥ 0

Page selection, 0-indexed.

int32 | null
≥ 0

Limit of the number of trades to return per page. Default/max is 1000.

string | null

Sort ascending by 'price' or 'blockTime'. Only one of sort_by_asc or sort_by_desc can be used

string | null

Sort descending by 'price' or 'blockTime'. Only one of sort_by_asc or sort_by_desc can be used

string | null

The public key of the entity that pays for the trade, often used for retrieving trades associated with a specific trading account.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json