What a swap would do now.
Quotes what a swap would do now across the asked sources, the best taken. A quote is never signed; confirming an operation quotes again.
/v1/pools/{chain}/{protocol}/{variant}/{deployment}/{poolKey}/swap-quotechainstringrequiredThe pool's chain by its slug, for example base.
solanaethereumbaserobinhoodbscarchyperevmprotocolstringrequiredThe protocol, for example uniswap.
variantstringrequiredThe protocol version or pool type, for example v3.
deploymentstringrequiredThe deployment of the variant on the chain.
poolKeystringrequiredThe pool's address, id or account within its deployment.
sellstringWhich of the pool's tokens is sold.
basequotepaystringThe token paid, by address or native; with receive, any two tokens make the swap, and one off the registry is marked unverified.
receivestringThe token received, by address or native.
counterstringWhat stands on the other side of the swap: the pool's quote token, or the chain's native or stable coin.
quotenativestableamountUnitsrequiredThe amount of the token sold, in its base units.
slippagestring | DecimalSlippage in percent, or auto for the default of the token's category.
speedstringHow fast the transaction should be included; a faster speed pays a higher priority fee.
standardfastturboSuccess.
paysTokenAmountrequiredAn amount of a token in base units, and its worth in US dollars when known.
Show propertiesHide properties
tokenTokenRefrequiredA token on its chain, with the decimals of its base units.
Show propertiesHide properties
chainstringrequiredA chain by its slug.
solanaethereumbaserobinhoodbscarchyperevmaddressstring | nullrequiredThe contract or mint on its chain; null for the native coin.
Show propertiesHide properties
stringnullsymbolstringrequiredThe ticker the token gives itself.
namestringrequiredThe name the token gives itself.
logostring | nullrequiredThe logo on INVICTUS's CDN, or null when there is none.
Show propertiesHide properties
stringnulldecimalsintegerrequiredThe decimals its base units are read at.
unitsUnitsrequiredA token amount in base units, a uint256 as integer text; divide by 10^decimals of its token to show it.
valueUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
receivesTokenAmountrequiredAn amount of a token in base units, and its worth in US dollars when known.
Show propertiesHide properties
tokenTokenRefrequiredA token on its chain, with the decimals of its base units.
Show propertiesHide properties
chainstringrequiredA chain by its slug.
solanaethereumbaserobinhoodbscarchyperevmaddressstring | nullrequiredThe contract or mint on its chain; null for the native coin.
Show propertiesHide properties
stringnullsymbolstringrequiredThe ticker the token gives itself.
namestringrequiredThe name the token gives itself.
logostring | nullrequiredThe logo on INVICTUS's CDN, or null when there is none.
Show propertiesHide properties
stringnulldecimalsintegerrequiredThe decimals its base units are read at.
unitsUnitsrequiredA token amount in base units, a uint256 as integer text; divide by 10^decimals of its token to show it.
valueUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
minimumUnitsrequiredThe least of the bought token the swap may give, in its base units.
priceDecimalrequiredWhat one base token costs in the quote side's token at this swap, impact and fee included.
priceImpactPercentPercentValuerequiredA percent (5 means 5%), measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
routesintegerrequiredsavedUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
routeobjectrequiredShow propertiesHide properties
sourcestringrequiredpooljupiterkyberswapuniswap0xlifivelorarelaymobulahopsobject[]requiredShow propertiesHide properties
objectprotocolstringrequiredvariantstringrequiredfromstringrequiredtostringrequiredsharePercentDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
comparedobject[]requiredShow propertiesHide properties
objectsourcestringrequiredpooljupiterkyberswapuniswap0xlifivelorarelaymobulareceivesUnits | nullrequiredShow propertiesHide properties
stringnullfeePercentDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
slippagePercentDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
slippageAutobooleanrequiredcategorystringrequiredpeggedhighmidlowmicrofreshunverifiedstring[]requiredThe swap's tokens that are not on the verified registry; the swap must acknowledge each.
feesobjectrequiredShow propertiesHide properties
networkUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
swapFeePercentDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
swapFeeUsdUsdValuerequiredA US-dollar figure, measured.
Show propertiesHide properties
statusstringrequiredCurrent and from a trusted read.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredOlder than its freshness bound; shown with its age.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredResting on one source, not yet confirmed.
valueDecimalrequiredAn exact decimal number as text; never a binary float (IEEE 754).
observedAtintegerrequiredWhen the value was read, in Unix seconds.
sourcestringrequiredThe source the value rests on.
statusstringrequiredTwo sources disagree; both values are given.
valuesany[]requiredThe two values that disagree, each with its source.
observedAtintegerrequiredWhen the value was read, in Unix seconds.
statusstringrequiredNo value; never shown as zero.
reasonstringrequiredWhy there is no value; it is never zero.
swapFeeSymbolstringrequiredwarningsstring[]requiredexpiresAtintegerrequiredA point in time: Unix time in whole seconds, UTC.
asOfintegerrequiredA point in time: Unix time in whole seconds, UTC.
Invalid input; errors names the fields.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Not found, or not yours.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Too many requests; retryAfterSeconds says when to ask again.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Server error.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
Not available yet: the figures it needs are not stored; the problem says why.
typestring<uri-reference>requiredA URI reference naming the problem type; about:blank when only the status says it.
titlestringrequiredA short summary of the problem type, the same for every occurrence.
statusintegerrequiredThe HTTP status code of this answer.
detailstringWhat went wrong this time, for a person to read.
instancestring<uri-reference>A URI reference of this occurrence, quoted to support.
codestringrequiredWhat a client branches on, stable across releases.
retryAfterSecondsintegerSeconds to wait before asking again, on 429 and 503; the Retry-After header agrees.
errorsobject[]The fields that were refused, on 400.
Show propertiesHide properties
objectfieldstringrequiredThe refused field, as a JSON path into the request.
codestringrequiredWhy it was refused, stable across releases.
messagestringThe reason, for a person to read.
