---
description: Realtime tracking of swaps on Pump.fun
---

# Pump.fun Swaps

<table><thead><tr><th width="120">Basic</th><th width="120">Premium</th><th width="120">Enterprise</th><th width="170">Credit Cost</th></tr></thead><tbody><tr><td>❌</td><td>❌</td><td>✅</td><td>0</td></tr></tbody></table>

***

### Subscribe / Unsubscribe

```json
// Subscribe 
{
  "type": "subscribe",
  "payload": {
    "stream": "pumpfun-swaps"
  }
}
// Unsubscribe
{
  "type": "unsubscribe",
  "payload": {
    "stream": "pumpfun-swaps"
  }
}
```

***

### Incoming message structure

```json
{
    "type": "stream_data",
    "stream": "pumpfun-swaps",
    "data": {
        "timestamp": 1753591709717,
        "source": "pumpfun-swaps",
        "signature": "4Hn4wBpcCtYnRSXMuwLnUbqPn5TLBWmVM2BWb4SsSvYaSW8Xm7GyyYJhFCATdBHNLPhgptFareBGwkgeDKyibFWY",
        "wallet": "GCAbz3eWxAR9WzjfzuB4WDDYUysmffrFwz7NRr2h36Ju",
        "slot": "356009356",
        "is_amm": false,
        "fishy_transaction": true,
        "swap": {
            "input_mint": "So11111111111111111111111111111111111111112",
            "input_amount": 12300000,
            "input_decimals": 9,
            "output_mint": "2c9npRxvWdjTAoJeCK1ZtcKTrWrN5BBsmQrF1FQ6pump",
            "output_amount": 340890565376,
            "output_decimals": 6,
            "price": 3.6081960750169726e-8,
            "price_inverse": 27714680.11186992,
            "volume_usd": 2.303406600767289,
            "input_price_usd": 187.2688293306739,
            "output_price_usd": 0.000006757026549639609
        },
        "event_data": {
            "mint": "2c9npRxvWdjTAoJeCK1ZtcKTrWrN5BBsmQrF1FQ6pump",
            "sol_amount": "12300000",
            "token_amount": "340890565376",
            "is_buy": true,
            "user": "GCAbz3eWxAR9WzjfzuB4WDDYUysmffrFwz7NRr2h36Ju",
            "timestamp": "1753591708",
            "virtual_sol_reserves": "34086618826",
            "virtual_token_reserves": "944358846294969",
            "real_sol_reserves": "4086618826",
            "real_token_reserves": "664458846294969",
            "fee_recipient": "G5UZAVbAf46s7cKWoyKu8kYTip9DGTpbLZ2qa9Aq69dP",
            "fee_basis_points": "95",
            "fee": "116850",
            "creator": "3bocDN9415kcQaYNJrY96bbwpWCGMdvw4XXz1pc29g76",
            "creator_fee_basis_points": "5",
            "creator_fee": "6150"
        },
        "type": "pumpfun_swap"
    },
    "timestamp": 1753591714024
}
```
