cURL
curl --request GET \ --url https://api.layerswap.io/api/v2/detailed_quote \ --header 'X-LS-APIKEY: <api-key>'
{ "error": { "code": "<string>", "message": "<string>", "metadata": {} }, "data": [ { "avg_completion_milliseconds": 123, "min_amount": 123, "min_amount_in_usd": 123, "max_amount": 123, "max_amount_in_usd": 123, "fee_amount_for_min": 123, "fee_amount_for_max": 123, "total_percentage_fee": 123, "total_fixed_fee_in_usd": 123, "total_fixed_fee_in_source": 123, "path": [ { "id": 123, "service_fee_in_source": 123, "service_fee_in_usd": 123, "service_fee_percentage": 123, "expense_in_source": 123, "expense_fee_in_usd": 123, "fee_in_source": 123, "fee_in_usd": 123, "avg_completion_milliseconds": 123, "provider_name": "<string>", "order": 123 } ] } ] }
Retrieves a swap quote based on the provided route request.
Success
The response is of type object.
object
Was this page helpful?