Retrieve the most recent trade across all tokens on Pump.fun
cURL
curl --request GET \ --url https://frontend-api-v3.pump.fun/trades/latest
{ "trade": { "signature": "<string>", "mint": "<string>", "timestamp": "<string>", "tradeDirection": "<string>", "amount": 123 } }
Authorization: Bearer <token>
Show trade properties
curl -X GET "https://frontend-api-v3.pump.fun/trades/latest" \ -H "Authorization: Bearer <your_token>" \ -H "Accept: application/json"
<your_token>
import requests import time url = "https://frontend-api-v3.pump.fun/trades/latest" headers = { "Authorization": "Bearer <your_token>", "Accept": "application/json" } last_signature = None while True: response = requests.get(url, headers=headers) trade = response.json() if trade['signature'] != last_signature: print(f"New trade detected: {trade}") last_signature = trade['signature'] time.sleep(5) # Poll every 5 seconds