On this page
API reference
Liquidity and pools
Read NFTX vault inventory, estimates, quantity curves and listed V4 NFTs.
GET /v1/collections/:chainId/:collection/liquidity#
Read the book’s NFTX pool snapshot. A first read can discover pools before a usable quote is stored.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
include |
string | No | Add inventory IDs, curves or both. | Neither. | Comma-separated tokens, curves. 40 characters. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, chainId, collection, asOf |
string, integer, address and integer | Resource identity and read time. |
pools |
array | Pool ID, version, inventory count, status, message and indicative price. The nested quote records state, read time, validity and supported price details. |
errors |
array | Venue failures by version. A failed venue does not establish empty inventory. |
tokens |
object, optional | Pool IDs mapped to observed token IDs. |
checkedAt |
object, optional | V2 and V4 observation timestamps or null. |
curves |
array | Each curve identifies its pool, venue version, quote kind, block, observation time, fingerprint and cumulative totalsWei by quantity. V4 may expose an incomplete curve. |
revision |
integer | Inventory publication revision when available. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor when the route falls back to a live read.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity?include=curves'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity?include=curves");
const result = await response.json();Example response#
{
"object": "liquidity",
"chainId": 1,
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"asOf": 1796384870760,
"pools": [
{
"id": "v2-174",
"version": "v2",
"inventoryCount": 351,
"priceWei": "805630306101529",
"priceKind": "indicative",
"status": "available",
"message": "Pool spot price. Redemption fees, swap fees, price impact and gas are not included.",
"quote": {
"poolId": "v2-174",
"version": "v2",
"status": "usable",
"oneWei": "835537869790280",
"takerWei": "835537869790280",
"kind": "specific",
"priceKind": "estimate",
"quoteAsOf": 1796374409738,
"quoteBlock": 26555717,
"validUntil": 1796385050760,
"reason": null
}
},
…
],
"errors": [],
"revision": 350,
"curves": [
{
"poolId": "v2-174",
"version": "v2",
"kind": "random",
"totalsWei": [
"827394563531577",
…
],
"fingerprint": "0x9a09eec78998924c24b287f0576253ffa9e87c21:174:random:target:351:20000000000000000:30000000000000000:0xfe9d2949e2d164e1dc788776a372539afe12a7b2:0:213873742584965009:265473804752836130721",
"asOf": 1796374409738,
"block": 26555717,
"baseWei": "824215558900260",
"note": "Random redeem. You do not choose the NFT. Swap and random-redeem fees are included. Gas is extra."
},
…
]
}GET /v1/collections/:chainId/:collection/pool-curves#
Read stored cumulative quantity estimates for currently usable pools. A missing size has no published estimate.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, validUntil |
string and integer or null | Resource type and expiry in Unix milliseconds. |
curves |
array | Each curve identifies its pool, venue version, quote kind, block, observation time, fingerprint and cumulative totalsWei by quantity. V4 may expose an incomplete curve. |
revision |
integer | Inventory publication revision when available. |
note |
string | How the estimates are produced. |
Cache. Cache-Control: no-store.
Limit. None specific. Reads the stored book.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
Example request#
curl https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/pool-curvesconst response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/pool-curves");
const result = await response.json();Example response#
{
"object": "pool_curves",
"curves": [
{
"poolId": "v2-174",
"version": "v2",
"kind": "random",
"totalsWei": [
"827394563531577",
…
],
"fingerprint": "0x9a09eec78998924c24b287f0576253ffa9e87c21:174:random:target:351:20000000000000000:30000000000000000:0xfe9d2949e2d164e1dc788776a372539afe12a7b2:0:213873742584965009:265473804752836130721",
"asOf": 1796374409738,
"block": 26555717,
"baseWei": "824215558900260",
"note": "Random redeem. You do not choose the NFT. Swap and random-redeem fees are included. Gas is extra."
},
…
],
"validUntil": 1796385050383,
"revision": 350,
"note": "V2 totals are worked out from the vault's reserves and fees, and refreshed when they or the inventory change. V4 totals are NFTX's quotes for each quantity, ending where no route can fill a larger one; they are re-quoted when NFTX's pool record or its one-NFT quote changes, checked every five minutes, and every ten minutes or so in any case, and no response is built with one more than fifteen minutes after its curve was begun. Estimates only: fees and price impact included, gas excluded."
}GET /v1/collections/:chainId/:collection/liquidity/:poolId/impact#
Estimate the cost of a quantity and the next marginal price, with the site’s current listing comparison. The estimate excludes gas and does not simulate selected NFT redemptions.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
poolId |
string | Yes | Pool ID from liquidity. | — | 1–100 lowercase letters, digits or hyphens. |
quantity |
integer | No | Basket size. | 0 | 0–100. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, chainId, collection, poolId |
string, integer, address and string | Identity. |
blockNumber, asOf, validUntil |
decimal string and integers or null | Block and estimate times in Unix milliseconds. |
quantity, availableCount |
integers | Selected size and observed availability. |
priceKind, basis, feeCoverage, note |
strings | Estimate type, basis and fee treatment. |
currentUnitPriceWei, basketPriceWei, nextUnitPriceWei, addedFeeWei |
strings or null | One-NFT price, cumulative basket total, next marginal price and added fee. |
impactBps |
integer or null | Relative next-unit impact. |
nftRedemptionSimulated |
boolean | Whether selected redemption was simulated. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 409 | unprocessable |
The comparison changed while the estimate was read. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity/v2-174/impact?quantity=1'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity/v2-174/impact?quantity=1");
const result = await response.json();Example response#
{
"object": "pool_impact",
"chainId": 1,
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"blockNumber": "26556588",
"poolId": "v2-174",
"quantity": 1,
"availableCount": 351,
"priceKind": "estimate",
"asOf": 1796384898116,
"currentUnitPriceWei": "835537869790280",
"basketPriceWei": "835537869790280",
"nextUnitPriceWei": "842072105964359",
"impactBps": 78,
"feeCoverage": "targeted-redemption-and-swap",
"basis": "v2-targeted-redemption",
"nftRedemptionSimulated": false,
"note": "Includes the targeted redemption and swap. Gas is extra. Marketplace fee is zero.",
"addedFeeWei": "0",
"validUntil": 1796384958116
}GET /v1/collections/:chainId/:collection/liquidity/:poolId/tokens#
Page the NFTX pool’s token IDs from the stored snapshot or a venue read. Use the returned cursor verbatim.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
poolId |
string | Yes | Pool ID from liquidity. | — | 1–100 lowercase letters, digits or hyphens. |
limit |
integer | No | Maximum rows to return. | 100 | 1–100. |
cursor |
string | No | Continuation returned by the previous page. | First page. | At most 2048 characters. |
live |
string | No | Use 1 for the first live V4 inventory page. |
Stored if available. | V4 only. Omit cursor. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
object, poolId, asOf |
strings and integer | List type, pool and observation time. |
data |
array | Objects with a tokenId string. |
hasMore, nextCursor |
boolean and string or null | Whether the list continues. |
priorObservation |
boolean, optional | An older inventory observation is being served. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor when the route falls back to a live read.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
| 400 | invalid_request |
Stored cursor no longer matches an available inventory page. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity/v2-174/tokens?limit=2'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/liquidity/v2-174/tokens?limit=2");
const result = await response.json();Example response#
{
"object": "list",
"poolId": "v2-174",
"data": [
{
"tokenId": "4"
},
{
"tokenId": "48"
}
],
"hasMore": true,
"nextCursor": "s:2",
"asOf": 1796384870760
}GET /v1/collections/:chainId/:collection/nftx-v4-listings#
Read NFTX V4’s separate listing and premium feed. A listing can have no verified ETH price.
Path and query parameters#
| Name | Type | Required | Meaning | Default | Limits |
|---|---|---|---|---|---|
chainId |
integer | Yes | NFT chain ID. | — | 1 for this API. |
collection |
address | Yes | Selected Ethereum ERC-721 contract. | — | 20 bytes, 0x prefix. |
limit |
integer | No | Maximum rows to return. | 100 | 1–100. |
cursor |
string | No | Continuation returned by the previous page. | First page. | At most 2048 characters. |
Response fields#
| Field | Type | Meaning |
|---|---|---|
chainId, collection, asOf |
integer, address and integer | Identity and read time. |
data |
array | Row fields include ID, token, venue link, format, floor multiples, optional verified price and creation, expiration and decay times. |
nextCursor |
string or null | Continuation. |
Cache. Cache-Control: no-store.
Limit. Chain reads, 60 per minute per visitor.
Errors#
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request |
A path, query or body field failed validation. |
| 404 | not_found |
The collection, feed or venue is unavailable on this site. |
| 429 | rate_limited |
The visitor limit was reached. Retry after 60 seconds. |
| 502 | upstream_error |
A venue, chain read or simulation service could not return a usable result. |
Example request#
curl 'https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/nftx-v4-listings?limit=2'const response = await fetch("https://marketplace.example/v1/collections/1/0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c/nftx-v4-listings?limit=2");
const result = await response.json();Example response#
{
"chainId": 1,
"collection": "0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c",
"data": [
{
"id": "nftx:v4:listing:1:0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c:4454",
"tokenId": "4454",
"href": "https://nftx.io/ethereum/collections/space-poggers/4454",
"format": "LIQUID",
"floorMultiple": 120,
"liveFloorMultiple": 120,
"price": null,
"createdAt": 1795795415,
"expiresAt": 1796400215,
"decayStartsAt": 1796400215,
"decayEndsAt": 1796745815
},
{
"id": "nftx:v4:listing:1:0x4a8b01e437c65fa8612e8b699266c0e0a98ff65c:10916",
"tokenId": "10916",
"href": "https://nftx.io/ethereum/collections/space-poggers/10916",
"format": "LIQUID",
"floorMultiple": 120,
"liveFloorMultiple": 120,
"price": null,
"createdAt": 1795794911,
"expiresAt": 1796399711,
"decayStartsAt": 1796399711,
"decayEndsAt": 1796745311
}
],
"nextCursor": null,
"asOf": 1796384894063
}