API Endpoint: /quote/all

Request Method: GET

Description: This API returns the quote for the given input details.

Request URL:

https://api.spiderswap.io/spider-api/v1/quote/all

Request Headers:

accept: application/json
X-API-KEY: YOUR_API_KEY

Example Request:

curl --request GET \
     --url 'https://api.spiderswap.io/spider-api/v1/quote/all?fromMint=So11111111111111111111111111111111111111112&toMint=AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY&amount=1000000&slippage=100' \
     --header 'X-API-KEY: YOUR_API_KEY' \
     --header 'accept: text/plain'

Response: An object with properties of inputMint, inAmount, outputMint, outAmount, minimumReceived, slippage and priceImpactPercent for all providers.

Example Response:

{
    "success": true,
    "data": {
        "meteora": {
            "inputMint": "So11111111111111111111111111111111111111112",
            "inAmount": "10000",
            "outputMint": "AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY",
            "outAmount": "92423917",
            "minimumReceived": "90575439",
            "slippage": 200,
            "priceImpactPercent": "0.0135723484306514772574751266",
            "ammKey": "2EwDgGitpoqDaAkscPXN74hE1C1o6fsiHP9FKo7TDq9r"
        },
        "orca": {
            "inputMint": "So11111111111111111111111111111111111111112",
            "inAmount": "10000",
            "outputMint": "AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY",
            "outAmount": "92411312",
            "minimumReceived": "90563086",
            "slippage": 200,
            "priceImpactPercent": "0.0137068798479688328736536669",
            "ammKey": "2PtMUYFXNfs8uKPCL1cMUXWt6qWDp5ysUtXkv2MXABJ1"
        },
        "raydium": {
            "inputMint": "So11111111111111111111111111111111111111112",
            "inAmount": "10000",
            "outputMint": "AT79ReYU9XtHUTF5vM6Q4oa9K8w7918Fp5SU7G1MDMQY",
            "outAmount": "93288794",
            "minimumReceived": "91423019",
            "slippage": 200,
            "priceImpactPercent": "0.004341636124805973627673447",
            "ammKey": "EPjmSZkD9kqqWvL4ghS4LzvQzGk71o5iK5advaK2Aegt"
        },
        "meteora-dlmm": {
            "error": "Could not find any route",
            "error_code": "COULD_NOT_FIND_ANY_ROUTE"
        },
        "raydium-clmm": {
            "error": "Could not find any route",
            "error_code": "COULD_NOT_FIND_ANY_ROUTE"
        }
    }
}