For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Solana Trading

Swap quotes on Solana.

Get Solana Swap Quote (v2)

get

Fetches a quote for buying or selling tokens on Solana. For buy: swaps the chosen collateral (SOL or USDC) for the specified token. For sell: swaps the specified token for the chosen collateral (SOL or USDC). Plans Included = Builder, Architect, Enterprise Cost per request = 5 credits.

Authorizations
X-API-KEYstringRequired
Query parameters
typestring · enumRequired

Trade type.

Example: buyPossible values:
mintstringRequired

Token mint address to buy or sell.

Example: EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
collateralstring · enumOptional

Trading collateral asset. "sol" (default) trades against WSOL; "usdc" trades against the canonical Solana USDC mint (EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v). Determines the decimals used for the amount field.

Default: solExample: solPossible values:
amountnumberOptional

Human-readable amount in the chosen collateral on buy (1.5 SOL or 1.5 USDC), or in token units on sell. Converted server-side to collateral base units (lamports for SOL, micro-USDC for USDC).

Example: 1.5
amount_rawstringOptional

Raw amount in collateral base units (lamports for SOL, micro-USDC for USDC, or token's smallest unit on sell). Overrides amount if provided.

Example: 1500000000
Responses
200

Quote retrieved successfully

application/json
objectOptional
get/api/trading/solana/v2/quote
GET /api/trading/solana/v2/quote?type=buy&mint=text HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}

Last updated