Quote
See what a trade would give you before you make it.
GEThttps://api.trenchytools.lol/api/sol/quote
| Field | Type | Description |
|---|---|---|
| mint | string | The coin's address. |
| action | string | buy or sell. |
| amount | number | SOL for a buy, tokens for a sell (by default). |
| denominatedInSol | boolean | Override the unit. |
| pool | string | auto (default), pump or pump-amm. |
cURL
curl "https://api.trenchytools.lol/api/sol/quote?mint=MINT_ADDRESS&action=buy&amount=0.1&api-key=YOUR_API_KEY"
Response
{
"pool": "pump",
"action": "buy",
"solIn": 0.1,
"tokensOut": 2915779.4,
"avgPriceSol": 3.4e-8,
"spotPriceSol": 3.36e-8,
"priceImpactPct": 1.27,
"marketCapSol": 33.6,
"bondingProgressPct": 4.7,
"complete": false
}