Skip to content

Commit c12ca4e

Browse files
chore: fix int/number formats to swap api (#685)
* 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
1 parent 11bb5c3 commit c12ca4e

File tree

5 files changed

+42
-21
lines changed

5 files changed

+42
-21
lines changed

docs/api/swap-api/program-id-to-label.api.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Returns a hash, which key is the program id and value is the label
55
sidebar_label: "program-id-to-label"
66
hide_title: true
77
hide_table_of_contents: true
8-
api: eJzlVE1v2zAM/SuEThsQx+mOvXXoVgzboV27U1qgjMVEShVJlei0gZv/PspO+j1s9wUGIkuPj9TjozvFuMjqcKrO7zCqq5HSlJtkI9vg1aH6SdwmnwHBYDYjuDO2MXBDG7AZ2BDEFBYJV2A1oNewRtfS/szhjNz40l8Y2ZCnzaSBAxhyEVYYgVIKCeYprIAT+oxNSQszYdfk2c431i96qjm2jp8l27M2KHAamK2HJvhl6weWO8umj72m+8a1mo7pnvI1SMZrPSwjChsxJaFTI5Uox+AziR6d+jSZlL+XchzTUMgeKUGSkqXWgsUYnW2wYOtlLgGdyo2hFZYVbyIJRZgtqWEJRK1tgaI7TSFSYjsk3uEyJ7m82va/kZIyTdCyv6ASHJGNvNQ7RSqrKw5VL7icZkprSqWtnWqTE6Bhjvmwrp1lqjDa8bKNY1zUWbperw/U675/TUQgFSU4Ov0G5HUM1vOgaUKW3tqV5ay2o9cZ/oH8FMUtfyA3dmHk4FmO4ph9i3uItLzEfaeN2ophrZ+HXjfLrgh31trmJjOmolORYUh6MJ6MJ29KeYAf1t/Aw6V/gKqqhsX0hBjO2sB09aHWocn9TYpstahf3ZaTjzvo59Y6DWV44OLJwm/iZgVW9a/PnL4nORcN/s6RBfU+hbRBxZB5hb3nvJha7va+N17cv3uy7/816rshY7rnOjq0vYS9kbvdbE3f1U/8ZkToctx1M8z0K7nttmzftpQ2si/LNSaLs2LG6ZXQGkJNqR9GUVOyHjUNxd6dRULZePPhKL5+nPiTLxfyGfgNqDH+TA==
8+
api: eJzlVE1v2zAM/SuEThsQx+mOvXXoVgzbIV27U1qgjMVEShxJlei0gZv/PspO+pUM232GAcsS+Ug+PqpVjPOkTifq6gGDuh0oTamKNrD1Tp2qn8RNdAkQDCYzgAdjKwNL2oBNwIYgRD+PuAKrAZ2GNdYN7c9qnFI9vHHXRjbkbRJpYA+G6gArDEAx+giz6FfAEV3CKoeFqaBrcmxnG+vmHdQMm5pfBdujVijm1CNbB5V3i8b1KA+WTed7R49V3Wg6p0dKdyAR73S/DChoxBQFTg1UpBS8SyR8tOrTaJQ/b+k4pz6RvaU4SUiWXLMthlDbCrNtuUjZoVWpMrTCvOJNIIHw0wVVLI6otc2mWI+jDxTZ9oF3domjFK+23TNQkqbxWvbnlJ0DspGfcsdIYXXBvugIl9NEcU0xt7VVTazF0DCHdFqWtWUqMNjhoglDnJdJul6uT9T7vn+NRCAZRTgbfwNyOnjruOc0Iktv7cpyUtvB+wj/AD5GUcsfwI2dGzl4FSMrZt/izkRanv2+0+ZI+BBJONHFfePfVnqQxV6VCElmIAvtOZOZaIQp5fpkIqyb+a4xluvcmcvGVkvxibkRmece72Q4Go4OojzBD+uW8HTjnqAoin4xuSCGy5zh7YdS+yp1VOVsS2lvn/vHnennxtYa8nTC9cuMHPhNs1nR/b4apT3IlZT2d4wkVschhGgVfOIVdqJ2MjVS23Hxvam/fZmP/+su2U0x0yOXoUbbUdhJtd0N7+Qof6I3I0Tn47adYqJfsd5u8/Z9Q3Ej+7JcY7Q4zWKc3AqsIdQUu2kXNiXqWVVR6NSZKZSNg5sp6/r5Srn4ci33zG8qkiCu
99
sidebar_class_name: "get api-method"
1010
info_path: docs/api/swap-api/quickstart
1111
custom_edit_url: null

docs/api/swap-api/quote.api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Request for a quote to be used in `POST /swap`"
55
sidebar_label: "quote"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3pbKVubyCykv6MVIEhONwAXOpHA7tOzUFYTj0I4ompXnysSaqMw7+B9fn6Kr/xvYG4bt
99
sidebar_class_name: "get api-method"
1010
info_path: docs/api/swap-api/quickstart
1111
custom_edit_url: null
@@ -52,7 +52,7 @@ Refer to [Swap API doc](/docs/swap-api/get-quote) for more information
5252
</Heading>
5353

5454
<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}}]}
5656
>
5757

5858
</ParamsDetails>
@@ -67,7 +67,7 @@ Refer to [Swap API doc](/docs/swap-api/get-quote) for more information
6767
<StatusCodes
6868
id={undefined}
6969
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"}}}}}}
7171
>
7272

7373
</StatusCodes>

0 commit comments

Comments
 (0)