cURL
curl --request POST \ --url https://api.example.com/api/conversion/%TOKEN1/%TOKEN2 \ --header 'Content-Type: application/json' \ --data ' { "amount": "<string>" } '
{ "operationId": "<string>", "status": "<string>", "type": "<string>", "side": "<string>", "groupId": "<string>", "baseId": "<string>", "quoteId": "<string>", "size": "<string>", "filledSize": "<string>", "avgPrice": "<string>", "creditCurrencyID": "<string>", "debitCurrencyID": "<string>", "creditAmount": "<string>", "netCreditAmount": "<string>", "grossCreditAmount": "<string>", "debitAmount": "<string>", "feeAmount": "<string>", "makerFeePercent": "<string>", "takerFeePercent": "<string>", "execType": "<string>", "liquidityProviderType": "<string>", "lastFilledAt": "<string>", "operation": { "id": "<string>", "creatorId": "<string>", "ownerId": "<string>", "openedAt": "<string>", "updatedAt": "<string>", "closedAt": "<string>", "status": "<string>", "type": "<string>", "fullType": "<string>" } }
Execute token-to-token conversions (swaps) with real-time pricing
POST /api/conversion/{tokenFrom}/{tokenTo}
"0.5"
interface PostConversionData { operationId: string; groupId: string; baseId: string; quoteId: string; limitPrice: string | null; type: string; side: string; status: string; size: string; lastFilledAt: string | null; filledSize: string; avgPrice: string | null; canceling: boolean; makerFeePercent: string; takerFeePercent: string; execType: string; triggeredAt: string | null; triggerPrice: string | null; triggerPriceHigh: string | null; triggerPriceLow: string | null; operation: { id: string; creatorId: string; ownerId: string; openedAt: string; updatedAt: string; closedAt: string | null; status: string; type: string; fullType: string; }; baseSize: string | null; quoteSize: string | null; filledQuoteSize: string; creditCurrencyID: string; debitCurrencyID: string; estCreditAmount: string | null; estGrossCreditAmount: string | null; estNetCreditAmount: string | null; estDebitAmount: string; estFeeAmount: string | null; creditAmount: string; netCreditAmount: string; grossCreditAmount: string; debitAmount: string; feeAmount: string; tickSize: number; stepSize: number; liquidityProviderType: string; triggerPriceHighBaseSize: string | null; triggerPriceLowBaseSize: string | null; triggerPriceHighQuoteSize: string | null; triggerPriceLowQuoteSize: string | null; }
curl -X POST https://api.crocante.io/api/conversion/BTC/ETH \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "amount": "0.1" }'
{ "data": { "operationId": "op_abc123xyz", "groupId": "main", "baseId": "BTC", "quoteId": "ETH", "limitPrice": null, "type": "MARKET", "side": "SELL", "status": "FILLED", "size": "0.1", "lastFilledAt": "2026-03-12T10:30:45.123Z", "filledSize": "0.1", "avgPrice": "16.234", "canceling": false, "makerFeePercent": "0.1", "takerFeePercent": "0.2", "execType": "TAKER", "triggeredAt": null, "triggerPrice": null, "triggerPriceHigh": null, "triggerPriceLow": null, "operation": { "id": "op_abc123xyz", "creatorId": "user_123", "ownerId": "user_123", "openedAt": "2026-03-12T10:30:45.000Z", "updatedAt": "2026-03-12T10:30:45.123Z", "closedAt": "2026-03-12T10:30:45.123Z", "status": "CLOSED", "type": "CONVERSION", "fullType": "MARKET_CONVERSION" }, "baseSize": "0.1", "quoteSize": null, "filledQuoteSize": "1.623", "creditCurrencyID": "ETH", "debitCurrencyID": "BTC", "estCreditAmount": "1.623", "estGrossCreditAmount": "1.623", "estNetCreditAmount": "1.6197", "estDebitAmount": "0.1", "estFeeAmount": "0.0033", "creditAmount": "1.623", "netCreditAmount": "1.6197", "grossCreditAmount": "1.623", "debitAmount": "0.1", "feeAmount": "0.0033", "tickSize": 0.001, "stepSize": 0.0001, "liquidityProviderType": "INTERNAL", "triggerPriceHighBaseSize": null, "triggerPriceLowBaseSize": null, "triggerPriceHighQuoteSize": null, "triggerPriceLowQuoteSize": null }, "status": 200 }
netCreditAmount