Get Quote

Get quote information

GET /quote

Method is used to get a quote for buying or selling a specified amount of a token

Headers

Name
Value

Content-Type

application/json

x-api-key

The API key for authentication

Parameters

Parameter
Description
Required

token

The token for which the quote is requested

Yes

amount

The amount of the token to be traded

Yes

mode

The trade mode (e.g., “buy”, “sell”)

Yes

Body

Response

{
    "bondingCurve": "25uW6hChv3HV5y1tWKWAdFSn52W7MXbjVzfydpE95MCW",
    "mode": "buy",
    "tokenIn": "GBUua9eDwR3iBSv9EkDHPLRxEqrhkw5xHLcz5vVkpump",
    "amountIn": 1,
    "amountInRaw": "1000000000",
    "tokenOut": "So11111111111111111111111111111111111111112",
    "amountOut": 4458617.224765,
    "amountOutRaw": "4458617224765"
}

Examples

curl --location 'https://rpc.api-pump.fun/quote?token=your_token&amount=your_amount&mode=your_mode' \
--header 'Content-Type: application/json' \
--header 'x-api-key: your_api_key'

Last updated