curl --request GET \
--url https://api.example.com/api/conversion/quote/%TOKEN1/%TOKEN2{
"edge": {
"pair": {
"groupId": "<string>",
"baseId": "<string>",
"quoteId": "<string>",
"lastConfigNum": 123,
"priority": 123,
"LastConfig": {
"num": 123,
"groupId": "<string>",
"baseId": "<string>",
"quoteId": "<string>",
"createdAt": "<string>",
"makerFeePercent": "<string>",
"takerFeePercent": "<string>",
"limitSpreadAsk": "<string>",
"limitSpreadBid": "<string>",
"marketSpreadAsk": "<string>",
"marketSpreadBid": "<string>",
"tickSize": 123,
"stepSize": 123,
"limitMinQuoteSize": "<string>",
"limitMaxQuoteSize": "<string>",
"liquidityProviderType": "<string>",
"marketMinQuoteSize": "<string>",
"marketMaxQuoteSize": "<string>"
}
},
"side": "<string>"
},
"estSourceAmount": "<string>",
"estDestAmount": "<string>",
"estPrice": "<string>",
"estMaxSize": "<string>",
"estMinSize": "<string>"
}Get real-time price quotes for token conversion pairs
curl --request GET \
--url https://api.example.com/api/conversion/quote/%TOKEN1/%TOKEN2{
"edge": {
"pair": {
"groupId": "<string>",
"baseId": "<string>",
"quoteId": "<string>",
"lastConfigNum": 123,
"priority": 123,
"LastConfig": {
"num": 123,
"groupId": "<string>",
"baseId": "<string>",
"quoteId": "<string>",
"createdAt": "<string>",
"makerFeePercent": "<string>",
"takerFeePercent": "<string>",
"limitSpreadAsk": "<string>",
"limitSpreadBid": "<string>",
"marketSpreadAsk": "<string>",
"marketSpreadBid": "<string>",
"tickSize": 123,
"stepSize": 123,
"limitMinQuoteSize": "<string>",
"limitMaxQuoteSize": "<string>",
"liquidityProviderType": "<string>",
"marketMinQuoteSize": "<string>",
"marketMaxQuoteSize": "<string>"
}
},
"side": "<string>"
},
"estSourceAmount": "<string>",
"estDestAmount": "<string>",
"estPrice": "<string>",
"estMaxSize": "<string>",
"estMinSize": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Crocantefinancial/crocante-pitch-frontend/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/conversion/quote/{tokenFrom}/{tokenTo}
0 to disable automatic refresh.interface QuoteData {
edge: {
pair: {
groupId: string;
baseId: string;
quoteId: string;
lastConfigNum: number;
priority: number;
LastConfig: {
num: number;
groupId: string;
baseId: string;
quoteId: string;
createdAt: string;
makerFeePercent: string;
takerFeePercent: string;
limitSpreadAsk: string;
limitSpreadBid: string;
marketSpreadAsk: string;
marketSpreadBid: string;
tickSize: number;
stepSize: number;
limitMinQuoteSize: string;
limitMaxQuoteSize: string;
liquidityProviderType: string;
marketMinQuoteSize: string;
marketMaxQuoteSize: string;
};
};
side: "SELL" | "BUY";
};
estSourceAmount: string;
estDestAmount: string;
estPrice: string;
estMaxSize: string;
estMinSize: string;
}
curl -X GET https://api.crocante.io/api/conversion/quote/BTC/USDT \
-H "Authorization: Bearer YOUR_API_TOKEN"
{
"data": {
"edge": {
"pair": {
"groupId": "main",
"baseId": "BTC",
"quoteId": "USDT",
"lastConfigNum": 42,
"priority": 1,
"LastConfig": {
"num": 42,
"groupId": "main",
"baseId": "BTC",
"quoteId": "USDT",
"createdAt": "2026-01-15T08:00:00.000Z",
"makerFeePercent": "0.1",
"takerFeePercent": "0.2",
"limitSpreadAsk": "0.0001",
"limitSpreadBid": "0.0001",
"marketSpreadAsk": "0.0002",
"marketSpreadBid": "0.0002",
"tickSize": 0.01,
"stepSize": 0.00001,
"limitMinQuoteSize": "10",
"limitMaxQuoteSize": "1000000",
"liquidityProviderType": "INTERNAL",
"marketMinQuoteSize": "10",
"marketMaxQuoteSize": "500000"
}
},
"side": "SELL"
},
"estSourceAmount": "1",
"estDestAmount": "68432.50",
"estPrice": "68432.50",
"estMaxSize": "100",
"estMinSize": "0.0001"
},
"status": 200
}
pollIntervalMs > 0// Refresh every 30 seconds for high-frequency trading
const quote = useQuote(userId, "ETH", "USDC", false, 30000);
// Disable automatic refresh
const quote = useQuote(userId, "BTC", "ETH", false, 0);
// Default 5-minute refresh
const quote = useQuote(userId, "SOL", "USDT", false, 300000);
estPrice field represents the exchange rate between the two tokens:
estDestAmount = estSourceAmount × estPrice
estPrice = “68432.50”estDestAmount = “68432.50” USDTestMinSize): Smallest amount you can convertestMaxSize): Largest amount you can convert in a single transactionconst { data: quote, isLoading } = useQuote(
userId,
"ETH",
"USDC",
false,
10000 // Refresh every 10 seconds
);
if (!isLoading && quote) {
console.log(`1 ETH = ${quote.estPrice} USDC`);
}
const amount = "5.0";
const quote = await fetchQuote("BTC", "ETH");
if (parseFloat(amount) < parseFloat(quote.estMinSize)) {
console.error(`Minimum conversion amount is ${quote.estMinSize}`);
}
if (parseFloat(amount) > parseFloat(quote.estMaxSize)) {
console.error(`Maximum conversion amount is ${quote.estMaxSize}`);
}
const inputAmount = "2.5"; // 2.5 BTC
const quote = await fetchQuote("BTC", "USDT");
const expectedOutput = parseFloat(inputAmount) * parseFloat(quote.estPrice);
const feePercent = parseFloat(quote.edge.pair.LastConfig.takerFeePercent);
const netOutput = expectedOutput * (1 - feePercent / 100);
console.log(`You will receive approximately ${netOutput} USDT`);
userId, tokenFrom, or tokenTo are missing