Docs

API Docs

Trade execution, managed wallets, market data, coin launches and the chart library, with the rules each endpoint follows.

Introduction

Questa is an API for Solana trading apps. You can trade with your own key (Questa builds the transaction, you sign it) or with a managed wallet (Questa signs and sends in one request), read self-indexed market data, launch coins on the main launchpads, and embed the Questa chart.

Want one request that does the whole swap? Use POST /trade/execute-managed with a managed wallet. Questa quotes, signs, sends and tracks the trade. Choose an endpoint compares every way to trade.

Quick Start

One-call trading (Questa signs for you):

Sign up→ Verify email→ Create API key→ POST /managed-wallets/create (once)→ Store managedWalletId→ POST /trade/execute-managed

Two-call trading (you keep the key and sign yourself):

Create API key→ POST /trade/execute→ Sign in your wallet→ POST /trade/:executionId/submit-signed

Base URL: https://www.questa.one

const baseUrl = "https://www.questa.one";
const apiKey = process.env.QUESTA_API_KEY;

async function questa(path, body) {
  const response = await fetch(`${baseUrl}${path}`, {
    method: "POST",
    headers: {
      Authorization: `Bearer ${apiKey}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify(body),
  });

  return response.json();
}

// Once: create a wallet that Questa can sign for. Fund its address with SOL.
// To use a wallet you already have, call /managed-wallets/register instead.
const wallet = await questa("/managed-wallets/create", {
  walletLabel: "my-bot",
});

// Every trade: one request, no signing step.
const trade = await questa("/trade/execute-managed", {
  side: "buy",
  inputMint: "So11111111111111111111111111111111111111112",
  outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  amount: "1000000",
  managedWalletId: wallet.data.managedWalletId,
  idempotencyKey: crypto.randomUUID(),
});

A longer ready-to-run version is included in examples/provider-quickstart.mjs.

Authentication

Every API endpoint needs an API key whose owner has a verified email. Send it either way:

  • Authorization: Bearer YOUR_API_KEY, recommended for SDKs and servers
  • x-api-key: YOUR_API_KEY, accepted everywhere, including /health
StatusCodeMeaning
401API_KEY_REQUIREDNo key was sent.
401AUTH_REQUIREDThe key is unknown or revoked.
403FORBIDDENThe key owner has not verified their email yet.

Keys are managed on the dashboard with your signed-in session. /api/keys also accepts a key that has the keys:manage scope.

Base URL and availability

Use https://www.questa.one for every request. questa-eta.vercel.app serves the same app today, but it is a hosting address, not a promise. Don't hard-code it.

FeatureWhere it runsHow a client can tell it is off
Trade, swap, managed-wallet routesWeb API, only while real trading is switched onThe routes answer 404 NOT_FOUND
Launch submitWeb API, only while real trading is switched on403 LAUNCH_DISABLED. The other launch routes keep working.
REST market dataWeb API, reads what the indexer storedEmpty lists, dataCoverage.status and dataFreshness ages (see Freshness)
WebSocket feeds at /wsThe long-running streaming server, not the web hostThe upgrade fails
Webhook retriesInside the server process that handled the tradeSee Webhook delivery
Today: www.questa.one runs in demo mode. Trade, swap and managed-wallet routes answer 404, launch submit answers 403, and /ws is not served there. Data routes answer, but return little or nothing until the indexer runs.

Launch metadata links. POST /api/v1/launch/metadata builds the uri it returns from Questa's public address, which is the host you called unless the server sets a fixed one. Call https://www.questa.one so the link written on chain uses the main domain. Stored pictures and metadata have no expiry and are served at /launch/asset/:id.

Choose an endpoint

Recommended routes get new features. Alternative routes are supported for the case named. Legacy routes keep working for existing integrations but get no new features.

EndpointStatusUse it when
POST /trade/execute-managedRecommendedQuesta should sign and send with a managed wallet in one request. Every option: own fees, sells by percent, choice of when the call answers.
POST /trade/execute + submit-signedRecommendedYou keep the private key and sign in your own wallet. Questa builds, sends and tracks.
GET /trade/:executionIdRecommendedStatus, attempts, fees and events of any execution, whichever route created it.
POST /trade/:executionId/retryRecommendedRebuild a failed or expired execution.
POST /trade/prepare-managed + execute-prepared-managedAlternativeBuild the trade before the user clicks, then sign and send on the click.
POST /swap/execute-nowAlternativeSame managed engine as execute-managed with fixed fast settings and a latency report. Fewer options, see the comparison.
GET /swap/latency/status, POST /swap/warmUtilityCheck send-path readiness, or warm the blockhash and SOL price when a user opens a trade form.
/quote/analyze, /tx/status, /tx/retry-planLegacyExisting integrations only. New code should use /trade/*.
One call means Questa holds a key that can move the wallet's funds. Only keep in a managed wallet what you are prepared to trade with. A trade policy limits which tokens and sides a wallet may trade, but not amounts (see lifecycle). Send an idempotencyKey so a repeated request never buys twice.

Managed endpoints compared

/swap/execute-now runs the same managed trade code as /trade/execute-managed: the same quotes, builders, send rails, confirmation tracking, execution record and retry path. It sets a few options for you and returns a longer latency report. It has no faster route of its own.

/trade/execute-managed/swap/execute-now
Answers whencompletionTarget: submitted, first_seen (default) or confirmedAlways at submitted: a send rail accepted the transaction
Speed settingexecutionPreference: cheap, balanced, fast, fastest (default fastest)speed: balanced, fast, fastest (default fastest). Same meaning, no cheap.
Pre-send simulationSkipped with skipSimulation: true, or with fastest on routes Questa knows as fast pathsAlways skipped with speed: "fastest"; otherwise the same rules
Fee budgetmaxFeeUsd optional, no defaultmaxFeeUsd defaults to $0.40 and can't go higher (server setting)
Own priority fee and tippriorityFeeLamports, jitoTipLamportsNot accepted
Sell by percentsellPercentNot accepted, send amount
Default deadline60 s45 s
Response{ ok, data } with trade, execution, confirmationFlat object with route, landing, hot lane, fee budget, latency and send diagnostics
Idempotency, webhooks, status, retryThe same for both. Both create a normal execution that GET /trade/:executionId and /retry work with.

Pick execute-now when the fixed fast settings fit and you want the latency fields. Pick execute-managed for everything else, and when you need to spend more than $0.40 on fees.

Trade lifecycle

POST /trade/execute→ Sign returned tx→ POST /trade/:executionId/submit-signed→ GET /trade/:executionId→ POST /trade/:executionId/retry

Every trade is an execution with one or more attempts. The execution moves through these states:

StatusMeaningFinal?
created, quoted, validated, simulatedBeing builtNo
awaiting_signatureBuilt and waiting for a signature (your wallet, or Questa for managed trades)No
signed, broadcastingBeing sentNo
pendingSent; Questa is watching the chainNo
confirmedLanded at confirmed commitmentYes
failedRejected, failed on chain or not seen in timeCan be retried
expiredThe deadline or blockhash ran out before it landedCan be retried
retryingA retry is rebuilding itNo
cancelledStopped before sendingYes

first_seen is not a status: it means an RPC reported the signature at processed or better. It shows in confirmation.firstSeen and as the execution.first_seen webhook.

Fees

One place for every cost of a trade, what maxFeeUsd covers, and what you can set yourself.

What a trade costs

CostPaid toInside maxFeeUsdWhere you see it
Questa fee: $0.01 cheap, $0.02 balanced, $0.05 fast, $0.10 fastestQuesta, in SOL inside the trade transactionYes, reserved firstplatformFeeLamports on the attempt's fee plan; feeBudget.estimatedPlatformFeeUsd on execute-now
Base network fee, 5,000 lamports per signatureValidatorsYesfees.baseLamports
Priority feeValidatorsYesfees.priorityLamports
Jito tipJito validatorsYesfees.jitoTipLamports
Send-rail tip, when the Helius Sender rail is usedThe railYesIn fees.totalLamports; heliusSenderTipLamports on execute-now
Pool and launchpad fees, price impactThe pool or protocolNoAlready inside estimatedOutput
Token account deposit, about 0.00204 SOL the first time a wallet holds a tokenRent deposit, refundableNoNot reported. Managed wallets close the empty account after a full sell and get it back.

fees.totalLamports is base fee + priority fee + Jito tip + send-rail tip, the amounts written into the transaction. fees.totalUsd converts it at Questa's SOL/USD price when the trade was built (Questa's own index, or a live Jupiter SOL to USDC quote when the index has none, cached up to 30 seconds). Treat the USD value as an estimate; the lamport values are what the transaction carries. A retry builds a new transaction with new fees.

How maxFeeUsd works

  1. The Questa fee for the chosen speed comes off first. A maxFeeUsd below it is refused with 400 MAX_FEE_BELOW_PLATFORM_FEE before anything is built.
  2. The rest is the network budget. When live fees are lower, Questa raises the priority fee and tip to use part of it on purpose: about 35% for cheap, 50% balanced, 80% fast and 92% fastest. A higher maxFeeUsd therefore means higher fees, not only a higher ceiling.
  3. When live fees are higher than the budget, the priority fee and tip are scaled down to fit and the trade is still sent, with lower priority. If the budget can't pay the send-rail minimum tip, that rail is left out and a warning says so.
  4. execution.fees.estimation.maxFeeUsd shows the network budget that was applied, after the Questa fee.

Every trade response carries execution.feeBudget, the same numbers in one place:

FieldMeaning
networkCapUsdNetwork budget after the Questa fee, or null without maxFeeUsd.
estimatedNetworkFeeUsdPriority fee, tip and base fee of this attempt.
platformFeeUsdThe Questa fee.
estimatedTotalFeeUsdBoth together.
withinCaptrue when the network fee fits the budget, null without maxFeeUsd.
cutToFitFromUsdSet only when fees were cut to fit: the network fee Questa wanted before cutting.

Rather no trade than a slow one: send "strictFeeBudget": true with maxFeeUsd. When live fees don't fit, the trade is not sent and you get 400 FEE_BUDGET_TOO_SMALL with the fee that would have been needed, instead of a trade with cut fees.

Without maxFeeUsd, fees follow live network samples within fixed limits per speed:

SpeedPriority feeJito tip
cheap1,000 to 25,000 lamportsnone
balanced10,000 to 150,000 lamportsup to 50,000 lamports
fast80,000 to 750,000 lamports80,000 to 500,000 lamports
fastest250,000 to 2,500,000 lamports200,000 to 1,500,000 lamports

Setting your own priority fee and tip

/trade/execute, /trade/execute-managed and /trade/prepare-managed accept priorityFeeLamports and jitoTipLamports. Both are total lamports for the transaction (not a price per compute unit), 0 to 100,000,000 each. They replace the automatic values; the Questa fee stays the same.

  • A tip on a route with no Jito path, or below that path's minimum, is added to the priority fee instead, so the total you chose still buys priority.
  • With maxFeeUsd set as well, own fees above the budget are refused with 400 MAX_FEE_EXCEEDED. They are never scaled down.
  • A retry keeps your own values. When you set your own priority fee, a retry does not raise it.
  • /swap/execute-now and the legacy routes don't accept own fees. /api/v1/launch/create takes priorityFeeMicroLamports, which is a price per compute unit, a different unit.

The execute-now cap

/swap/execute-now limits the total fee, Questa fee included, to $0.40. This is a server setting, not a request option: you can send a lower maxFeeUsd, and a higher one is cut to $0.40 with a warning. The response's feeBudget shows requestedMaxFeeUsd, hardCapUsd, effectiveMaxFeeUsd, clampedToHardCap, the estimated network and Questa fees, and withinCap. To pay more for speed, use /trade/execute-managed with your own maxFeeUsd or own fees.

Settings compared

Similar settings have different names on different routes. This is what each one does.

SettingRoutesValuesWhat it does
executionPreference/trade/*cheap, balanced, fast, fastestPicks the fee range, the Questa fee and the send rails. Default balanced on /trade/execute, fastest on managed trades.
speed/swap/execute-nowbalanced, fast, fastestSame as executionPreference. fastest also always skips simulation.
speedMode/tx/retry-plan (legacy)safe, normal, degenOnly sets slippage: 0.3%, 1% or 3% to start, at most 2%, 5% or 15%. Jupiter picks the priority fee.
maxSlippageBps/trade/*, /swap/execute-now1 to 5000A ceiling. Questa chooses the slippage from the route and the token and never goes above it. The value used is in execution.slippageBps.
slippageBps/api/v1/launch/createbps, default 1000Exact slippage for the creator's first buy.
skipSimulation/trade/*booleanSends without a dry run. Also happens with fastest on known fast-path routes, and always with execute-now fastest. The response then warns that simulation was skipped.
completionTarget/trade/execute-managed, submit-signedsubmitted, first_seen, confirmedHow long the request waits. Tracking continues in the background either way.

Idempotency and retries

Send an idempotencyKey (up to 128 characters) with every request that can create a trade: /trade/execute, /trade/execute-managed, /trade/prepare-managed and /swap/execute-now. Use a new random value per order, such as a UUID.

QuestionAnswer
ScopeYour Questa account. All API keys of the account share the same keys.
How long it lastsNo expiry. A key stays tied to its execution for as long as the execution is stored.
Same key, same bodyNo new trade. You get the existing execution with its current status and "replayed": true.
Same key, other body409 IDEMPOTENCY_BODY_MISMATCH when the side, tokens, amount, wallet, speed, maxFeeUsd or maxSlippageBps differ from the first request. Use a new key for a new order.
Same key, other flow409 IDEMPOTENCY_MODE_MISMATCH when one request was self-signed and the other managed.
Same key, other managed wallet409 IDEMPOTENCY_WALLET_MISMATCH
Two requests at onceOne creates the execution, the other gets the same execution back.
Managed execution still in awaiting_signatureRepeating the request signs and sends the prepared transaction.
Blank or missing keyNo protection: every request is a new trade.

Retry rules

  • POST /trade/:executionId/retry works only from failed or expired, at most 3 times per execution. Reasons that can't be fixed by retrying (insufficient funds, frozen account, and similar) are refused with 400 RETRY_DENIED.
  • Before rebuilding, Questa asks the chain about the previous attempt. If it landed: 409 PREVIOUS_ATTEMPT_LANDED. If it can still land: 409 PREVIOUS_ATTEMPT_MAY_STILL_LAND, try again in about a minute. If the chain can't be asked: 503 RETRY_LANDING_UNKNOWN.
  • The retry gets a fresh quote, so the output can differ. maxFeeUsd and maxSlippageBps from the first request still apply. From the second retry, or after congestion, the priority fee goes up 1.5 times, cut back to the budget if you set one. After a slippage failure without maxSlippageBps, slippage may widen to 7.5%.
  • The Questa fee travels inside each attempt's transaction, so only the attempt that lands pays it.
  • Managed wallets: the retry is signed with the same wallet and sent right away. The answer has the same shape as /trade/execute-managed. The wallet's policy and pause are checked again first.

Recover after a timeout

The request to buy timed out and you don't know if the trade went through. With an idempotencyKey this is safe:

  1. Send the exact same request again with the same key. If Questa got the first one, you receive the same executionId and nothing is bought twice. If it didn't, this request creates the trade.
  2. Read GET /trade/:executionId until the status is confirmed, failed or expired.
  3. Only on failed or expired, call /retry, and for a managed wallet send the original request once more with the same key.
async function buyOnce(order) {
  const body = { ...order, idempotencyKey: order.id };   // one key per order, stored with it
  for (let attempt = 0; attempt < 3; attempt++) {
    try {
      const res = await fetch(`${baseUrl}/trade/execute-managed`, {
        method: "POST",
        headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
        body: JSON.stringify(body),
        signal: AbortSignal.timeout(15_000),
      });
      const json = await res.json();
      if (json.ok) return waitForFinal(json.data.executionId);
      if (res.status < 500 && res.status !== 429) throw new Error(json.error.code);   // don't repeat 4xx
    } catch (err) {
      if (err.name !== "TimeoutError") throw err;           // timed out: send the same body again
    }
    await new Promise((r) => setTimeout(r, 1000 * (attempt + 1)));
  }
  throw new Error("Questa unreachable; the order id still protects a later attempt");
}

async function waitForFinal(executionId) {
  for (;;) {
    const res = await fetch(`${baseUrl}/trade/${executionId}`, { headers: { Authorization: `Bearer ${apiKey}` } });
    const { data } = await res.json();
    if (["confirmed", "failed", "expired", "cancelled"].includes(data.summary.status)) return data;
    await new Promise((r) => setTimeout(r, 500));
  }
}

Errors and status codes

Every error uses the same shape. Validation errors add details per field.

{
  "ok": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid request body",
    "details": { "amount": ["Amount is required for buy trades"] }
  }
}
StatusCommon codesRepeat?
400VALIDATION_ERROR, MAX_FEE_BELOW_PLATFORM_FEE, MAX_FEE_EXCEEDED, RETRY_DENIED, simulation failures, MANAGED_WALLET_REGISTRATION_REQUIREDNo. Change the request first.
401API_KEY_REQUIRED, AUTH_REQUIREDNo. Fix the key.
403FORBIDDEN, MANAGED_WALLET_ACCESS_DENIED, MANAGED_WALLET_POLICY_BLOCKED, LAUNCH_DISABLEDNo.
404NOT_FOUNDNo. The route or execution doesn't exist, or trading is switched off.
409INVALID_STATE, IDEMPOTENCY_MODE_MISMATCH, IDEMPOTENCY_WALLET_MISMATCH, PREVIOUS_ATTEMPT_LANDED, PREPARED_TRADE_IN_FLIGHTNo.
409MANAGED_WALLET_PAUSEDAfter you resume the wallet.
404, 410PREPARED_TRADE_NOT_FOUND, PREPARED_TRADE_EXPIREDNo. Prepare the trade again.
409PREVIOUS_ATTEMPT_MAY_STILL_LANDYes, after about a minute.
429RATE_LIMIT_EXCEEDEDYes, after Retry-After seconds.
429MONTHLY_QUOTA_EXCEEDEDAfter the monthly reset, or on a bigger plan.
500INTERNAL_ERROR, DB_ERROR, EXECUTION_ERRORReads: yes. Trades: only with the same idempotencyKey.
502, 504JUPITER_ERROR, SOLANA_ERROR, TIMEOUT_ERRORReads: yes. Trades: only with the same idempotencyKey.
503SOL_PRICE_UNAVAILABLE, RETRY_LANDING_UNKNOWN, LAUNCH_STORE_UNAVAILABLEYes, after a short wait.

GET requests are always safe to repeat. A POST that can create a trade is safe to repeat only with the same idempotencyKey.

Rate limits and request cost

Each account has a per-minute limit and a monthly quota. All API keys of the account, and REST and WebSocket, draw from the same budget. /health is not counted.

PlanPer minutePer month
Free1205,000
Starter600150,000
Pro1,8001,500,000
Max6,00010,000,000
Enterprise15,00050,000,000

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds, end of the current minute), and the same three with X-Monthly- in front. A 429 RATE_LIMIT_EXCEEDED adds Retry-After in seconds.

What a request costs

RequestCost
Most requests1, counted when the key is accepted, whatever the result (errors included)
GET /api/v1/searchThe limit you ask for (default 20, max 100), even if fewer tokens are found
GET/POST /api/v1/tokens/multiOne per unique valid address (max 100). Duplicates and invalid addresses are dropped and not charged. At least 1.
GET /api/v1/tokens/search1
WebSocket1 per connection and 1 per channel subscribe. Events are free.

A request that would cost more than a whole minute's limit is charged the minute limit.

Response formats

Two shapes exist side by side. Clients have to handle both.

ShapeRoutes
{ "ok": true, "data": { ... } }/trade/*, /managed-wallets/*, /webhooks/*, /api/v1/launch/*, /api/v1/data/health, /api/v1/tokens (list), /api/v1/tokens/search, /api/v1/tokens/:mint/ candles, ohlcv, chart, ath, price, metrics, stats, events, evaluation, trades, risk, pools, holders, activity and snapshots, /api/v1/trades, /api/v1/pools, /api/v1/trending, /api/v1/new-launches, /api/v1/wallets/*, /api/v1/watchlists
Plain object, no ok wrapperRoutes shaped like common Solana token APIs: /api/v1/tokens/:mint (detail), /api/v1/search, /api/v1/tokens/multi, /api/v1/price, /api/v1/price/:token, /api/v1/price/multi, /api/v1/tokens/trending|top-gainers|top-losers|volume|new|latest, /api/v1/top-traders, /api/v1/first-buyers, /api/v1/pnl/*, /api/v1/deployer, /api/v1/price/history*, /api/v1/ohlcv/:token, /api/v1/chart/*, /api/v1/holders/*, /api/v1/risk/*
{ "ok": true, ...fields }/swap/execute-now and the legacy routes

Errors always use { "ok": false, "error": { ... } }, on every route. Examples in these docs show complete top-level shapes; long arrays are cut to one item.

Pagination

StyleRoutesHow to continue
page + limit/api/v1/tokens, token trades and holders, /api/v1/trades, /api/v1/pools, wallet trades (limit up to 250); /api/v1/deployer, gainers and losers (up to 100)Pages start at 1. Responses carry page, limit, total and hasMore. For trades, total can be an estimate but is never below what you have seen.
page + pageSize/managed-wallets (up to 100)Same as above.
Time cursor/api/v1/ohlcv/:tokenSend nextFrom as the next time_from while hasMore is true.
Top list only/api/v1/trending, /api/v1/new-launches, top traders, first buyers, /api/v1/searchNo further pages. Raise limit within its maximum.

Reading trades that keep arriving

Trade lists are newest first by blockTime. New trades push older ones onto later pages, so page numbers alone can skip or repeat rows. Page by time instead:

  1. First call without to.
  2. Next call with to set to the oldest blockTime you received. from and to include their boundary, so drop rows you already have by signature + eventIndex.
  3. To catch up on newer trades, call with from set to the newest blockTime you have, and dedupe the same way.

History only goes back to when Questa started indexing a token.

Data coverage

Market data is indexed by Questa straight from Solana at confirmed commitment, with no outside data provider in between. How much Questa knows depends on the venue:

VenueTradesPool state (price, liquidity)
Pump.fun, PumpSwap, Raydium AMM v4, CPMM, CLMM and LaunchLab, Orca Whirlpool, Meteora DLMM, DBC and DAMM v2Labelled with the venueRead from the pool account
Moonshot, Boop, HeavenLabelled with the venueNot read; liquidity can be missing
Any other programClear swaps are kept as generic_balance_deltaNot read

Mint and freeze authority checks work for every token. Holder data, candles and PnL depend on trades Questa has seen (see Freshness and missing values).

dataCoverage

Token lists and the token detail carry dataCoverage:

"dataCoverage": {
  "status": "ready",              // empty | metadata_only | candidate_only | partial | ready
  "score": 100,                   // metadata 10 + metrics 20 + risk 10 + pools 20 + trades 25 + candles 15
  "metadataReady": true,
  "metricsReady": true,
  "marketDataReady": true,
  "marketDataStatus": "confirmed", // missing | indicative | pool_pending_refresh | confirmed
  "riskReady": true,
  "poolsReady": true,
  "tradesReady": true,
  "candlesReady": true,
  "candidatesReady": false,
  "warnings": []
}
  • ready: pools, trades and metrics indexed and a score of at least 75. partial: score 35 or more. metadata_only: only name, symbol and picture. candidate_only: only unconfirmed parser hits. empty: nothing yet.
  • marketDataStatus: confirmed means price, market cap and liquidity come from a checked pool; indicative means a price exists but no pool backs it yet; pool_pending_refresh means the pool is known but its state is not read yet.
  • Warnings name what is missing, for example confirmed_trades_missing, ohlcv_missing, validated_pools_missing, market_data_unvalidated or no_recent_trades_in_24h.

Freshness and missing values

How fresh is a value?

The token detail returns dataFreshness with the age of each source in seconds:

"dataFreshness": {
  "marketDataAgeSeconds": 4,     // price, market cap, liquidity (last metrics update)
  "tradeDataAgeSeconds": 12,     // last indexed trade
  "poolDataAgeSeconds": 31,      // last pool state read
  "candleDataAgeSeconds": 12,    // last candle update
  "sourcesDiverge": false,       // true: market data under 5 min old, trades over 1 h old
  "warnings": []
}

A null age means that source has never been indexed for the token. /api/v1/tokens/:mint/price returns updatedAt and /api/v1/price returns lastUpdated (Unix ms), both the time of the last metrics update. To spot a stale price, compare that time with now; there is no single "too old" flag.

Some answers are cached briefly on the server: prices 5 seconds, token detail and lists 10 seconds, gainers and losers 15 seconds.

Missing, null and zero

You getIt means
nullUnknown. Not indexed yet, or no price to value it with. Never treat it as 0.
0Known to be zero: Questa has the token's trades and there were none in that window.
Empty listNothing indexed for that query. Check dataCoverage to tell "none" from "not indexed".
Missing fieldNot part of that response shape. Fields are not dropped to mean "unknown".

In the token detail, buys, sells, txns and the stats counters are null while tradeDataStatus is missing, and real numbers (including 0) once it is indexed. A trade indexed while no SOL/USD price was known has amountUsd: null; PnL and candles leave such trades out instead of counting them at $0.

Live data (WebSocket)

The WebSocket runs on Questa's streaming server at the path /ws. It is not served by www.questa.one today (see availability); until it is, poll the REST routes.

Connect

  1. POST /api/v1/ws/ticket with your API key returns { ok, data: { ticket, url } }. A ticket works once and expires after 60 seconds.
  2. Open wss://STREAM_HOST/ws?ticket=.... Servers can also accept the key as an x-api-key or Authorization header; prefer the ticket in browsers so the key stays out of URLs.

Handshake failures answer with an HTTP status and code: 401 WS_TICKET_INVALID, WS_TICKET_USED, WS_AUTH_REQUIRED, WS_AUTH_FAILED; 403 EMAIL_NOT_VERIFIED; 429 WS_CONNECTION_LIMIT or a quota code.

Messages

// client to server
{ "action": "subscribe", "channels": ["token:TOKEN_MINT", "trades"] }
{ "action": "unsubscribe", "channel": "trades" }
{ "action": "ping" }

// server to client: every message has this shape
{ "type": "trade_update", "channel": "token:TOKEN_MINT", "data": { ... }, "emittedAt": "2026-11-16T12:00:00.000Z" }
ChannelEvents
tradestrade_update for every indexed trade
token:<mint>trade_update, candle_update, holder_update, token_update, migration
pool:<address>trade_update
wallet:<address>trade_update where the wallet traded
trendingtrending_update with the ranked list, sent when it changes
new-launchesnew_launch
migrationsmigration
raw-transactionsraw_transaction_update
watchlist:<id>watchlist_update, only your own watchlists

data in trade_update has the same fields as a row of /api/v1/trades. Control messages: connected (with the channel list and limits), subscribed, then snapshot (the current state for that channel, status ready or unavailable), unsubscribed, heartbeat, lagged and error.

Limits and reconnecting

  • Defaults: 10 connections per account, 100 channels per connection, 20 client messages per second (5 breaches in a minute close the socket with 1008), a heartbeat and ping every 30 seconds. Answer pings or the socket is closed.
  • Events published while your snapshot loads are sent right after it, in order. Events are not numbered and are not replayed after a disconnect.
  • If you read too slowly, events are dropped and you get lagged with the number dropped. Re-fetch state over REST.
  • After a reconnect: subscribe again, use the new snapshot, then fill the gap over REST with from set to the newest blockTime you had, deduped by signature + eventIndex (see Pagination). The same dedupe handles an event that arrives twice.

Webhook delivery

Questa calls your webhook URL when a trade changes state. Set one default URL per API key with PUT /webhooks/config, or pass webhookUrl on a trade. The event list and the signing secret always come from the API key's config.

POST https://provider.example.com/webhooks/trades
Content-Type: application/json
x-seh-webhook-id: 0b6c2f1e-6c8a-4a43-9f4f-2a1d7e8c5b10
x-seh-webhook-event: execution.confirmed
x-seh-webhook-timestamp: 2026-11-16T12:00:03.412Z
x-seh-webhook-signature: v1=5d41402abc4b2a76b9719d911017c592...
x-seh-webhook-signature-version: v1

{
  "deliveryId": "0b6c2f1e-6c8a-4a43-9f4f-2a1d7e8c5b10",
  "event": "execution.confirmed",
  "executionId": "87a8246a-2e0b-4b02-9495-efc5a859a565",
  "status": "confirmed",
  "signature": "5Kt...solanaSignature",
  "timestamp": "2026-11-16T12:00:03.412Z",
  "data": {
    "side": "buy",
    "inputMint": "So11111111111111111111111111111111111111112",
    "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "1000000000",
    "estimatedOutput": "83369249",
    "actualOutput": "83301122"
  }
}
RuleBehaviour
Eventsexecution.created, awaiting_signature, signed, broadcasting, pending, first_seen, confirmed, failed, retried, expired (each with the execution. prefix). Default: pending, first_seen, confirmed, failed, expired.
SuccessAny 2xx answer within 10 seconds.
RetriesTimeouts, network errors and every non-2xx answer are tried again after 30 seconds, 2 minutes, 10 minutes, 1 hour, 6 hours and 12 hours, 7 attempts in total. Then the event is dropped.
StorageWaiting retries are stored, so a restart doesn't lose them. GET /trade/:executionId stays the source of truth.
OrderNot guaranteed. Events are sent as they happen and a retry can arrive after a later event. Order by the execution's status, not by arrival.
DuplicatesPossible. Every attempt of one event carries the same deliveryId; store it and ignore repeats.
SigningEvery delivery is signed. A key without a secret gets one on its first delivery; read it with GET /webhooks/config or set a new one with rotate-secret. Signature = v1= + hex HMAC-SHA256 of timestamp + "." + rawBody.

Verify a delivery

import crypto from "node:crypto";

// rawBody: the exact bytes received, before JSON.parse
function verifyQuestaWebhook(rawBody, headers, secrets) {
  const timestamp = headers["x-seh-webhook-timestamp"];
  const received = headers["x-seh-webhook-signature"] || "";
  const age = Math.abs(Date.now() - Date.parse(timestamp));
  if (!Number.isFinite(age) || age > 5 * 60_000) return false;   // too old or bad timestamp

  return secrets.some((secret) => {                              // current secret, plus the old one while rotating
    const expected = "v1=" + crypto.createHmac("sha256", secret).update(`${timestamp}.${rawBody}`).digest("hex");
    return expected.length === received.length &&
      crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(received));
  });
}

Rotating the secret. The new secret signs from the moment rotate-secret answers. For 15 minutes after that, each delivery also carries x-seh-webhook-signature-previous, signed with the old secret, so a receiver that hasn't switched yet keeps working. Switch within those 15 minutes.

Legacy API

POST /quote/analyze→ Sign and send in wallet→ POST /tx/status→ POST /tx/retry-plan

These helper routes analyse a quote and help you track a transaction you signed and sent yourself. Questa does not track them, charge its fee, send webhooks or apply idempotency. They keep working but get no new features; new integrations should use /trade/*.

Create a Trade Execution

Main entry point for the broker-signed flow.

POST/trade/executeAPI Key Required
FieldTypeDescription
siderequired "buy" | "sell" Trade direction.
inputMintrequired string Mint address of the token being sold.
outputMintrequired string Mint address of the token being bought.
amount string Trade amount in smallest unit. Required for buys; optional for sells if you use sellPercent.
sellPercent number Sell-only alternative to amount. Percentage of the current wallet token balance to sell (for example 25, 50, 100).
userPublicKeyrequired string Wallet public key that will sign.
executionPreferencerequired "cheap" | "balanced" | "fast" | "fastest" High-level execution preference.
maxSlippageBps number Optional slippage cap.
maxFeeUsd number Optional fee budget in USD.
strictFeeBudget boolean With maxFeeUsd: refuse with 400 FEE_BUDGET_TOO_SMALL instead of sending with cut fees when live fees don't fit.
antiMev boolean Sandwich protection. Jito block builders may not place another trade before this one, and it is sent only over Jito or Helius Sender when the trade pays a tip for them. Fees stay the same.
deadlineMs number How long the execution stays valid. Defaults to 60000.
webhookUrl string Optional webhook target.
idempotencyKey string Optional client idempotency key.
Sizing rules: buys must send amount. Sells can send either amount for an exact raw token amount or sellPercent for a percentage-based sell. Do not send both in the same request.
Request
POST /trade/execute
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "side": "buy",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "1000000000",
  "userPublicKey": "CQye4SbJtdtNd6pSo9NRnwPNorUysGeFPHJoar1bPeC8",
  "executionPreference": "balanced"
}
Response
{
  "ok": true,
  "data": {
    "executionId": "87a8246a-2e0b-4b02-9495-efc5a859a565",
    "status": "awaiting_signature",
    "trade": {
      "side": "buy",
      "inputMint": "So11111111111111111111111111111111111111112",
      "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "inputAmount": "1000000000",
      "estimatedOutput": "83369249"
    },
    "execution": {
      "expiresAt": "2026-04-13T17:23:51.256Z",
      "slippageBps": 100,
      "route": {
        "provider": "jupiter",
        "hops": 1,
        "labels": ["HumidiFi"],
        "priceImpactPct": "0.0001012329486911"
      },
      "fees": {
        "baseLamports": 5000,
        "priorityLamports": 182000,
        "jitoTipLamports": 63700,
        "totalLamports": 250700,
        "totalUsd": 0.02,
        "estimation": {
          "preference": "balanced",
          "maxFeeUsd": null,
          "priority": {
            "source": "dynamic",
            "sampleCount": 42,
            "sampledProviders": ["helius-primary"],
            "sampleMicroLamports": {
              "min": 10000,
              "median": 85000,
              "max": 400000
            },
            "targetPercentile": 0.5,
            "multiplier": 1.1,
            "computeUnitsEstimate": 400000
          },
          "jitoTip": {
            "source": "dynamic",
            "ratio": 0.35,
            "floorLamports": 50000,
            "ceilingLamports": 300000,
            "basedOnPriorityLamports": 182000
          }
        }
      }
    },
    "signing": {
      "required": true,
      "transactionBase64": "BASE64_UNSIGNED_TRANSACTION"
    },
    "warnings": []
  }
}
Request
POST /trade/execute
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "side": "sell",
  "inputMint": "6X1W4ffwhB6Ptko5Y8BFveap8BoyjvtH29kuykDLpump",
  "outputMint": "So11111111111111111111111111111111111111112",
  "sellPercent": 50,
  "userPublicKey": "CQye4SbJtdtNd6pSo9NRnwPNorUysGeFPHJoar1bPeC8",
  "executionPreference": "fastest",
  "maxFeeUsd": 0.20
}
Response
{
  "ok": true,
  "data": {
    "executionId": "sell_exec_123",
    "status": "awaiting_signature",
    "trade": {
      "side": "sell",
      "inputMint": "6X1W4ffwhB6Ptko5Y8BFveap8BoyjvtH29kuykDLpump",
      "outputMint": "So11111111111111111111111111111111111111112",
      "inputAmount": "18418473059",
      "estimatedOutput": "15482219"
    },
    "warnings": [
      "Sell percentage resolved to 18418473059 raw tokens from the current wallet balance."
    ]
  }
}
Note: this only prepares the trade. Nothing reaches the chain until the signed transaction is submitted.
Sell safety: for exact amount sells, the backend now checks the current on-chain wallet balance before quoting. If the requested raw amount is above the spendable balance, it is reduced to a safe amount and a warning is returned instead of failing later in simulation.
Fee interpretation: priorityLamports and jitoTipLamports are estimates for the prepared attempt. They can change on a retry, because retries use fresh quote and fee samples.

Get or Update the Signed Webhook Config

Configure one default webhook target for the current API key. New trade executions automatically inherit this URL unless a request explicitly overrides webhookUrl.

GET/webhooks/configAPI Key Required
PUT/webhooks/configAPI Key Required
FieldTypeDescription
webhookUrl string | null Public HTTPS target for signed trade lifecycle webhooks. Set null to clear the default URL.
events WebhookEventType[] Optional subscribed event list. Defaults to pending, first_seen, confirmed, failed, and expired.
signingSecret string Optional custom webhook signing secret. If omitted on first setup, the API generates one and returns it once.
Request
PUT /webhooks/config
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "webhookUrl": "https://provider.example.com/webhooks/trades",
  "events": [
    "execution.pending",
    "execution.first_seen",
    "execution.confirmed",
    "execution.failed"
  ]
}
Response
{
  "ok": true,
  "data": {
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "webhookUrl": "https://provider.example.com/webhooks/trades",
    "events": [
      "execution.pending",
      "execution.first_seen",
      "execution.confirmed",
      "execution.failed"
    ],
    "signingSecretConfigured": true,
    "secretLastRotatedAt": "2026-04-25T13:31:10.421Z",
    "signatureVersion": "v1",
    "signingSecret": "seh_whsec_abc123..."
  }
}
Set it once: after this, trade calls can leave out webhookUrl and still get signed updates.

Headers, payload, retries and a verification example are in Webhook delivery.

Rotate the Webhook Signing Secret

Rotate the webhook secret for the current API key without changing the URL. The raw secret is returned once and should be stored immediately on the provider side.

POST/webhooks/config/rotate-secretAPI Key Required
Request
POST /webhooks/config/rotate-secret
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{}
Response
{
  "ok": true,
  "data": {
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "webhookUrl": "https://provider.example.com/webhooks/trades",
    "events": [
      "execution.pending",
      "execution.first_seen",
      "execution.confirmed",
      "execution.failed"
    ],
    "signingSecretConfigured": true,
    "secretLastRotatedAt": "2026-04-25T15:04:02.112Z",
    "signatureVersion": "v1",
    "signingSecret": "seh_whsec_newsecret..."
  }
}
Only one secret is valid at a time. From the moment you rotate, every delivery, including retries of earlier events, is signed with the new secret. Questa doesn't sign with both for a while. To avoid losing events, let your receiver accept the old and the new secret for a few minutes, then remove the old one. See Webhook delivery.

List Managed Wallets

List the managed wallets bound to the current API key. The endpoint supports pagination, free-text search, and filtering by paused state so larger providers can manage many wallets without pulling everything at once.

GET/managed-walletsAPI Key Required
Request
GET /managed-wallets?page=1&pageSize=25&status=active&query=berlin
x-api-key: "YOUR_API_KEY"
Response
{
  "ok": true,
  "data": {
    "scope": "api_key",
    "page": 1,
    "pageSize": 25,
    "total": 1,
    "hasMore": false,
    "defaultPolicy": {
      "allowedSides": ["buy", "sell"],
      "blockedMints": ["BlockedMint11111111111111111111111111111111"]
    },
    "wallets": [
      {
        "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
        "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
        "walletLabel": "customer-berlin-01",
        "paused": false,
        "policy": {
          "allowedOutputMints": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]
        },
        "effectivePolicy": {
          "allowedSides": ["buy", "sell"],
          "allowedOutputMints": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],
          "blockedMints": ["BlockedMint11111111111111111111111111111111"]
        },
        "createdAt": "2026-04-24T08:55:03.114Z",
        "updatedAt": "2026-04-24T08:55:03.114Z"
      }
    ]
  }
}
Scope: the response is API-key-scoped. A provider key only sees wallets explicitly bound to that key, plus the effective policy that will be enforced for each wallet.

Get or Update the Default Wallet Policy

Store the provider-wide defaults once on the API key. These defaults automatically apply to all managed wallets bound to that key, unless a wallet adds stricter overrides.

GET/managed-wallets/default-policyAPI Key Required
PUT/managed-wallets/default-policyAPI Key Required
FieldTypeDescription
policy.allowedSides ("buy" | "sell")[] Optional list of sides the provider key should allow by default.
policy.allowedInputMints string[] Optional allowlist for input mints.
policy.allowedOutputMints string[] Optional allowlist for output mints.
policy.blockedMints string[] Optional denylist that always wins over allowlists.
Request
PUT /managed-wallets/default-policy
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "policy": {
    "allowedSides": ["buy", "sell"],
    "blockedMints": ["BlockedMint11111111111111111111111111111111"]
  }
}
Response
{
  "ok": true,
  "data": {
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "policy": {
      "allowedSides": ["buy", "sell"],
      "blockedMints": ["BlockedMint11111111111111111111111111111111"]
    }
  }
}
Default policy applies to new trades for this API key unless a wallet adds stricter rules.

Create a Managed Wallet

Creates a brand-new Solana wallet that Questa can sign for and binds it to the current API key. Use this when you do not have a wallet yet, so you never have to send a private key. Fund the returned walletAddress with SOL, then trade with managedWalletId.

POST/managed-wallets/createAPI Key Required
FieldTypeDescription
walletLabel string Optional label for easier identification.
tradePolicy object Optional wallet-specific policy. Wallet rules can only make the effective policy stricter.
Request
POST /managed-wallets/create
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "walletLabel": "my-bot"
}
Response
{
  "ok": true,
  "data": {
    "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
    "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
    "walletLabel": "my-bot",
    "paused": false,
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "created": true,
    "privateKey": "BASE58_SECRET_KEY",
    "privateKeyEncoding": "base58",
    "warning": "This private key is shown exactly once. Store it somewhere safe; the server only keeps an encrypted copy for managed signing."
  }
}
The private key is shown only once. Save it so you can always move the funds yourself, for example by importing it into Phantom.

Register a Managed Wallet

Register a wallet once for managed signing and bind it to the current API key. The returned managedWalletId becomes the stable identifier for all later managed trades.

POST/managed-wallets/registerAPI Key Required
FieldTypeDescription
walletAddressrequired string Public key of the wallet being registered.
privateKeyrequired string Base58 or JSON-array Solana secret key. Used once during registration.
walletLabel string Optional provider-side label for easier identification.
tradePolicy object Optional wallet-specific policy override. Wallet rules can only make the effective policy stricter.
Request
POST /managed-wallets/register
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
  "privateKey": "BASE58_OR_JSON_SECRET_KEY",
  "walletLabel": "customer-berlin-01",
  "tradePolicy": {
    "allowedOutputMints": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]
  }
}
Response
{
  "ok": true,
  "data": {
    "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
    "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
    "walletLabel": "customer-berlin-01",
    "paused": false,
    "policy": {
      "allowedOutputMints": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"]
    },
    "effectivePolicy": {
      "allowedSides": ["buy", "sell"],
      "allowedOutputMints": ["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"],
      "blockedMints": ["BlockedMint11111111111111111111111111111111"]
    },
    "createdAt": "2026-04-24T08:55:03.114Z",
    "updatedAt": "2026-04-24T08:55:03.114Z",
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "created": true
  }
}
Keys are encrypted at rest. The private key is never forwarded to Solana RPC providers.
After registration, use managedWalletId for trades.

Bulk Register Managed Wallets

Onboard many customer wallets in one request. This keeps provider setup simple for high-volume systems while still returning per-wallet success and error details.

POST/managed-wallets/register/bulkAPI Key Required
Request
POST /managed-wallets/register/bulk
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "continueOnError": true,
  "wallets": [
    {
      "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
      "privateKey": "BASE58_OR_JSON_SECRET_KEY",
      "walletLabel": "customer-berlin-01"
    },
    {
      "walletAddress": "BadWalletAddress",
      "privateKey": "BAD_SECRET"
    }
  ]
}
Response
{
  "ok": true,
  "data": {
    "processed": 2,
    "created": 1,
    "updated": 0,
    "wallets": [
      {
        "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
        "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
        "walletLabel": "customer-berlin-01",
        "paused": false,
        "policy": {},
        "effectivePolicy": {},
        "createdAt": "2026-04-24T08:55:03.114Z",
        "updatedAt": "2026-04-24T08:55:03.114Z",
        "created": true
      }
    ],
    "errors": [
      {
        "index": 1,
        "walletAddress": "BadWalletAddress",
        "code": "INVALID_PRIVATE_KEY",
        "message": "Could not parse private key: Non-base58 character"
      }
    ]
  }
}
Batch requests can succeed partially. Successful wallets are returned even if others fail.

Update a Managed Wallet

Use this to pause a wallet, resume it, rename it, or attach stricter wallet-specific policy overrides after registration.

PATCH/managed-wallets/:managedWalletIdAPI Key Required
FieldTypeDescription
walletLabel string Optional new label for the wallet.
paused boolean Pause or resume managed trades for this wallet.
tradePolicy object Optional wallet-specific policy override.
Request
PATCH /managed-wallets/8df3929f-62d8-4b8e-a084-9f64c6fce9f9
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "paused": true
}
Response
{
  "ok": true,
  "data": {
    "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
    "walletAddress": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
    "walletLabel": "customer-berlin-01",
    "paused": true,
    "policy": {},
    "effectivePolicy": {
      "allowedSides": ["buy", "sell"],
      "blockedMints": ["BlockedMint11111111111111111111111111111111"]
    },
    "createdAt": "2026-04-24T08:55:03.114Z",
    "updatedAt": "2026-04-24T09:05:10.447Z",
    "apiKeyId": "4d8d5f68-54a4-44b6-83ce-6ea45f34a479",
    "created": false
  }
}
Paused wallets return MANAGED_WALLET_PAUSED.

Managed Wallet Lifecycle and Policy

A managed wallet belongs to your account and is bound to the API key that created or registered it. Only API keys bound to a wallet can trade with it.

Policy fields

FieldMeaning
allowedSidesOnly these sides may trade, for example ["sell"].
allowedInputMintsOnly these mints may be sold into a trade.
allowedOutputMintsOnly these mints may be bought.
blockedMintsA trade is refused if either side uses one of these mints.
maxTradeSolLargest buy paid in SOL, in SOL. A bigger one is refused with 403 MANAGED_WALLET_TRADE_LIMIT.
maxDailySolSOL the wallet may spend on buys in any 24 hours, counting sent trades. Over it: 403 MANAGED_WALLET_DAILY_LIMIT.
  • A missing field or an empty list means no restriction.
  • Each API key has a default policy. A wallet can add its own policy on top.
  • When both exist, allowlists are intersected and blocklists are combined. Two allowlists with nothing in common allow nothing. For the SOL limits the smaller value applies.
  • tradePolicy on PATCH /managed-wallets/:id replaces the wallet's own policy. It does not merge with the old one.
  • A blocked trade returns 403 MANAGED_WALLET_POLICY_BLOCKED before anything is signed.
  • The SOL limits count buys paid in SOL. Sells and buys paid in other tokens are limited with the mint lists. Fees are limited per request with maxFeeUsd.

Pausing

A paused wallet refuses new trades with 409 MANAGED_WALLET_PAUSED. Trades already sent to the network keep being tracked and can still confirm.

Keys and removal

  • Revoking an API key also ends its access to every wallet it was bound to. The wallet itself stays stored.
  • To give another key of your account access, call POST /managed-wallets/:id/api-keys with { "apiKeyId": "..." } from a key that already has access. No private key is needed. DELETE /managed-wallets/:id/api-keys/:apiKeyId takes access away again.
  • DELETE /managed-wallets/:id deletes a wallet for good, together with its stored key. It only works when the wallet holds at most 5,000 lamports (one network fee) and no tokens; otherwise it answers 409 MANAGED_WALLET_NOT_EMPTY. Move the funds out first.
  • Bulk register takes up to 100 wallets per call. The list endpoint returns up to 100 per page.

Swap in One Call (Managed Trade)

Does the whole swap in one request: quote, build, sign, send and track. Questa signs with your managed wallet, so there is no separate signing call. It needs an API key and a managedWalletId from POST /managed-wallets/create or POST /managed-wallets/register.

POST/trade/execute-managedAPI Key Required
FieldTypeDescription
siderequired "buy" | "sell" Trade direction.
inputMintrequired string Mint address of the token being sold.
outputMintrequired string Mint address of the token being bought.
amount string Trade amount in smallest unit. Required for buys; optional for sells if you use sellPercent.
sellPercent number Sell-only alternative to amount. Percentage of the current wallet token balance to sell (for example 25, 50, 100).
managedWalletIdrequired string Managed wallet ID returned by POST /managed-wallets/create or /managed-wallets/register.
executionPreference "cheap" | "balanced" | "fast" | "fastest" Optional high-level execution preference. Defaults to fastest for managed trades.
completionTarget "submitted" | "first_seen" | "confirmed" Optional response target. Defaults to first_seen while the backend continues confirmed tracking in the background.
maxSlippageBps number Optional slippage cap.
maxFeeUsd number Optional fee budget in USD.
strictFeeBudget boolean With maxFeeUsd: refuse with 400 FEE_BUDGET_TOO_SMALL instead of sending with cut fees when live fees don't fit.
antiMev boolean Sandwich protection. Jito block builders may not place another trade before this one, and it is sent only over Jito or Helius Sender when the trade pays a tip for them. Fees stay the same.
deadlineMs number How long the execution stays valid. Defaults to 60000.
webhookUrl string Optional webhook target.
idempotencyKey string Optional client idempotency key.
Sizing: managed buys must send amount. Managed sells can send either amount for an exact raw token amount or sellPercent for a wallet-balance percentage.
Request
POST /trade/execute-managed
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "side": "buy",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "1000000000",
  "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9"
}
Response
{
  "ok": true,
  "data": {
    "executionId": "managed_exec_123",
    "status": "pending",
    "signature": "REAL_SOLANA_SIGNATURE",
    "trade": {
      "side": "buy",
      "inputMint": "So11111111111111111111111111111111111111112",
      "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "inputAmount": "1000000000",
      "estimatedOutput": "83369249"
    },
    "execution": {
      "mode": "managed_signed",
      "expiresAt": "2026-04-13T17:23:51.256Z",
      "slippageBps": 100
    },
    "managedWallet": {
      "id": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
      "address": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
      "label": "customer-berlin-01"
    },
    "timing": {
      "finalizedAt": null,
      "executionTimeMs": null
    },
    "completion": {
      "target": "first_seen",
      "satisfied": true
    },
    "confirmation": {
      "target": "first_seen",
      "satisfied": true,
      "submitted": true,
      "firstSeen": true,
      "firstSeenStatus": "processed",
      "confirmed": false,
      "trackingContinues": true
    },
    "signing": {
      "required": false,
      "managed": true
    },
    "message": "Transaction reached first_seen; confirmation tracking continues asynchronously.",
    "warnings": []
  }
}
Request
POST /trade/execute-managed
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "side": "sell",
  "inputMint": "6X1W4ffwhB6Ptko5Y8BFveap8BoyjvtH29kuykDLpump",
  "outputMint": "So11111111111111111111111111111111111111112",
  "sellPercent": 100,
  "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
  "maxFeeUsd": 0.20
}
Response
{
  "ok": true,
  "data": {
    "executionId": "managed_sell_exec_123",
    "status": "confirmed",
    "signature": "REAL_SOLANA_SIGNATURE",
    "trade": {
      "side": "sell",
      "inputMint": "6X1W4ffwhB6Ptko5Y8BFveap8BoyjvtH29kuykDLpump",
      "outputMint": "So11111111111111111111111111111111111111112",
      "inputAmount": "36836946118",
      "estimatedOutput": "30642005"
    },
    "warnings": [
      "Sell percentage resolved to 36836946118 raw tokens from the current wallet balance."
    ]
  }
}
The API key must be bound to the wallet.
Wallet policy is checked before signing.
completionTarget: controls how long the managed route waits. The default is first_seen: the API responds once an RPC sees the signature, then continues confirmed tracking in the background. Use confirmed only if the caller explicitly wants to wait for the full outcome in the HTTP request.
API-key requests must use managedWalletId.

Prepare a Managed Trade

Splits a managed trade into two calls. The first builds and quotes the trade ahead of time. The second only signs and sends it, so it answers faster at the moment you decide.

POST/trade/prepare-managedAPI Key Required

Takes the same body as POST /trade/execute-managed.

POST/trade/execute-prepared-managedAPI Key Required
FieldTypeDescription
preparedTradeIdrequired string (uuid) The ID returned by prepare-managed.
completionTarget "submitted" | "first_seen" | "confirmed" Optional. Overrides the target given at prepare time.
Request
POST /trade/prepare-managed
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "side": "buy",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "100000000",
  "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
  "idempotencyKey": "order-7781"
}
Response
{
  "ok": true,
  "data": {
    "preparedTradeId": "0b7c2f1e-6a51-4c55-9d39-2a7c9e1f4b10",
    "executionId": "managed_exec_456",
    "status": "awaiting_signature",
    "ready": true,
    "execution": {
      "mode": "managed_signed",
      "expiresAt": "2026-11-16T12:01:00.000Z",
      "preparedExpiresAt": "2026-11-16T12:00:25.000Z",
      "slippageBps": 100
    },
    "next": {
      "endpoint": "/trade/execute-prepared-managed",
      "body": {
        "preparedTradeId": "0b7c2f1e-6a51-4c55-9d39-2a7c9e1f4b10",
        "completionTarget": "first_seen"
      }
    },
    "warnings": []
  }
}
  • A prepared trade is valid for about 25 seconds (preparedExpiresAt). After that you get 410 PREPARED_TRADE_EXPIRED or 404 PREPARED_TRADE_NOT_FOUND; prepare it again.
  • Only the API key that prepared it can execute it. A second execute while the first is running returns 409 PREPARED_TRADE_IN_FLIGHT.
  • The execute response has the same shape as /trade/execute-managed.
  • The price is fixed at prepare time. In a fast market, prepare close to the moment you execute.

Submit a Signed Trade

Send the signed base64 transaction back to the backend so it can broadcast and track it.

POST/trade/:executionId/submit-signedAPI Key Required
FieldTypeDescription
signedTransactionBase64required string Signed transaction serialized in base64.
completionTarget "submitted" | "first_seen" | "confirmed" Optional response target. Defaults to submitted for the fastest response.
Request
POST /trade/:executionId/submit-signed
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "signedTransactionBase64": "BASE64_SIGNED_TRANSACTION",
  "completionTarget": "first_seen"
}
Response
{
  "ok": true,
  "data": {
    "executionId": "87a8246a-2e0b-4b02-9495-efc5a859a565",
    "status": "pending",
    "signature": "REAL_SOLANA_SIGNATURE",
    "message": "Signed transaction accepted and broadcast started."
  }
}

Get Trade Status

Read the latest execution summary, current attempt, event history, and signing state.

GET/trade/:executionIdAPI Key Required
Request
GET /trade/:executionId
x-api-key: "YOUR_API_KEY"
Response
{
  "ok": true,
  "data": {
    "summary": {
      "executionId": "87a8246a-2e0b-4b02-9495-efc5a859a565",
      "status": "awaiting_signature",
      "mode": "broker_signed",
      "signature": null,
      "retryCount": 0
    },
    "trade": {
      "side": "buy",
      "inputMint": "So11111111111111111111111111111111111111112",
      "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "inputAmount": "1000000000",
      "estimatedOutput": "83369249",
      "actualOutput": null
    },
    "currentAttempt": {
      "attemptNumber": 1,
      "status": "awaiting_signature",
      "provider": "jupiter",
      "slippageBps": 100,
      "signature": null,
      "failureReason": null,
      "route": {
        "provider": "jupiter",
        "hops": 1,
        "labels": ["HumidiFi"],
        "priceImpactPct": "0.0001012329486911"
      },
      "fees": {
        "baseLamports": 5000,
        "priorityLamports": 182000,
        "jitoTipLamports": 63700,
        "totalLamports": 250700,
        "totalUsd": 0.02,
        "estimation": {
          "preference": "balanced",
          "maxFeeUsd": null,
          "priority": {
            "source": "dynamic",
            "sampleCount": 42,
            "sampledProviders": ["helius-primary"],
            "sampleMicroLamports": {
              "min": 10000,
              "median": 85000,
              "max": 400000
            },
            "targetPercentile": 0.5,
            "multiplier": 1.1,
            "computeUnitsEstimate": 400000
          },
          "jitoTip": {
            "source": "dynamic",
            "ratio": 0.35,
            "floorLamports": 50000,
            "ceilingLamports": 300000,
            "basedOnPriorityLamports": 182000
          }
        }
      }
    },
    "signing": {
      "required": true,
      "transactionBase64": "BASE64_UNSIGNED_TRANSACTION"
    },
    "events": [
      { "type": "execution.created" },
      { "type": "execution.awaiting_signature" }
    ]
  }
}
Read route, fees, slippage, and failure details from currentAttempt.

Retry a Trade Execution

Retry only when the execution is failed or expired. An execution can be retried up to 3 times.

POST/trade/:executionId/retryAPI Key Required

The response shape matches POST /trade/execute.

  • Before retrying, Questa checks whether the last attempt landed. If it did, you get 409 PREVIOUS_ATTEMPT_LANDED; check /trade/:executionId for the result. If it can still land, you get 409 PREVIOUS_ATTEMPT_MAY_STILL_LAND; try again in about a minute. If the check can't be done, you get 503 RETRY_LANDING_UNKNOWN.
  • The retry gets a fresh quote and keeps the original maxFeeUsd and maxSlippageBps. The priority fee goes up by 1.5x within the same budget.
  • Without maxSlippageBps, slippage can widen up to 7.5% (750 bps) on retries. Set a maximum if that is too much for you.
  • Fees you set yourself (priorityFeeLamports, jitoTipLamports) are reused on a retry, and an own priority fee is not raised.
  • Errors that a retry can't fix, such as a policy block or not enough balance, return 400 RETRY_DENIED.
Managed executions: a retry is signed with the managed wallet and sent in the same call. The answer has the same shape as execute-managed. Self-signed executions still get awaiting_signature with a new unsigned transaction to sign.

Analyze a Quote

Legacy helper endpoint for fetching a quote and basic execution guidance.

POST/quote/analyzeAPI Key Required
FieldTypeDescription
inputMintrequired string Mint address of the token being sold.
outputMintrequired string Mint address of the token being bought.
amountrequired string Amount in smallest unit as a numeric string.

Swap in One Call, Fastest Response

The speed-first one-call swap. Like /trade/execute-managed, there is no signing step: Questa quotes, signs with your managed wallet and sends. It answers as soon as the transaction is sent and keeps tracking it through /trade/:executionId. See which managed endpoint to use.

POST/swap/execute-nowAPI Key Required
FieldTypeDescription
managedWalletIdrequired uuid Managed wallet ID from /managed-wallets/create or /managed-wallets/register.
inputMintrequired string Mint address of the token being sold.
outputMintrequired string Mint address of the token being bought.
amountrequired string Amount in smallest unit as a numeric string.
side "buy" | "sell" Trade side. Defaults to buy.
speed "balanced" | "fast" | "fastest" Defaults to fastest. fastest skips the simulation and sends on several fast paths at once.
maxSlippageBps number Maximum slippage in basis points.
maxFeeUsd number Total fee budget in USD, Questa fee included. Defaults to the $0.40 cap; higher values are lowered to the cap.
deadlineMs number How long the execution stays valid. Defaults to 45000.
idempotencyKey string 1 to 128 characters. Strongly recommended, so a repeated request can't buy twice.

There is no sellPercent here and you can't set your own priority fee or tip. Use /trade/execute-managed for those.

Request
POST /swap/execute-now
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "managedWalletId": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
  "side": "buy",
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "100000000",
  "speed": "fastest",
  "maxSlippageBps": 150,
  "maxFeeUsd": 0.25,
  "idempotencyKey": "order-7782"
}
Response
{
  "ok": true,
  "executionId": "managed_exec_789",
  "status": "pending",
  "accepted": true,
  "executionClass": "hot_lane",
  "latencyTargetMet": true,
  "latencyMs": { "total": 92, "quote": 18, "build": 9, "sign": 1, "broadcast": 31 },
  "signature": "REAL_SOLANA_SIGNATURE",
  "route": {
    "engine": "direct",
    "market": "pump_amm",
    "expectedOut": "16642110",
    "slippageBps": 150,
    "priceImpactPct": "0.02",
    "labels": ["Pump.fun Amm"]
  },
  "managedWallet": {
    "id": "8df3929f-62d8-4b8e-a084-9f64c6fce9f9",
    "address": "E8QRVJCb1Jv1zwTa9Zdk7WCsY6T2KFJuqExgBg6Y62Uv",
    "label": "customer-berlin-01"
  },
  "fees": {
    "baseLamports": 5000,
    "priorityLamports": 400000,
    "jitoTipLamports": 300000,
    "heliusSenderTipLamports": 200000,
    "totalLamports": 905000,
    "totalUsd": 0.13
  },
  "feeBudget": {
    "requestedMaxFeeUsd": 0.25,
    "hardCapUsd": 0.4,
    "effectiveMaxFeeUsd": 0.25,
    "defaultApplied": false,
    "clampedToHardCap": false,
    "estimatedNetworkFeeUsd": 0.13,
    "estimatedPlatformFeeUsd": 0.1,
    "estimatedTotalFeeUsd": 0.23,
    "withinCap": true
  },
  "tracking": {
    "statusEndpoint": "/trade/managed_exec_789",
    "confirmationContinuesAsync": true
  },
  "warnings": []
}

The response above is shortened. It also contains landing, hotLane, settlement and diagnostics with details on how the transaction was sent.

executionClass is hot_lane, warm_lane or fallback_lane. Only hot_lane means the fastest path was used; hotLane.reason says why it wasn't.

Sent is not confirmed. The 100 ms target is the time until the transaction is sent, not until it confirms. Landing in the current block is aimed for but never guaranteed. Check /trade/:executionId or use a webhook for the outcome.
Small budgets: if the estimated fees are above your budget, the trade is still sent with fees cut to fit, and warnings says so. Such a trade can land later or not at all. See Fees.

Swap Latency Readiness

Returns provider readiness, protocol-limit notes, hot-lane blockers, and recent p50/p95 latency samples without exposing full RPC URLs or secrets.

GET/swap/latency/statusAPI Key Required

Check Transaction Status

Legacy helper endpoint for polling a real Solana transaction signature.

POST/tx/statusAPI Key Required
FieldTypeDescription
signaturerequired string Base58 Solana transaction signature.

Build a Retry Plan

Legacy helper endpoint for generating a fresh unsigned retry transaction after a failed swap.

POST/tx/retry-planAPI Key Required
FieldTypeDescription
inputMintrequired string Same input mint used for the failed swap.
outputMintrequired string Same output mint used for the failed swap.
amountrequired string Amount in smallest unit.
userPublicKeyrequired string Wallet that will sign the retry transaction.
previousSlippageBpsrequired number Slippage used in the failed attempt.
failureReasonrequired string Human-readable failure reason.
retryAttemptrequired number Retry count, starting at 1.
speedModerequired "safe" | "normal" | "degen" Legacy retry preset.
Request
POST /tx/retry-plan
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "inputMint": "So11111111111111111111111111111111111111112",
  "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "1000000000",
  "userPublicKey": "CQye4SbJtdtNd6pSo9NRnwPNorUysGeFPHJoar1bPeC8",
  "previousSlippageBps": 100,
  "failureReason": "slippage tolerance exceeded",
  "retryAttempt": 1,
  "speedMode": "normal"
}
Response
{
  "ok": true,
  "retryAttempt": 1,
  "reasonClassifiedAs": "SLIPPAGE_TOO_LOW",
  "newRecommendedSlippageBps": 175,
  "swapTransaction": "BASE64_TRANSACTION",
  "warnings": [],
  "retryExplanation": "Transaction failed because the price moved outside your slippage tolerance of 1.00%. Retrying with 1.75% slippage (attempt #1)."
}
Note: this endpoint prepares a new retry transaction, but it still must be signed and sent by a wallet.

Launch API

Create a coin on Pump.fun, Bonk, Raydium LaunchLab or Meteora DBC with one API. Questa hosts the picture and metadata, builds the launchpad's create transaction itself (no launchpad API in between), and returns it for the creator's wallet to sign. The new mint key is made for that one transaction and signs it before you get it. Questa never sees the creator's key.

POST /api/v1/launch/metadata→ POST /api/v1/launch/create→ Creator signs→ POST /api/v1/launch/submit
Fee: each launch carries a Questa fee of $1.50, paid in SOL inside the same transaction. An optional first buy goes into the same transaction too, so nobody can buy before the creator. Every built launch is run against the chain without sending it, so you see the expected cost before anyone signs.

List Launchpads

Every launchpad with its fees, its curve and what a creator can set, read from the launchpad's own on-chain settings (live: true). ready launchpads can be used now; unavailable ones say why.

GET/api/v1/launch/launchpadsAPI Key Required
Request
curl https://www.questa.one/api/v1/launch/launchpads \
  -H "x-api-key: YOUR_KEY"
Response
{
  "ok": true,
  "data": {
    "feeUsd": 1.5,
    "live": true,
    "limits": { "launchLab": { "minSupply": 10000000, "maxLockPct": 80, "minSoldPct": 20, "minPoolPct": 15, "minRaise": { "SOL": 24, "USD1": 5000 } } },
    "launchpads": [
      {
        "id": "pump_fun", "name": "Pump.fun", "status": "ready", "graduatesTo": "PumpSwap",
        "quotes": ["SOL", "USDC"], "tokenStandard": "Token-2022", "decimals": 6,
        "curve": { "SOL": { "supply": 1000000000, "sold": 793100000, "raise": 85, "virtualTokens": 1073000000, "virtualQuote": 30 } },
        "fees": {
          "create": "Free",
          "curve": [{ "label": "Protocol fee", "pct": 0.95, "to": "pump.fun" }, { "label": "Creator fee", "pct": 0.3, "to": "You" }],
          "graduation": "0.015 SOL migration fee, taken from the raise.",
          "pool": [{ "label": "Creator fee", "pct": 0.95, "to": "You" }],
          "liquidity": "All liquidity is burned at graduation."
        }
      },
      { "id": "moonshot", "name": "Moonshot", "status": "unavailable", "reason": "..." }
    ]
  }
}

Read a Meteora Pool Config

On Meteora DBC the fees, the raise and the token standard come from the pool config a coin launches under. This returns them for any config address. Only configs that graduate to DAMM v2 accept new coins.

GET/api/v1/launch/meteora-config/:addressAPI Key Required

Upload Coin Details

Stores the picture and the metadata JSON on Questa and returns the uri to put on chain. Pictures can be PNG, JPG, WEBP or GIF up to 750 KB.

POST/api/v1/launch/metadataAPI Key Required
FieldTypeDescription
namerequired string Coin name, up to 32 characters.
symbolrequired string Ticker, up to 10 characters.
description string Up to 500 characters.
image string The picture as a data URL (data:image/png;base64,...).
website / twitter / telegram string https links shown on the coin page.
Request
{
  "name": "Questa Cat",
  "symbol": "QCAT",
  "description": "The cat that trades.",
  "image": "data:image/webp;base64,UklGR...",
  "twitter": "https://x.com/questacat"
}
Response
{
  "ok": true,
  "data": {
    "uri": "https://www.questa.one/launch/asset/6pX...",
    "imageUrl": "https://www.questa.one/launch/asset/Qe1..."
  }
}

Build a Launch Transaction

Builds the create transaction for the creator's wallet to sign. Nothing is sent. Sign it with the creator wallet and send it yourself, or pass it to /api/v1/launch/submit. The answer includes a dry run of the finished transaction: the SOL it takes, the tokens the first buy delivers, or the reason it would fail.

POST/api/v1/launch/createAPI Key Required
FieldTypeDescription
launchpadrequired string pump_fun, bonk, raydium_launchlab, meteora_dbc or boop.
creatorrequired string The wallet that pays and signs.
name / symbolrequired string Must match the metadata.
urirequired string The https metadata link from /launch/metadata.
devBuy number First buy by the creator in the same transaction, in the coin's pair asset. Up to 50 SOL or 10,000 USDC / USD1.
slippageBps number Slippage for the first buy. Defaults to 1000.
priorityFeeMicroLamports number Compute unit price. Defaults to 200000.
simulate boolean Set false to skip the dry run. Defaults to true.
options object What the launchpad lets a creator choose, see below.

Options per launchpad

FieldTypeDescription
quote string What the coin is paired with. Pump.fun: SOL or USDC. Bonk and Raydium LaunchLab: SOL or USD1. Meteora and Boop: SOL.
mayhemMode boolean Pump.fun: its trading agent trades the coin for the first 24 hours.
holderRewards boolean Pump.fun: the creator fee goes to the coin's holders instead of the creator. Permanent.
supply number Raydium LaunchLab: total supply in whole tokens, at least 10,000,000.
soldPct number Raydium LaunchLab: share of the supply sold on the curve, at least 20. At least 15% must be left for the pool.
raise number Raydium LaunchLab: pair asset raised when the curve fills, at least 24 SOL or 5,000 USD1.
lockedPct number Raydium LaunchLab: share of the supply locked for vesting, at most 80.
cliffDays / unlockDays number Raydium LaunchLab: days after graduation before locked tokens start to unlock, and days they unlock over.
vesting array Raydium LaunchLab: up to 4 entries { wallet, pct } that share the locked tokens. The rest vests to the creator.
creatorFeeOn string Raydium LaunchLab: quote (default) or both. Which side the pool's creator fee is taken from after graduation.
token2022 boolean Raydium LaunchLab: create the coin as a Token-2022 mint.
transferFeePct / transferFeeMax number Raydium LaunchLab with Token-2022: a fee kept from every transfer (up to 10%) and the most one transfer pays, in whole tokens.
dbcConfig string Meteora DBC: the pool config to launch under. Defaults to Questa's config.
Request
{
  "launchpad": "raydium_launchlab",
  "creator": "7xKX...yourWallet",
  "name": "Questa Cat",
  "symbol": "QCAT",
  "uri": "https://www.questa.one/launch/asset/6pX...",
  "devBuy": 0.5,
  "options": { "supply": 5000000000, "soldPct": 60, "raise": 200, "lockedPct": 20, "cliffDays": 30, "unlockDays": 180 }
}
Response
{
  "ok": true,
  "data": {
    "mint": "9wF...newMint",
    "pool": "4Rb...bondingCurve",
    "quote": "SOL",
    "transactionBase64": "AQAB...",
    "fee": { "usd": 1.5, "lamports": 9868421, "solPriceUsd": 152.0 },
    "devBuyAmount": 500000000,
    "expectedTokens": "81234567890123",
    "simulation": { "ok": true, "problem": null, "totalLamports": 532485421, "networkLamports": 22617000, "tokensReceived": "81234567890123", "computeUnits": 184210 },
    "lastValidBlockHeight": 312345678
  }
}
  • The dry run shows the cost at the moment it ran. If other people buy before your launch lands, the first buy gets fewer tokens, up to slippageBps.
  • The transaction is valid until lastValidBlockHeight, about one minute. After that, call /launch/create again. That gives you a new mint address; the old one is never used.
  • The SOL price used for the $1.50 fee is fixed when the transaction is built.

Send a Signed Launch

Checks the signed transaction (only launch programs, every signature present, Questa fee inside) and sends it.

POST/api/v1/launch/submitAPI Key Required
FieldTypeDescription
signedTransactionBase64required string The transaction from /launch/create, signed by the creator.
mintrequired string The mint from /launch/create.
Request
{ "signedTransactionBase64": "AQAB...", "mint": "9wF...newMint" }
Response
{ "ok": true, "data": { "signature": "5Kt...", "status": "pending" } }

The answer means the transaction was accepted for sending, not that the coin exists. Ask GET /api/v1/launch/status/:signature every few seconds until status is confirmed, finalized or failed (with error). A launch still pending after about a minute has expired; build a new one. When launches are switched off, submit returns 403 LAUNCH_DISABLED.

GET/api/v1/launch/status/:signatureAPI Key Required
Request
curl https://www.questa.one/api/v1/launch/status/5Kt... \
  -H "x-api-key: YOUR_KEY"
Response
{ "ok": true, "data": { "signature": "5Kt...", "status": "confirmed", "slot": 312345678, "error": null } }

Analyze a Launch

Launch health for any indexed coin: buyers and sellers, top 10 share, the creator's holding and sells, snipers in the first 15 seconds, buys in the launch block, volume per minute, the bonding curve, and a 0 to 100 score with plain-language notes. Higher is healthier.

GET/api/v1/launch/:mint/analysisAPI Key Required
Request
curl https://www.questa.one/api/v1/launch/9wF.../analysis \
  -H "x-api-key: YOUR_KEY"
Response
{
  "ok": true,
  "data": {
    "marketCapUsd": 48200, "bondingPct": 41.3, "graduated": false,
    "buyers": 182, "sellers": 64, "top10Pct": 21.4,
    "devHoldingPct": 3.1, "devSoldPct": null,
    "snipers": { "wallets": 2, "supplyPct": 1.8 },
    "bundle": { "wallets": 0, "supplyPct": 0 },
    "series": [{ "t": 1731283200000, "buyUsd": 1240, "sellUsd": 310 }],
    "score": 82,
    "flags": [{ "tone": "good", "text": "Supply is spread out: top 10 own 21.4%." }]
  }
}

How the score works

It starts at 70 and moves with each finding, then stays between 0 and 100. Every change shows up in flags.

FindingChange
Top 10 holders own more than 50% / 30% / less-20 / -8 / +8
Creator still holds more than 10%-12
Creator sold 90% or more of the first buy / hasn't sold-15 / +5
More than 10% of supply bought in the launch block-15
Snipers bought more than 15% in 15 seconds / no snipers-10 / +4
50 or more different buyers+8
Sells are more than 60% of volume-6
Graduated from the bonding curve+10

The launch is the first trade Questa indexed for the coin. Pool and curve accounts don't count as holders. This is a different number from the token risk score, where higher means riskier.

Creator Tier List

Every creator who launched through Questa, scored on graduation rate and typical peak market cap, and put in tiers S (80+), A (65+), B (50+), C (35+) and D. Only launches made through Questa count, so a creator's launches elsewhere don't change their tier. A single launch tops out at tier B.

GET/api/v1/launch/creatorsAPI Key Required
Request
curl https://www.questa.one/api/v1/launch/creators \
  -H "x-api-key: YOUR_KEY"
Response
{
  "ok": true,
  "data": {
    "items": [
      { "creator": "7xKX...", "tier": "S", "score": 86, "launches": 9, "graduated": 6, "bestMarketCapUsd": 2400000 }
    ]
  }
}
Score: 15 + 45 × graduation rate + 35 × peak score + 0.5 per launch (up to 10). The peak score grows with the median peak market cap, from 0 at $5,000 to 1 at $1,000,000. Selling within an hour of launch costs up to 45 points: 45 × share of launches where the creator sold early, counted from indexed trades. quickDumps in each row says how many.

Which Data Route to Use

Some data is available on more than one route. They read the same indexed data but answer in different shapes. Routes marked raw return the object directly; the others wrap it in { "ok": true, "data": ... }. See Response format.

You wantUseShapeNotes
Current priceGET /api/v1/price?token=rawprice, liquidity, marketCap, lastUpdated (Unix ms). Cached 5 s.
Current price with metricsGET /api/v1/tokens/:mint/pricewrappedAdds the latest metric row and updatedAt.
Prices for many tokensGET /api/v1/price/multirawSeveral mints in one call, GET or POST.
Recent candles/candles, /ohlcv, /chartwrappedThree names for the same route. Returns the latest limit candles in the range.
Long history, pagedGET /api/v1/ohlcv/:tokenrawOldest first, nextFrom and hasMore for paging.
Full token pageGET /api/v1/tokens/:mintrawMetadata, pools, changes, risk, counts.
Many tokens at once/api/v1/tokens/multirawUp to 100 per call.

Data API Health

Checks whether the data tables can be read and lists any that are missing. indexer says how far behind the index is: lastIndexedSlot, lastIndexedAt and lagSeconds, from the newest indexed trade. On a quiet market the lag grows even when the indexer is fine. See Freshness.

GET/api/v1/data/healthAPI Key Required

List Tokens

Returns indexed tokens from data_tokens with latest metrics and risk when available.

GET/api/v1/tokensAPI Key Required
FieldTypeDescription
search string Search mint, symbol, or name.
page number Page number. Defaults to 1.
limit number Items per page. Defaults to 50; max 250.
sortBy string createdAt, updatedAt, marketCapUsd, liquidityUsd, volume5mUsd, volume1hUsd, volume24hUsd, holderCount, riskScore, or trendingScore.
sortOrder "asc" | "desc" Sort direction. Defaults to desc.
minLiquidity number Filter by latest indexed liquidity.
minVolume5m number Filter by 5 minute indexed volume.
maxRiskScore number Filter out risky tokens.
dex string Filter tokens with an indexed pool protocol, for example pump_fun or raydium_cpmm.
GET /api/v1/tokens?limit=20&sortBy=createdAt&sortOrder=desc
Authorization: Bearer YOUR_API_KEY

Search indexed tokens by mint, symbol, or name. This returns stored token rows; it does not require somebody to be actively viewing the token.

GET/api/v1/searchAPI Key Required
GET/api/v1/tokens/searchAPI Key Required
FieldTypeDescription
queryrequired string Mint, symbol, or name search text.
limit number Max results. Defaults to 20; max 100.
Request cost: /api/v1/search returns full token details for every result, so it counts as one request per result you ask for (limit, 20 by default). /api/v1/tokens/search returns lighter rows and counts as one request. GET or POST /api/v1/tokens/multi counts as one request per token you send.

Get Many Tokens at Once

Returns the full token detail for up to 100 tokens in one call.

GET/api/v1/tokens/multi?tokens=MINT_A,MINT_BAPI Key Required
POST/api/v1/tokens/multiAPI Key Required
Request
POST /api/v1/tokens/multi
x-api-key: "YOUR_API_KEY"
Content-Type: "application/json"

{
  "tokens": ["MINT_A", "MINT_B"]
}
Response
[
  { "token": { "mint": "MINT_A", "symbol": "AAA" }, "pools": [], "risk": {} },
  { "token": null, "pools": [], "risk": null }
]
  • On GET, pass a comma list in tokens or mints. On POST, send tokens as an array or a comma list.
  • Duplicates and invalid addresses are dropped without an error. Anything after the first 100 is ignored.
  • The answer is an array in the order you sent, after dropping those. A mint Questa hasn't indexed comes back with token: null.
  • It costs one request per token that is left after dropping duplicates and invalid ones.
  • If one lookup fails, that entry comes back as { "mint": "...", "error": { "code": "...", "message": "..." } } and the rest are still returned. Only when every lookup fails does the whole call fail.

GET /api/v1/tokens/multi/all returns three lists in one call: latest, graduating and graduated, each up to limit (default 30, max 100).

Get Token Detail

Returns a rich token overview for a mint: token metadata, pools, price-change events, risk summary, indexed buy/sell/txn counts, and holder count. Token metadata is read from Metaplex metadata accounts and optional off-chain JSON when available.

GET/api/v1/tokens/:mintAddressAPI Key Required
{
  "token": {
    "name": "Example",
    "symbol": "EX",
    "mint": "TOKEN_MINT",
    "uri": "https://...",
    "decimals": 6,
    "description": "...",
    "image": "https://...",
    "creation": {
      "creator": "CREATOR_WALLET",
      "created_tx": "DISCOVERY_SIGNATURE",
      "created_time": 1760000000
    }
  },
  "pools": [],
  "events": {
    "1m": { "priceChangePercentage": 0.12 },
    "5m": { "priceChangePercentage": 1.8 }
  },
  "stats": {
    "5m": {
      "buys": 30,
      "sells": 12,
      "txns": 42,
      "volumeUsd": 5000.25,
      "volumeQuote": 27.4,
      "priceChangePercentage": 1.8
    }
  },
  "risk": {
    "snipers": { "count": 4, "wallets": [] },
    "bundlers": { "count": 1, "wallets": [] },
    "top10": 42.5,
    "score": 25,
    "risks": ["mint_authority_enabled"]
  },
  "buys": 120,
  "sells": 80,
  "txns": 200,
  "holders": 1500
}
  • This route returns the object directly, without ok and data.
  • holders counts wallets with a balance that Questa has indexed, without pool and curve accounts. It can be lower than an explorer's count for older tokens.
  • buys, sells and txns are null while trades for the token aren't indexed yet, and 0 once they are and there were none. See null and 0.
  • risk.score is 0 to 100 and higher is riskier: 25 for each authority that is still on (mint, freeze), plus 15, 30 or 50 when the top holders own more than 20%, 30% or 50%.

Get Token Price

Returns the latest indexed price, liquidity and market cap. No outside data provider is used. See Which route to use for the difference between the two routes.

GET/api/v1/price?token=:mintAddressAPI Key Required
GET/api/v1/tokens/:mintAddress/priceAPI Key Required

Get Token Candles

Returns USD candles for one token, built from its indexed trades. Trades from all pools of the token are merged into one series. /candles, /ohlcv and /chart are the same route.

GET/api/v1/tokens/:mintAddress/candlesAPI Key Required
GET/api/v1/tokens/:mintAddress/ohlcvAPI Key Required
GET/api/v1/tokens/:mintAddress/chartAPI Key Required
GET/api/v1/tokens/:mintAddress/athAPI Key Required
FieldTypeDescription
interval "1m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "6h" | "12h" | "1d" Candle interval. Parsed trades are rolled into every supported interval.
from ISO datetime Optional start time. Inclusive: a candle that starts at this time is returned.
to ISO datetime Optional end time. Inclusive on the candle start time.
limit number Max candles. Defaults to 500, max 5000. When the range holds more, the latest ones are returned.
  • Prices and volume are in USD. Times are candle start times.
  • The newest candle is still open and changes until its interval ends.
  • Periods without trades have no candle. Use fill_gaps on the history route if you need a continuous series.
  • status says where the candles came from: ohlcv (stored candles), trade_derived (built from trades on request), metric_snapshot or current_metric (only price points, no real candles), or missing.

Get Token Historical Snapshots

Returns compact historical snapshots for long-lived token charts without keeping bulky raw transactions in Postgres forever.

GET/api/v1/tokens/:mintAddress/metric-snapshotsAPI Key Required
GET/api/v1/tokens/:mintAddress/pool-snapshotsAPI Key Required
FieldTypeDescription
from ISO datetime Optional start time.
to ISO datetime Optional end time.
limit number Max snapshots. Defaults to 500; max 5000.
sortOrder "asc" | "desc" Time order. Defaults to asc for chart-friendly responses.
source string Optional snapshot source filter.
poolAddress string Pool snapshot filter for /pool-snapshots.
protocol string Pool protocol filter for /pool-snapshots.

Token Evaluation

Returns a 0 to 100 score where higher is better, a grade, a verdict, the risk object and coverage flags, for screening tokens in a UI or a bot.

PartRule
Start100 minus the risk score
Liquidity+3 from $1k, +6 from $10k, +10 from $100k
Indexed trades+2 from 5, +5 from 25, +8 from 100
24h volume+1 above $0, +4 from $10k, +7 from $100k
Holders+1 from 25, +3 from 100, +5 from 1,000
GradeA from 85, B from 70, C from 55, D from 40, else F
Verdictstrong from 80, watch from 60, risky from 40, else avoid

The result is kept between 0 and 100. While the risk score isn't ready, the score is null.

GET/api/v1/tokens/:mintAddress/evaluationAPI Key Required
GET/api/v1/tokens/:mintAddress/statsAPI Key Required
GET/api/v1/tokens/:mintAddress/eventsAPI Key Required

Get Token Trades

Returns parsed trades for one token mint. Recognized program IDs are labelled as pump_fun, pump_amm, raydium_cpmm, raydium_clmm, raydium_amm_v4, orca_whirlpool, meteora_dlmm, meteora_dbc (Meteora bonding curves, used by Bags, Believe and Jupiter Studio), or meteora_damm_v2. Unknown but clear swaps fall back to generic_balance_delta.

GET/api/v1/tokens/:mintAddress/tradesAPI Key Required
FieldTypeDescription
page / limit number Page from 1, limit up to 250 (default 50).
from / to ISO datetime Block time range, both inclusive.
side "buy" | "sell" Optional side filter.
wallet string Only this trader.
minAmountUsd number Only larger trades.

Newest first. New trades arriving while you page can shift rows; for a stable walk, fix to to the time of your first request.

Get Token Holders

Returns the holders Questa knows for one token, largest first. A wallet appears once Questa has indexed a transaction that changed its balance, so for older tokens this is a sample, not the full list. The holders count on the token detail is also based on indexed balances.

GET/api/v1/tokens/:mintAddress/holdersAPI Key Required
FieldTypeDescription
page / limit number Page from 1, limit up to 250 (default 50).
sortBy "balance" | "updatedAt" Default balance.
minBalance number Only wallets holding at least this much.

Get Token Activity

Returns recent trades, pools, latest metrics, and risk in one response for token detail pages.

GET/api/v1/tokens/:mintAddress/activityAPI Key Required

Global Trade Feed

Returns recent parsed trades across indexed tokens.

GET/api/v1/tradesAPI Key Required
FieldTypeDescription
tokenMint string Optional token mint filter.
wallet string Optional trader wallet filter.
side "buy" | "sell" Optional side filter.
minAmountUsd number Only include larger trades.
from / to ISO datetime Block time range, both inclusive.
page / limit number Page from 1, limit up to 250 (default 50). Newest first.

Pools

Returns indexed pools inferred from known protocol instructions. Internal pool refresh can now decode on-chain vault state for Raydium AMM/CPMM/CLMM, Orca Whirlpool, and Meteora DLMM when the pool account is available.

GET/api/v1/poolsAPI Key Required
GET/api/v1/pools/:tokenAPI Key Required
GET/api/v1/pool/:addressAPI Key Required
GET/api/v1/pools/:address/tradesAPI Key Required
GET/api/v1/pools/:address/snapshotsAPI Key Required

/api/v1/pools/:token lists the pools of a token. /api/v1/pool/:address returns one pool by its own address.

Returns ranked tokens. How they are ranked depends on window; the response says which with window and method (trending_score, volume_1h or volume_24h). There is no paging; the list is one page.

GET/api/v1/trendingAPI Key Required
FieldTypeDescription
window "5m" | "15m" | "1h" | "6h" | "24h" 5m and 15m rank by a trending score built from the last 5 minutes of activity, volume, buy pressure, holders and liquidity. 1h ranks by 1 hour volume. 6h and 24h both rank by 24 hour volume.

/api/v1/tokens/trending/:timeframe and /api/v1/tokens/volume/:timeframe rank by trading volume. Volume is kept for 5 minutes, 1 hour and 24 hours, so other timeframes use the next larger one.

New Launches

Returns recently launched tokens.

GET/api/v1/new-launchesAPI Key Required

Wallet Info

Returns indexed wallet holdings and parsed trade history for tracked wallets.

GET/api/v1/wallets/:addressAPI Key Required
GET/api/v1/wallets/:address/holdingsAPI Key Required
GET/api/v1/wallets/:address/tradesAPI Key Required

Watchlists

Lists of tokens saved to your account. A watchlist can also be followed live on the WebSocket channel watchlist:<id>.

GET/api/v1/watchlistsAPI Key Required
POST/api/v1/watchlistsAPI Key Required
GET/api/v1/watchlists/:idAPI Key Required
POST/api/v1/watchlists/:id/itemsAPI Key Required

DELETE /api/v1/watchlists/:id/items/:mintAddress removes a token.

FieldTypeDescription
name string Creating a list: 1 to 80 characters.
mintAddress string Adding a token: its mint address.

Only your own watchlists are visible. Adding a token also starts indexing it if Questa didn't know it yet.

Top Gainers and Losers

Tokens with the biggest price rise or drop over a timeframe. Default timeframe is 24h.

The list doesn't cover every token. Questa first takes the 250 tokens with the most volume, drops ones that fail basic quality checks, and drops ones without a price from one timeframe ago. Only these are ranked. A small token with a big move can be missing.

GET/api/v1/tokens/top-gainers/:timeframeAPI Key Required
GET/api/v1/tokens/top-losers/:timeframeAPI Key Required
GET/api/v1/top-performers/:timeframeAPI Key Required
FieldTypeDescription
timeframe string 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h or 24h. Can be left out (24h).
limit number Up to 100. Default 50.

Each token carries priceChangePercentage and priceChangeTimeframe.

Top Traders of a Token

The wallets that made the most on one token. Profit uses average cost: realized profit from sells, plus unrealized profit on what the wallet still holds at today's price. A sell whose buy we have not seen counts as zero profit, never as pure profit.

GET/api/v1/top-traders/:tokenAPI Key Required
GET/api/v1/tokens/:token/top-tradersAPI Key Required
FieldTypeDescription
sortBy "total" | "realized" | "unrealized" | "volume" Default total.
limit number Up to 100. Default 100.
Request
GET /api/v1/top-traders/TOKEN_MINT?limit=1
Response
{
  "token": { "mint": "TOKEN_MINT", "symbol": "ABC", "priceUsd": 0.0021 },
  "tradesAnalyzed": 8412,
  "walletsAnalyzed": 1290,
  "traders": [{
    "rank": 1,
    "wallet": "WALLET",
    "buys": 3, "sells": 2,
    "boughtUsd": 420.5, "soldUsd": 1890.2,
    "realizedUsd": 1350.1, "unrealizedUsd": 210.4,
    "totalPnlUsd": 1560.5,
    "remainingTokens": 182000, "balance": 182000,
    "firstBuyAt": "2026-10-06T11:02:13Z"
  }],
  "warnings": []
}

The ranking reads up to the latest 10,000 trades of the token. When a token has more, warnings contains based_on_latest_trades_only.

First Buyers of a Token

The first wallets that bought a token, in order, with what they did afterwards. Use it to spot snipers and to see if early wallets are still holding or have sold. "Launch" means the first trade Questa indexed for the token. For tokens created before Questa started indexing, that is not the real launch.

GET/api/v1/first-buyers/:tokenAPI Key Required
GET/api/v1/tokens/:token/first-buyersAPI Key Required
FieldTypeDescription
limit number Up to 100. Default 100.

Each buyer has slotsAfterLaunch, secondsAfterLaunch, isCreator, status (holding, sold_part or sold_all), holdingPctOfSupply and the same profit fields as top traders. The summary shows how many still hold, how many bought in the launch slot, and what share of supply the first buyers still hold.

Wallet PnL

Profit and loss of a wallet across the tokens it traded, from its latest 2,000 indexed trades.

  • Profit uses average cost. A sell whose buy Questa hasn't seen counts as zero profit.
  • unrealized values the tokens the wallet still holds, as counted from these trades, at today's price.
  • Transfers in and out are not trades, so tokens received or sent that way don't show up here.
  • For wallets with more than 2,000 trades, older trades are left out. The response then lists based_on_latest_trades_only in summary.warnings, and tradesCounted says how many were used. Use PnL on one token for a complete position.
GET/api/v1/pnl/:walletAPI Key Required
GET/api/v1/pnl/:wallet/historyAPI Key Required

/history returns realized profit per day.

Wallet PnL on One Token

One wallet's full position on one token: buys, sells, average buy price, realized and unrealized profit, and the current balance.

GET/api/v1/pnl/:wallet/:tokenAPI Key Required

Tokens Created by a Wallet

Every token a wallet launched, newest first, with price, market cap, liquidity and 24h volume. The summary counts how many still have liquidity and how many reached $100k or $1M market cap, so you can judge a creator before you buy.

The creator is the wallet named in the launchpad's create instruction. If that isn't known, it is the creator from Pump.fun metadata, then the Metaplex update authority.

GET/api/v1/deployer/:walletAPI Key Required
FieldTypeDescription
page number Default 1.
limit number Up to 100. Default 50.

Price History

Past prices of a token without loading candles.

GET/api/v1/price/history?token=:tokenAPI Key Required

The current price and the price and change 1h, 24h, 3d, 7d, 14d and 30d ago.

GET/api/v1/price/history/timestamp?token=:token×tamp=:timeAPI Key Required

The price at a moment in time: the last trade at or before it. Time can be Unix seconds, milliseconds or an ISO date.

GET/api/v1/price/history/range?token=:token&time_from=:from&time_to=:toAPI Key Required

The lowest and highest price between two times (at most 366 days), with when each happened.

Historical OHLCV

Candles for any time range, oldest first, so you can load a token's full history for charts and backtests. Each page holds up to 1,000 candles; pass nextFrom as the next time_from until hasMore is false. time_from is inclusive and time_to exclusive, so pages never overlap.

GET/api/v1/ohlcv/:tokenAPI Key Required
GET/api/v1/tokens/:token/ohlcv/historyAPI Key Required
FieldTypeDescription
interval string 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h, 1d, 1w or 1M. Default 1h. Weeks start on Monday, months on the 1st (UTC).
time_from number | string Start, as Unix seconds, milliseconds or an ISO date. Default: enough candles back to fill one page.
time_to number | string End, exclusive: a candle starting exactly at this time is not included. Default now.
limit number Candles per page, up to 1,000. Default 500.
fill_gaps boolean Add flat candles (last close, zero volume) for periods without trades, marked filled: true. Default false.
metric "price" | "marketcap" Default price. Market cap is past price times today's supply, so it is wrong for tokens whose supply changed (burns, mints). The response then has the warning marketcap_from_price_times_current_supply.
Request
GET /api/v1/ohlcv/TOKEN_MINT?interval=1d&time_from=1759276800&limit=2
Response
{
  "token": "TOKEN_MINT",
  "interval": "1d",
  "metric": "price",
  "from": 1759276800,
  "to": 1759953600,
  "source": "data_ohlcv_candles",
  "candles": [
    { "time": 1759276800, "open": 0.0011, "high": 0.0019, "low": 0.0010,
      "close": 0.0017, "volume": 48210.5, "trades": 912, "buys": 530, "sells": 382 },
    { "time": 1759363200, "open": 0.0017, "high": 0.0021, "low": 0.0014,
      "close": 0.0015, "volume": 30117.2, "trades": 640, "buys": 301, "sells": 339 }
  ],
  "hasMore": true,
  "nextFrom": 1759449600,
  "warnings": []
}

History starts when Questa first indexed the token. If a range has no candles, firstAvailable tells you where the history begins.

Questa Charts

Questa Charts is the trading chart from Questa Pro as a standalone widget: one JavaScript file (about 150 KB, no dependencies) that draws on a canvas, with 8 chart types, 50 indicators, 22 drawing tools, four themes, and draggable order lines. It runs entirely in the browser. See it live on the Charts page and pick a plan under Licensing.

License and install

After you buy a plan, your chart license shows your key, the list of sites the chart may run on, a ready script tag and the downloads. Add each domain you use (for example example.com or *.example.com); www is covered automatically. On localhost the chart always runs, with or without a key, so you can build first and buy later.

<script src="https://www.questa.one/charts/lib/v1/questa-charts.js?key=YOUR_KEY"></script>

The hosted script always carries your current sites and plan. If you would rather serve the file yourself or use a bundler, download questa-charts.js, questa-charts.esm.js and the TypeScript types from the same page. A downloaded copy has your sites built in, so download it again after you change them. Source customers also get the full source and build script there. On a site that is not on your list the chart shows a short notice instead of drawing.

Tutorial: a live chart from your own data

This walks through a complete integration (there is also a 40 second video): load candle history from your backend, keep the chart live over a WebSocket, and recover from a dropped connection. The whole page is below; the steps after it explain each part.

<div id="chart" style="height: 560px"></div>
<script src="https://www.questa.one/charts/lib/v1/questa-charts.js?key=YOUR_KEY"></script>
<script>
const SYMBOL = "BONK/SOL";
const chart = new ChartWidget("#chart", {
  symbol: SYMBOL,
  timeframe: 60,
  timeframes: [60, 300, 3600, 86400],
  theme: "dark",
  indicators: ["rsi"],
  autosave: "chart-" + SYMBOL,
});

let candle = null;   // the minute that is still open
let socket = null;
let retry = 0;

// 1. History: one-minute candles from your backend.
async function loadHistory() {
  const res = await fetch("/api/candles?symbol=" + encodeURIComponent(SYMBOL) + "&resolution=60");
  const rows = await res.json();   // [{ time, open, high, low, close, volume }, ...]
  chart.setData(rows, { keepView: candle !== null });
  const last = rows[rows.length - 1];
  candle = last ? { t: last.time, o: last.open, h: last.high, l: last.low, c: last.close, v: last.volume } : null;
}

// 2. Live: every trade moves the open candle, or starts the next one.
function onTrade(trade) {   // { time (seconds), price, size }
  const t = Math.floor(trade.time / 60) * 60;
  if (candle && t < candle.t) return;   // older than the open minute
  if (!candle || t > candle.t) candle = { t, o: trade.price, h: trade.price, l: trade.price, c: trade.price, v: 0 };
  candle.h = Math.max(candle.h, trade.price);
  candle.l = Math.min(candle.l, trade.price);
  candle.c = trade.price;
  candle.v += trade.size;
  chart.update(candle, 60);
}

// 3. Connect, and after a dropped connection load the gap and connect again.
function connect() {
  socket = new WebSocket("wss://your-server.example/trades?symbol=" + encodeURIComponent(SYMBOL));
  socket.onopen = () => { retry = 0; };
  socket.onmessage = (event) => onTrade(JSON.parse(event.data));
  socket.onclose = () => {
    const wait = Math.min(15000, 500 * 2 ** retry++);
    setTimeout(() => loadHistory().then(connect, connect), wait);
  };
}

loadHistory().then(connect);
</script>

1. Load history

Fetch candles from your own backend and pass them to setData. Rows can be objects with time, open, high, low, close, volume or arrays in that order, and time can be seconds, milliseconds or an ISO string. Send the smallest resolution you have. With one-minute candles the chart builds 5 minute, 1 hour and 1 day candles itself, so the timeframes option only lists what you want in the toolbar. A timeframe smaller than your data cannot be shown.

For long histories, load a second, coarser resolution next to the fine one, for example chart.setData({ 60: lastTwoDays, 3600: lastYear }). The chart uses the finest one that fits each timeframe.

No candle store of your own? For Solana tokens the Historical OHLCV endpoint of the Data API returns candles in exactly this shape, so your backend can pass them straight on: GET /api/v1/ohlcv/TOKEN_MINT?interval=1m, then chart.setData(body.candles). Call it from your server, not the page, because the request carries your API key. For more than 1,000 candles, keep asking with nextFrom as the next time_from until hasMore is false.

2. Stream live prices

update takes one candle and either changes the last candle or adds a new one. If your server already sends candles, the whole live part is one line:

socket.onmessage = (event) => chart.update(JSON.parse(event.data), 60);

If your server sends single trades, build the open candle in the browser as onTrade does above: round the trade time down to the minute, start a new candle when the minute changes, otherwise raise the high, lower the low, set the close and add the size. The second argument of update is the resolution of the candle in seconds. The chart keeps every timeframe, all indicators and the countdown in step.

3. Survive a dropped connection

Phones sleep and networks drop, so reconnect when the socket closes, with a growing wait. Trades that happened while you were offline are missing, so load the history again before reconnecting. keepView: true keeps the reader's zoom and scroll position while the data is replaced.

4. Switch the market

To show another symbol on the same chart, stop the old stream first so late messages cannot land on the new market:

function show(symbol) {
  socket.onclose = null;      // no reconnect for the old market
  socket.close();
  candle = null;
  chart.setSymbol(symbol);
  // then load history and connect for the new symbol, as above
}

5. Use Questa as the data source

Candles from the Questa Data API already have the right shape, so candles from the response goes straight into setData. Call the Data API from your server, not from the page, so your API key stays private.

// on your server
const res = await fetch("https://www.questa.one/api/v1/ohlcv/TOKEN_MINT?interval=1m", {
  headers: { "x-api-key": process.env.QUESTA_API_KEY },
});
const { candles } = await res.json();   // send these to the page

Things that go wrong

  • The chart is empty. The container has no height. Give it one, for example style="height: 560px".
  • "Not licensed for this site". Add the domain under your chart license. On localhost the chart always runs.
  • Candles are decades off. Mixed seconds and milliseconds in one feed. Pick one for history and live data.
  • A new candle resets on every refresh. Start the open candle from the last history row, as loadHistory does, instead of from the first trade.
  • In React, two charts appear. Create the chart in an effect and call destroy() in its cleanup, as in the example under Embed the chart.

Embed the chart

Include the script tag from your account (it defines window.ChartWidget), or import questa-charts.esm.js from a bundler. The container needs a height; the chart follows its size automatically.

<div id="chart" style="height: 600px"></div>
<script src="https://www.questa.one/charts/lib/v1/questa-charts.js?key=YOUR_KEY"></script>
<script>
  const chart = new ChartWidget("#chart", { symbol: "BONK/SOL", timeframe: 60, theme: "dark" });
</script>

In React, create the chart in an effect and destroy it on cleanup:

import { useEffect, useRef } from "react";
import ChartWidget from "./lib/questa-charts.esm.js";

export function Chart({ symbol, bars }) {
  const box = useRef(null);
  const chart = useRef(null);
  useEffect(() => {
    chart.current = new ChartWidget(box.current, { symbol, theme: "dark", autosave: "chart-" + symbol });
    return () => chart.current.destroy();
  }, [symbol]);
  useEffect(() => { if (bars) chart.current.setData(bars); }, [bars]);
  return <div ref={box} style={{ height: 600 }} />;
}

Candles and live updates

setData takes candles as [time, open, high, low, close, volume] arrays or { time, open, high, low, close, volume } objects. Time can be Unix seconds, milliseconds or an ISO string. Pass an object keyed by resolution in seconds to load several resolutions; for each timeframe the chart uses the finest one available. Candles from GET /api/v1/tokens/:mintAddress/candles can be passed in after mapping them to this shape.

chart.setData(bars);                          // one resolution
chart.setData({ 60: minuteBars, 3600: hourBars }); // several resolutions

// Live: send each new or changed candle; the last bar, indicators and countdown follow.
socket.onmessage = (e) => chart.update(JSON.parse(e.data));      // finest resolution
chart.update({ t: 1790000040, o: 0.0181, h: 0.0183, l: 0.018, c: 0.0182, v: 12 }, 60);

Options

Passed as the second argument to new ChartWidget(container, options). Most can be changed later with applyOptions.

FieldTypeDescription
symbol string Shown in the toolbar, legend and watermark.
data candles Initial candles, same formats as setData.
timeframe seconds Starting timeframe. Defaults to 60.
timeframes number[] Timeframes offered in the toolbar. Defaults to 1s, 5s, 1m, 5m, 1h, 1d.
chartType "candles" | "hollow" | "heikin" | "bars" | "line" | "step" | "area" | "baseline" Defaults to candles.
theme "dark" | "light" | "midnight" | "classic" Defaults to dark.
colors object Overrides single theme colors, e.g. { up, down, background }.
indicators array Starting indicators, e.g. ["rsi", { type: "ma", params: { type: "EMA", length: 21 } }].
autosave string localStorage key for saving indicators, drawings and colors. Empty turns it off.
toolbar / drawingToolbar boolean Show the top and left toolbars. Both default to true.
locale / timezone string / "local" | "UTC" Number and date formatting. Defaults to en-US and local time.
pricePrecision number | "auto" Decimals on the price axis. Auto shows enough digits for very small prices.
priceFormatter (price) => string Your own price text for the axis, legend and labels, e.g. to show market cap as $1.2M.
pageScroll boolean On touch screens, let a vertical swipe on the chart scroll the page. Good for charts inside long pages. Defaults to false.
logScale / invertScale boolean Price scale mode.
showVolume, showCountdown, showLegend boolean Toggle parts of the chart. All default to true.

Methods

FieldTypeDescription
setData(candles, { keepView? }) void Replace all candles. keepView keeps zoom and scroll, e.g. when switching price and market cap.
update(bar, resolution?) void Add or change one candle.
setTimeframe(seconds) void Switch timeframe.
setChartType(type) void Switch chart type.
setSymbol(symbol) / setTheme(theme) / setColors(colors) void Change the label, theme or single colors.
applyOptions(options) void Change options after creation.
addIndicator(type, params?) / updateIndicator(id, params) / removeIndicator(id) string | void Manage indicators. addIndicator returns the new id.
addDrawing({ type, points, style }) / removeDrawing(id) / clearDrawings() string | void Manage drawings, e.g. { type: "trendline", points: [{ t, p }, { t, p }] }.
addEmoji(time, price, emoji, size?) string Place an emoji on the chart.
setTool(tool) void Pick a drawing tool, or "cursor".
fitContent() / resetView() / scrollToRealtime() void Move the view.
screenshot() / downloadScreenshot() string / void PNG of the chart, as a data URL or a download.
on(event, fn) / off(event, fn) function / void Listen to events. on returns a function that removes the listener.
destroy() void Remove the chart and its listeners.

Indicators

Use these ids with the indicators option and addIndicator. Every indicator has its own settings in the chart, and ChartWidget.registerIndicator adds your own.

FieldTypeDescription
On the price overlay ma, macross, ribbon, env, lsma, alma, kama, bb, keltner, donchian, vwap, rvwap, ichimoku, sar, supertrend, chandelier, pivots
Momentum pane rsi, macd, stoch, stochrsi, cci, willr, mom, roc, ao, ppo, trix, tsi, uo, cmo, fisher, wt, sqz, dpo
Trend and volatility pane adx, aroon, vortex, chop, atr, hv, bbpb, bbw
Volume pane volume, obv, mfi, cmf, ad, efi, vo

Order lines and trade marks

Order lines and trade marks are part of the Professional and Source plans. Order lines are horizontal lines for stop loss, take profit or limit orders, with a label on the left and the level on the price axis. Users drag a draggable line to move it, and a closable line shows an x to cancel it. Lines stay on screen because the price scale includes them. Trade marks are small B and S bubbles on the bars where trades happened. Neither is saved in the layout, so set them from your own order and trade data.

chart.setPriceLines([
  { id: "sl-42", price: 0.0165, label: "Stop loss", color: "#ec397a", draggable: true, closable: true },
  { id: "tp-43", price: 0.0240, label: "Take profit", color: "#2fe3ac", draggable: true },
  { id: "entry", price: 0.0181, label: "Entry", color: "#526fff", dashed: true },
]);

chart.on("pricelinechange", async ({ id, price }) => {
  const ok = await moveOrder(id, price);   // your backend
  if (!ok) chart.setPriceLines(currentLines()); // put the line back
});
chart.on("pricelineclose", ({ id }) => cancelOrder(id));

chart.setMarkers([
  { time: 1790000040, side: "buy" },
  { time: 1790003640, side: "sell", text: "S", color: "#ec397a" },
]);
FieldTypeDescription
id string Your order id. Returned in the events.
price number Level in the chart's units (price or market cap).
label string Text on the line. Update it while dragging from pricelinedrag, e.g. to show a live %.
color string Line color. Defaults to the theme's down color.
draggable / closable / dashed boolean Behavior and style. All default to false.

Events

FieldTypeDescription
pricelinedrag { id, price } While an order line is dragged.
pricelinechange { id, price } When the user drops an order line.
pricelineclose { id } When the x on a closable line is clicked.
update bar After update() changes the last candle.
data - After setData.
timeframe / charttype / theme value After the user or your code changes them.
indicators / drawings array When indicators or drawings change.
crosshair object When the crosshair moves over a bar.
state - After importState loads a layout.
error string For example when a timeframe has no data.

Saving layouts

With autosave set, indicators, drawings, colors and settings are saved to localStorage and restored on the next load. To store layouts on your own server, use exportState() and importState(state); the state is plain JSON.

const layout = chart.exportState();
await fetch("/api/layouts/bonk", { method: "PUT", body: JSON.stringify(layout) });
chart.importState(await (await fetch("/api/layouts/bonk")).json());

Health Check

Authenticated liveness check for infrastructure and monitoring. Send your API key with the request.

GET/healthAPI Key Required
{
  "ok": true,
  "indexer": { "lastIndexedSlot": 312345678, "lastIndexedAt": "2026-11-22T12:00:01.000Z", "lagSeconds": 2 }
}

indexer is null when the index can't be read.