Base Trading
Swap quotes and execution on Base.
Fetches a quote for buying or selling tokens on Base chain. Amount is human-readable. Collateral can be "usdc" (default) or "eth". Plans Included = Builder, Architect, Enterprise Cost per request = 5 credits.
Token address (EVM format).
0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1bHuman-readable amount.
1Raw unit amount (overrides amount).
Trade type.
buyPossible values: Collateral token used as the payment/receive token.
ethExample: ethPossible values: Quote retrieved successfully
Invalid request parameters
Internal Server Error
GET /api/trading/base/v2/quote?address=text&type=buy HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Accept: */*
{}Executes a token swap on Base chain. Amount is human-readable. Collateral determines which token is used as payment (buy) or received (sell). Slippage is in basis points (50 = 0.5%). Requires both X-API-KEY and Authorization Bearer token. Plans Included = Builder, Architect, Enterprise Cost per request = 1 credit.
Bearer token for user authentication.
Token address (EVM format).
0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1bTrade direction.
buyPossible values: Human-readable amount. Provide either amount or amount_raw, not both.
1Raw amount in smallest unit. Overrides amount.
Slippage in basis points (50 = 0.5%). Default 50.
50Example: 50Collateral token. Default eth.
ethExample: ethPossible values: EVM trading wallet address to use for the swap.
0x1234567890abcdef1234567890abcdef12345678Swap executed successfully
okInvalid swap request
Unauthorized
Internal Server Error
POST /api/trading/base/v2/swap HTTP/1.1
Host: api.cielo.finance
X-API-KEY: YOUR_API_KEY
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 192
{
"mint": "0x0b3e328455c4059EEb9e3f84b5543F74E24e7E1b",
"type": "buy",
"amount": 1,
"amount_raw": "text",
"slippage": 50,
"collateral": "eth",
"trading_wallet": "0x1234567890abcdef1234567890abcdef12345678"
}{
"status": "ok",
"data": {
"inputAmount": "text",
"outputAmount": "text",
"txHash": "text"
}
}Last updated

