---
description: Realtime tracking of swaps on Jupiter AMM
---

# Jupiter AMM 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": "jupiter-amm-swaps"
  }
}
// Unsubscribe
{
  "type": "unsubscribe",
  "payload": {
    "stream": "jupiter-amm-swaps"
  }
}
```

***

### Incoming message structure

```json
{
    "type": "stream_data",
    "stream": "jupiter-amm-swaps",
    "data": {
        "timestamp": 1749784842,
        "source": "jupiter-amm-swaps",
        "signature": "5skqopsfWMAqvZFGrgkNWUJAmADXdEwDUmSxyHfxYVAfgaaUtJrw9zmxnDnEKKxdHxwXwWBsuAYJAuFHmN51Vygo",
        "wallet": "7AKBdPu1t3dHzQPfK9G387fhKu6ZRr9ePYaBr78fYA7S",
        "slot": "346440747",
        "swap": {
            "input_mint": "So11111111111111111111111111111111111111112",
            "input_amount": "858769",
            "input_decimals": 9,
            "output_mint": "FTUFPc23YHBqSuLLNEAwLUCcgexUizpEGhN9FrUupump",
            "output_amount": "96155709",
            "output_decimals": 6,
            "price": 0.000008931024573902315,
            "price_inverse": 111969.23619739417
        },
        "child_routes": [
            {
                "amm": "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA",
                "input_mint": "So11111111111111111111111111111111111111112",
                "input_amount": "858769",
                "input_decimals": 9,
                "output_mint": "FTUFPc23YHBqSuLLNEAwLUCcgexUizpEGhN9FrUupump",
                "output_amount": "96155709",
                "output_decimals": 6
            }
        ],
        "fee": null,
        "type": "jupiter_amm_swap"
    },
    "timestamp": 1749784844030
}
```
