cURL
curl --request POST \ --url https://lightswap.me/api/partner/v1/quote \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "from": { "network": "bitcoin", "token": "BTC", "amount": "0.01" }, "to": { "network": "tron", "token": "USDT" }, "customerId": "u_123", "externalId": "partner-order-123" } '
{ "id": "pq_aaaaaaaaaaaaaaaaaaaaaaaa", "expiresAt": "2026-04-19T10:03:00.000Z", "from": { "decimals": 8, "network": "bitcoin", "token": "BTC", "amount": "0.01" }, "to": { "decimals": 6, "network": "tron", "token": "USDT", "estimatedAmount": "100" }, "rate": "10000", "minAmountIn": "0.001", "maxAmountIn": "1", "estimatedTimeSeconds": 900 }
Creates a short-lived exact-input partner quote.
API key. Keep this key on your backend.
Show child attributes
Your order or correlation ID.
128
"partner-order-123"
Your internal user or customer reference.
"u_123"
Short-lived quote.
^pq_[a-f0-9]{24}$
"pq_aaaaaaaaaaaaaaaaaaaaaaaa"
Estimated output per one input unit.
"10000"
"0.001"
"1"
x >= 0
900