You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: fix int/number formats to swap api
* chore: remove bps field
* chore: add preprod server url to swap api
* chore: add preprod server url to swap api
@@ -52,7 +52,7 @@ Refer to [Swap API doc](/docs/swap-api/get-quote) for more information
52
52
</Heading>
53
53
54
54
<ParamsDetails
55
-
parameters={[{"name":"inputMint","in":"query","required":true,"schema":{"type":"string"}},{"name":"outputMint","in":"query","required":true,"schema":{"type":"string"}},{"name":"amount","description":"- Raw amount to swap (before decimals)\n- Input Amount if `SwapMode=ExactIn`\n- Output Amount if `SwapMode=ExactOut`\n","in":"query","required":true,"schema":{"type":"integer"}},{"name":"slippageBps","in":"query","schema":{"type":"integer"}},{"name":"swapMode","description":"- ExactOut is for supporting use cases where you need an exact output amount, like using [Swap API as a payment service](/docs/swap-api/payments-through-swap)\n- In the case of `ExactIn`, the slippage is on the output token\n- In the case of `ExactOut`, the slippage is on the input token\n- Not all AMMs support `ExactOut`: Currently only Orca Whirlpool, Raydium CLMM, Raydium CPMM\n","in":"query","schema":{"type":"string","enum":["ExactIn","ExactOut"],"default":"ExactIn"}},{"name":"dexes","description":"- Multiple DEXes can be pass in by comma separating them\n- For example: `dexes=Raydium,Orca+V2,Meteora+DLMM`\n- If a DEX is indicated, the route will **only use** that DEX\n- [Full list of DEXes here](https://lite-api.jup.ag/swap/v1/program-id-to-label)\n","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"excludeDexes","description":"- Multiple DEXes can be pass in by comma separating them\n- For example: `excludeDexes=Raydium,Orca+V2,Meteora+DLMM`\n- If a DEX is indicated, the route will **not use** that DEX\n- [Full list of DEXes here](https://lite-api.jup.ag/swap/v1/program-id-to-label)\n","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"restrictIntermediateTokens","description":"- Restrict intermediate tokens within a route to a set of more stable tokens\n- This will help to reduce exposure to potential high slippage routes\n","in":"query","schema":{"type":"boolean","default":true}},{"name":"onlyDirectRoutes","description":"- Direct Routes limits Jupiter routing to single hop routes only\n- This may result in worse routes\n","in":"query","schema":{"type":"boolean","default":false}},{"name":"asLegacyTransaction","description":"- Instead of using versioned transaction, this will use the legacy transaction\n","in":"query","schema":{"type":"boolean","default":false}},{"name":"platformFeeBps","description":"- Take fees in basis points\n- Used together with `feeAccount` in /swap, see [Adding Fees](/docs/swap-api/add-fees-to-swap) guide\n","in":"query","schema":{"type":"integer"}},{"name":"maxAccounts","description":"- Rough estimate of the max accounts to be used for the quote\n- Useful if composing your own transaction or to be more precise in resource accounting for better routes\n","in":"query","schema":{"type":"integer","default":64}},{"name":"dynamicSlippage","description":"- If true, `slippageBps` will be overriden by Dynamic Slippage's estimated value\n- The value is returned in `/swap` endpoint\n","in":"query","schema":{"type":"boolean","default":false}}]}
55
+
parameters={[{"name":"inputMint","in":"query","required":true,"schema":{"type":"string"}},{"name":"outputMint","in":"query","required":true,"schema":{"type":"string"}},{"name":"amount","description":"- Raw amount to swap (before decimals)\n- Input Amount if `SwapMode=ExactIn`\n- Output Amount if `SwapMode=ExactOut`\n","in":"query","required":true,"schema":{"type":"integer","format":"uint64"}},{"name":"slippageBps","in":"query","schema":{"type":"integer","format":"uint16"}},{"name":"swapMode","description":"- ExactOut is for supporting use cases where you need an exact output amount, like using [Swap API as a payment service](/docs/swap-api/payments-through-swap)\n- In the case of `ExactIn`, the slippage is on the output token\n- In the case of `ExactOut`, the slippage is on the input token\n- Not all AMMs support `ExactOut`: Currently only Orca Whirlpool, Raydium CLMM, Raydium CPMM\n","in":"query","schema":{"type":"string","enum":["ExactIn","ExactOut"],"default":"ExactIn"}},{"name":"dexes","description":"- Multiple DEXes can be pass in by comma separating them\n- For example: `dexes=Raydium,Orca+V2,Meteora+DLMM`\n- If a DEX is indicated, the route will **only use** that DEX\n- [Full list of DEXes here](https://lite-api.jup.ag/swap/v1/program-id-to-label)\n","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"excludeDexes","description":"- Multiple DEXes can be pass in by comma separating them\n- For example: `excludeDexes=Raydium,Orca+V2,Meteora+DLMM`\n- If a DEX is indicated, the route will **not use** that DEX\n- [Full list of DEXes here](https://lite-api.jup.ag/swap/v1/program-id-to-label)\n","in":"query","schema":{"type":"array","items":{"type":"string"}}},{"name":"restrictIntermediateTokens","description":"- Restrict intermediate tokens within a route to a set of more stable tokens\n- This will help to reduce exposure to potential high slippage routes\n","in":"query","schema":{"type":"boolean","default":true}},{"name":"onlyDirectRoutes","description":"- Direct Routes limits Jupiter routing to single hop routes only\n- This may result in worse routes\n","in":"query","schema":{"type":"boolean","default":false}},{"name":"asLegacyTransaction","description":"- Instead of using versioned transaction, this will use the legacy transaction\n","in":"query","schema":{"type":"boolean","default":false}},{"name":"platformFeeBps","description":"- Take fees in basis points\n- Used together with `feeAccount` in /swap, see [Adding Fees](/docs/swap-api/add-fees-to-swap) guide\n","in":"query","schema":{"type":"integer","format":"uint16"}},{"name":"maxAccounts","description":"- Rough estimate of the max accounts to be used for the quote\n- Useful if composing your own transaction or to be more precise in resource accounting for better routes\n","in":"query","schema":{"type":"integer","format":"uint64","default":64}},{"name":"dynamicSlippage","description":"- If true, `slippageBps` will be overriden by Dynamic Slippage's estimated value\n- The value is returned in `/swap` endpoint\n","in":"query","schema":{"type":"boolean","default":false}}]}
56
56
>
57
57
58
58
</ParamsDetails>
@@ -67,7 +67,7 @@ Refer to [Swap API doc](/docs/swap-api/get-quote) for more information
67
67
<StatusCodes
68
68
id={undefined}
69
69
label={undefined}
70
-
responses={{"200":{"description":"Successful response to be used in `/swap`","content":{"application/json":{"schema":{"type":"object","required":["inputMint","outputMint","inAmount","outAmount","otherAmountThreshold","swapMode","slippageBps","priceImpactPct","routePlan"],"properties":{"inputMint":{"type":"string"},"inAmount":{"type":"string"},"outputMint":{"type":"string"},"outAmount":{"type":"string","description":"- Calculated output amount from routing engine\n- The value includes platform fees and DEX fees, excluding slippage\n"},"otherAmountThreshold":{"type":"string","description":"- Calculated minimum output amount after accounting for `slippageBps` on the `outAmount` value\n- Not used by `/swap` endpoint to build transaction\n"},"swapMode":{"required":true,"type":"string","enum":["ExactIn","ExactOut"],"title":"SwapMode"},"slippageBps":{"type":"integer","format":"int32"},"platformFee":{"type":"object","properties":{"amount":{"type":"string"},"feeBps":{"type":"integer","format":"int32"}},"title":"PlatformFee"},"priceImpactPct":{"type":"string"},"routePlan":{"type":"array","items":{"type":"object","properties":{"swapInfo":{"type":"object","required":["ammKey","inputMint","outputMint","inAmount","outAmount","feeAmount","feeMint"],"properties":{"ammKey":{"type":"string"},"label":{"type":"string"},"inputMint":{"type":"string"},"outputMint":{"type":"string"},"inAmount":{"type":"string"},"outAmount":{"type":"string"},"feeAmount":{"type":"string"},"feeMint":{"type":"string"}},"title":"SwapInfo"},"percent":{"type":"integer","format":"int32"}},"required":["swapInfo","percent"],"title":"RoutePlanStep"}},"contextSlot":{"type":"number"},"timeTaken":{"type":"number"}},"title":"QuoteResponse"}}}}}}
70
+
responses={{"200":{"description":"Successful response to be used in `/swap`","content":{"application/json":{"schema":{"type":"object","required":["inputMint","outputMint","inAmount","outAmount","otherAmountThreshold","swapMode","slippageBps","priceImpactPct","routePlan"],"properties":{"inputMint":{"type":"string"},"inAmount":{"type":"integer","format":"uint64"},"outputMint":{"type":"string"},"outAmount":{"type":"integer","format":"uint64","description":"- Calculated output amount from routing engine\n- The value includes platform fees and DEX fees, excluding slippage\n"},"otherAmountThreshold":{"type":"integer","format":"uint64","description":"- Calculated minimum output amount after accounting for `slippageBps` on the `outAmount` value\n- Not used by `/swap` endpoint to build transaction\n"},"swapMode":{"required":true,"type":"string","enum":["ExactIn","ExactOut"],"title":"SwapMode"},"slippageBps":{"type":"integer","format":"uint16","minimum":0},"platformFee":{"type":"object","properties":{"amount":{"type":"integer","format":"uint64"},"feeBps":{"type":"integer","format":"uint16"}},"title":"PlatformFee"},"priceImpactPct":{"type":"number"},"routePlan":{"type":"array","items":{"type":"object","properties":{"swapInfo":{"type":"object","required":["ammKey","inputMint","outputMint","inAmount","outAmount","feeAmount","feeMint"],"properties":{"ammKey":{"type":"string"},"label":{"type":"string"},"inputMint":{"type":"string"},"outputMint":{"type":"string"},"inAmount":{"type":"integer","format":"uint64"},"outAmount":{"type":"integer","format":"uint64"},"feeAmount":{"type":"integer","format":"uint64"},"feeMint":{"type":"string"}},"title":"SwapInfo"},"percent":{"type":"integer","format":"uint8"}},"required":["swapInfo","percent"],"title":"RoutePlanStep"}},"contextSlot":{"type":"integer","format":"uint64"},"timeTaken":{"type":"number"}},"title":"QuoteResponse"}}}}}}
0 commit comments