Trades
Returns recent trade history from both the Launchpad bonding curves and the AMM. Trades are indexed from on-chain events and stored in a TimescaleDB hypertable.Get Recent Trades
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
token_address | string | (all tokens) | Filter to a specific token’s CW20 contract address |
limit | number | 50 | Number of trades to return (1-100) |
Examples
Response
Response Fields
| Field | Type | Description |
|---|---|---|
time | string | Trade timestamp (ISO 8601) |
block_height | number | Block where the trade was included |
tx_hash | string | Transaction hash (use with Chain API to get full tx details) |
source | string | "launchpad" (bonding curve) or "amm" (graduated pool) |
action | string | What happened: "buy", "sell", "swap", "buy_and_graduate" |
direction | string | "xyz_to_token" (buy) or "token_to_xyz" (sell) |
token_address | string | CW20 contract address of the token traded |
price_uxyz | string | Price at time of trade (uxyz per token, scaled by 10^6) |
volume_uxyz | string | XYZ volume of this trade in uxyz |
volume_token | string | Token volume of this trade in micro-units |
fee_uxyz | string | Fee paid in uxyz |
trader | string | Address that executed the trade |
token_name | string | null | Token name (joined from token metadata) |
token_symbol | string | null | Token symbol |
Understanding Actions
| Action | Source | Meaning |
|---|---|---|
buy | launchpad | Bought tokens on the bonding curve |
sell | launchpad | Sold tokens back to the bonding curve |
buy_and_graduate | launchpad | Buy that triggered graduation (curve closed, AMM pool created) |
swap | amm | Swapped on the AMM (either direction) |