# API Reference
Source: https://dev.jup.ag/api-reference/index
Overview of Jupiter API Reference
; /// Indicates which Swap has to be performed along with all the necessary account metas fn get_swap_and_account_metas(&self, swap_params: &SwapParams) -> Result; /// Indicates if get_accounts_to_update might return a non constant vec fn has_dynamic_accounts(&self) -> bool { false } /// Indicates whether `update` needs to be called before `get_reserve_mints` fn requires_update_for_reserve_mints(&self) -> bool { false } // Indicates that whether ExactOut mode is supported fn supports_exact_out(&self) -> bool { false } fn get_user_setup(&self) -> Option { None } fn clone_amm(&self) -> Box ; /// It can only trade in one direction from its first mint to second mint, assuming it is a two mint AMM fn unidirectional(&self) -> bool { false } /// For testing purposes, provide a mapping of dependency programs to function fn program_dependencies(&self) -> Vec<(Pubkey, String)> { vec![] } fn get_accounts_len(&self) -> usize { 32 // Default to a near whole legacy transaction to penalize no implementation } /// The identifier of the underlying liquidity /// /// Example: /// For RaydiumAmm uses Openbook market A this will return Some(A) /// For Openbook market A, it will also return Some(A) fn underlying_liquidities(&self) -> Option > { None } /// Provides a shortcut to establish if the AMM can be used for trading /// If the market is active at all fn is_active(&self) -> bool { true } } ```
200 OK
) or indicate that it cannot provide one (404 Not Found
).
For example, suppose a webhook provides quotes for USDC/SOL only within a range of 100 to 1000 USDC. If it receives a quote request for 10 USDC → SOL, it will respond with 404 Not Found
, since the amount is outside its quoting range.
In another case, a webhook may only support one-way quotes (USDC → SOL) but not SOL → USDC. If it receives a request for SOL → USDC, it will also return 404 Not Found
.
`.
```json Program Related Codes theme={null}
{
"status": "Failed",
"signature": "transaction-signature",
"slot": "368661931",
"code": 6001,
"error": "Slippage tolerance exceeded",
"totalInputAmount": "1000000",
"totalOutputAmount": "4647512",
"inputAmountResult": "1000000",
"outputAmountResult": "4648441",
"swapEvents": [
{
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inputAmount": "50000",
"outputMint": "So11111111111111111111111111111111111111112",
"outputAmount": "232423"
},
{
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inputAmount": "950000",
"outputMint": "So11111111111111111111111111111111111111112",
"outputAmount": "4416018"
}
]
}
```
Connect your Solana wallet to get started
Powered by Jupiter Wallet Kit
Connect your Solana wallet to get started
Powered by Jupiter Wallet Kit