supanovasupanovaDOCS
Open Launchpad
Launchpad documentation
market data

Recent trades of a pair, newest first.

GET /api/v1/market/pairs/{pairId}/trades. Recent trades of a pair, newest first.

Anonymous calls are accepted under a per-IP budget; an X-API-Key raises the limit. When the deployment sets MARKET_DATA_REQUIRE_API_KEY=true the key becomes mandatory and anonymous calls answer 401 MARKET_DATA_API_KEY_REQUIRED.

Request

GET /api/v1/market/pairs/{pairId}/trades

The schema permits anonymous access. Supported credentials: a customer API key with read scope in X-API-Key. Deployment policy can require a key for market-data routes.

Parameters

NameInTypeRequiredConstraintsDescription
pairIdpathstringYesmax length: 160; pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}:(?:curve|amm)$—
cursorquerystringNomin length: 1; max length: 512—
limitqueryintegerNominimum: 1; maximum: 200; default: 50—
sidequerystringNoallowed: "buy", "sell"—
X-Request-IdheaderstringNomin length: 8; max length: 128; pattern: ^[A-Za-z0-9._:-]+$Optional client correlation identifier. The server always generates a separate authoritative request ID and retains a valid supplied value only as secondary audit correlation metadata.

cURL

Set PAIR_ID to the path and required query values before running this example. URL-encode path values as needed.

bash
curl --fail-with-body --silent --show-error \
  --request GET \
  --url "https://launch-api.supanova.app/api/v1/market/pairs/${PAIR_ID}/trades" \
  --header "X-API-Key: $SUPANOVA_API_KEY"

Responses

200

Trade page.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Type: object.

FieldTypeRequiredConstraintsDescription
itemsarray of object · Schema 1Yes——
metaobject · Schema 2Yes——
pageobject · Schema 3Yes——

Additional fields are not allowed.

400

Invalid side, limit or cursor. Also: VALIDATION_FAILED, AMBIGUOUS_CREDENTIALS.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

401

Unknown API key, or a key is required. Also: API_KEY_INVALID, API_KEY_REVOKED, MARKET_DATA_API_KEY_REQUIRED.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

403

The credential may not call this route. Codes: API_KEY_IP_NOT_ALLOWED, PRODUCT_ACCOUNT_RESTRICTED.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

404

Unknown pair.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

429

The caller exceeded an IP or principal request budget.

HeaderTypeDescription
Retry-AfterintegerWhole seconds to wait before retrying a rate-limited request.
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

503

The PQS market projection is not configured.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

default

Machine-readable API error. The HTTP status identifies the error class.

HeaderTypeDescription
X-Request-IdstringServer-generated request correlation identifier to retain for support and reconciliation.

Content type: application/json

Standard envelope: error.code, error.message, optional error.details, and requestId. See error handling and the full code registry.

Nested schemas

Field links above lead to the complete nested object, array, and variant definitions below. Required fields are scoped to their containing object.

Schema 1

Response 200.items

Type: array of object.

Array items: object · Schema 4.

Schema 2

Response 200.meta

Type: object.

FieldTypeRequiredConstraintsDescription
as_ofstringYes——
cc_usdone or more variants · Schema 5Yes——
ledger_offsetstringYes——
network_idstringYes——
source"pqs"Yes——

Additional fields are not allowed.

Schema 3

Response 200.page

Type: object.

FieldTypeRequiredConstraintsDescription
has_morebooleanYes——
limitintegerYesminimum: -9007199254740991; maximum: 9007199254740991—
next_cursorstring or nullYes——

Additional fields are not allowed.

Schema 4

Response 200.items item

Type: object.

FieldTypeRequiredConstraintsDescription
blockstringYes——
fee_ccstringYespattern: ^-?\d+(?:\.\d+)?$—
idstringYes——
makerstringYes——
node_idintegerYesminimum: -9007199254740991; maximum: 9007199254740991—
pair_idstringYes——
pricestringYespattern: ^-?\d+(?:\.\d+)?$—
price_usdone or more variants · Schema 6Yes——
base_amountstringYespattern: ^-?\d+(?:\.\d+)?$—
quote_amountstringYespattern: ^-?\d+(?:\.\d+)?$—
sidestringYesallowed: "buy", "sell"—
timestringYes——
tsintegerYesminimum: -9007199254740991; maximum: 9007199254740991—
txn_idstringYes——
venuestringYesallowed: "amm", "curve"—

Additional fields are not allowed.

Schema 5

Response 200.meta.cc_usd

Type: one or more variants.

At least one of these variants must match:

  • Variant 1: object · Schema 7.
  • Variant 2: null.

Schema 6

Response 200.items item.price_usd

Type: one or more variants.

At least one of these variants must match:

  • Variant 1: string. pattern: ^-?\d+(?:\.\d+)?$
  • Variant 2: null.

Schema 7

Response 200.meta.cc_usd variant 1

Type: object.

FieldTypeRequiredConstraintsDescription
as_ofstringYes——
ratestringYespattern: ^-?\d+(?:\.\d+)?$—
sourcestringYes——
stalebooleanYes——

Additional fields are not allowed.

Source contract

This page is generated from the checked-in customer OpenAPI snapshot. Download JSON, download YAML, or compare the live API reference. Snapshot provenance records the retrieval date and checksum.

Generated from the public API contractDeveloper settings