Fetch Markets / Pools

List all tradeable markets (pools, order books, hybrid venues) for a given DEX or AMM program. Use this to discover market IDs, base/quote tokens, and program names—then feed them into market-specific candles, trade history, or swap routing.

Why This Endpoint?

Markets/pools answer: "Where can this token be traded, and what are the pool IDs?"

The Vybe markets endpoint provides:

  • All markets for a specific program (e.g. Orca Whirlpool, Raydium CLMM)
  • Market ID for use in candles and trade endpoints
  • Base and quote token mint, symbol, and name
  • Program name and ID for filtering and display
  • Pagination via page and limit

Use it to build token pages (“Markets for this token”), DEX explorers, pool pickers for charts, and any flow that needs a list of vetted markets per program.


Endpoint

GET /v4/markets

Replaces: GET /price/markets


Parameters

ParameterTypeDescription
programAddressstringDEX/AMM program public key (required)
limitnumberMax markets per page. Default/max as per API
pagenumberPage number (0-indexed)

Example Request

curl "https://api.vybenetwork.com/v4/markets?programAddress=whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc&limit=10" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "data": [
    {
      "marketId": "15FXRDw7HqPYydehjQRTb8XyV8mPSjdVy1RNacioZaX",
      "marketName": "wSOL-GANG",
      "programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
      "programName": "Orca Whirlpool",
      "baseTokenSymbol": "wSOL",
      "quoteTokenSymbol": "GANG",
      "baseTokenMint": "So11111111111111111111111111111111111111112",
      "quoteTokenMint": "d4VVNcnhYwenMzJJk7QgZsxVbLQSijPSLB8m7gKMGFM",
      "baseTokenName": "Wrapped SOL",
      "quoteTokenName": "THUG LIFE",
      "updatedAt": 1740007848
    },
    {
      "marketId": "1XqaaX74LGuQns7cj7FyiMkX1bNXnKfCtFdBoAehuJY",
      "marketName": "wSOL-MON",
      "programId": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
      "programName": "Orca Whirlpool",
      "baseTokenSymbol": "wSOL",
      "quoteTokenSymbol": "MON",
      "baseTokenMint": "So11111111111111111111111111111111111111112",
      "quoteTokenMint": "7KacCvNW1yuJoVjawFyXATaCCsLFWK6KmwCdiH5bjuKb",
      "baseTokenName": "Wrapped SOL",
      "quoteTokenName": "MON Protocol",
      "updatedAt": 1732838746
    }
  ]
}

Response Fields Explained

FieldDescription
marketIdUnique market/pool ID—use for candles and trade history
marketNameHuman-readable pair name (e.g. wSOL-GANG)
programIdProgram public key (DEX/AMM)
programNameProgram display name (e.g. Orca Whirlpool)
baseTokenSymbol / quoteTokenSymbolBase and quote tickers
baseTokenMint / quoteTokenMintBase and quote mint addresses
baseTokenName / quoteTokenNameFull token names
updatedAtLast update time (unix timestamp)

Common Use Cases

Use CaseImplementation
Token page “Markets”Call with each supported program, filter client-side by base/quote mint
Pool selector for chartsList markets for one program, then call Market Candles with chosen marketId
DEX explorerPaginate through markets for a program, show name and tokens
Routing / liquidityEnumerate markets to know which pools exist for a given token
ResearchSee which programs and pairs are indexed by Vybe

Best Practices

Use the right program ID

Get program IDs from Available DEXs & AMMs. Example program IDs:

  • Orca Whirlpool: whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc
  • Raydium CLMM: CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK
  • Phoenix: PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY

Find markets for a token

Request markets for one or more programs, then filter data where baseTokenMint or quoteTokenMint equals your token mint.

Paginate for large lists

Use limit and page to walk through all markets when a program has many pools.


Related Endpoints