SolanaStreaming Docs

Meteora API

New pools, migrations, and price changes

Use the SolanaStreaming WebSocket API to subscribe to supported Meteora new pools and swaps with sourceExchange: ["meteora"]. These streams cover supported Meteora pool types; Meteora DBC pools are not currently reported as new-pair or swap events. See example code snippets for different use cases below.

Install ws with npm install ws and set YOUR_API_KEY_HERE. Each example below opens its own authenticated connection.

Subscribe to new Meteora pools

const WebSocket = require("ws");
const ws = new WebSocket("wss://api.solanastreaming.com/", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
});
ws.on("open", () => {
  ws.send(JSON.stringify({
    method: "newPairSubscribe",
    params: { include: { sourceExchange: ["meteora"] } }
  }));
  console.log("Listening for new Meteora pools...");
});
ws.on("message", raw => {
  const message = JSON.parse(raw.toString());
  if (message.error) return console.error("API error:", message.error);
  if (message.params)
    console.log("New Meteora pool:", message.params);
});
ws.on("error", console.error);

Subscribe to recognized migrations

The API does not identify a Meteora-specific migration origin. This example subscribes to the supported Pump.fun and Raydium LaunchLab migration labels:

const WebSocket = require("ws");
const ws = new WebSocket("wss://api.solanastreaming.com/", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
});
ws.on("open", () => {
  ws.send(JSON.stringify({
    method: "newPairSubscribe",
    params: { include: { migration: ["pumpfun", "raydium_launchlab"] } }
  }));
  console.log("Listening for recognized migrations...");
});
ws.on("message", raw => {
  const message = JSON.parse(raw.toString());
  if (message.error) return console.error("API error:", message.error);
  if (message.params)
    console.log("Recognized migration:", message.params);
});
ws.on("error", console.error);

Subscribe to a single Meteora token for price changes by mint address

const WebSocket = require("ws");
const ws = new WebSocket("wss://api.solanastreaming.com/", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
});
ws.on("open", () => {
  ws.send(JSON.stringify({
    method: "swapSubscribe",
    params: { include: { baseTokenMint: ["TOKEN_MINT_HERE"] } }
  }));
  console.log("Listening for Meteora token price changes...");
});
ws.on("message", raw => {
  const message = JSON.parse(raw.toString());
  if (message.error) return console.error("API error:", message.error);
  if (message.params)
    console.log("Meteora token price change:", message.params);
});
ws.on("error", console.error);

Subscribe to a single Meteora token for price changes by pool address

const WebSocket = require("ws");
const ws = new WebSocket("wss://api.solanastreaming.com/", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
});
ws.on("open", () => {
  ws.send(JSON.stringify({
    method: "swapSubscribe",
    params: { include: { ammAccount: ["POOL_ADDRESS_HERE"] } }
  }));
  console.log("Listening for Meteora pool price changes...");
});
ws.on("message", raw => {
  const message = JSON.parse(raw.toString());
  if (message.error) return console.error("API error:", message.error);
  if (message.params)
    console.log("Meteora pool price change:", message.params);
});
ws.on("error", console.error);

Subscribe to all Meteora pool price changes

const WebSocket = require("ws");
const ws = new WebSocket("wss://api.solanastreaming.com/", {
  headers: { "X-API-KEY": "YOUR_API_KEY_HERE" }
});
ws.on("open", () => {
  ws.send(JSON.stringify({
    method: "swapSubscribe",
    params: { include: { sourceExchange: ["meteora"] } }
  }));
  console.log("Listening for Meteora price changes...");
});
ws.on("message", raw => {
  const message = JSON.parse(raw.toString());
  if (message.error) return console.error("API error:", message.error);
  if (message.params)
    console.log("Meteora price change:", message.params);
});
ws.on("error", console.error);

Use the event's slot and block time when ordering trades. Swap prices are observed per trade and are not aggregated into a candle or pool-wide quote. New-pair notifications include the pool address and token metadata when it is available at creation time. QuotePrice is denoted in the quote token of the swap. To get the usdPrice you must convert the quoteToken to USD.

The API currently labels recognized migrations from Pump.fun and Raydium LaunchLab; migration filters do not identify a Meteora-specific migration origin. Check the general new-pair reference for supported migration values and the swap reference for response fields.

Meteora WebSocket API FAQ

How do I stream Meteora pool creation?

Connect to wss://api.solanastreaming.com:443/ and send newPairSubscribe with params.include.sourceExchange: ["meteora"]. New pools are delivered as newPairNotification events.

Does the API currently report Meteora DBC pool events?

No. Meteora DBC pools are not currently reported in the new-pair or swap streams. The guide covers the supported Meteora pool types only.