TrenchyToolsAPI

Quote

See what a trade would give you before you make it.

Also on Robinhood chain
GEThttps://api.trenchytools.lol/api/sol/quote
FieldTypeDescription
mintstringThe coin's address.
actionstringbuy or sell.
amountnumberSOL for a buy, tokens for a sell (by default).
denominatedInSolbooleanOverride the unit.
poolstringauto (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
}