curl --request POST \
--url https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}
'import requests
url = "https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote"
payload = {
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromChain: '42161',
fromToken: '0x1111111111111111111111111111111111111111',
fromAmount: '1000000',
fromAddress: '0x1111111111111111111111111111111111111111',
refundAddress: '0x1111111111111111111111111111111111111111'
})
};
fetch('https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
use serde_json::json;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.post("https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote")
.bearer_auth(std::env::var("EDEL_API_KEY")?)
.json(&json!({
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}))
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote"
payload := strings.NewReader("{\n \"fromChain\": \"42161\",\n \"fromToken\": \"0x1111111111111111111111111111111111111111\",\n \"fromAmount\": \"1000000\",\n \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n \"refundAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fromChain\": \"42161\",\n \"fromToken\": \"0x1111111111111111111111111111111111111111\",\n \"fromAmount\": \"1000000\",\n \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n \"refundAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
.asString();{
"toAmount": "<string>",
"toAmountMin": "<string>",
"fromAmount": "<string>",
"fromToken": "<string>",
"toToken": "<string>",
"toChain": "<string>",
"exchangeRate": "<string>",
"estimatedRouteDurationSeconds": 1,
"priceImpact": "<string>",
"slippage": 49,
"quoteId": "<string>",
"feeCosts": [
{
"name": "<string>",
"amount": "<string>",
"amountUsd": "<string>",
"tokenSymbol": "<string>",
"tokenDecimals": 1
}
],
"edelWithdrawalFeeAtoms": "<string>",
"spotSellLeg": {
"sourceAsset": "<string>",
"sourceAmountAtoms": "<string>",
"spotMarketId": "<string>",
"grossUsdcxAtoms": "<string>",
"avgSellPriceAtoms": "<string>",
"worstFillPriceAtoms": "<string>",
"minLimitPriceAtoms": "<string>",
"minUsdcxOutAtoms": "<string>",
"estimatedSlippageBps": 1,
"tradingFeeAtoms": "<string>",
"settlementFeeAtoms": "<string>",
"totalSellFeeAtoms": "<string>",
"netUsdcxAtoms": "<string>",
"snapshotSequence": 1
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}Quote a cross-chain deposit to the account's Party (v2)
Returns a display-only Squid quote to Ethereum USDC and xReserve. The account’s active Party determines the xReserve recipient; the supplied address is the Ethereum fallback. No transaction is signed or submitted. A missing active MainNet bridge agreement answers 409 xreserve_bridge_not_ready. Each account holds one Squid request at a time and at most 6 per minute, and all accounts share Squid’s request quota; past either bound the route answers 429 rate_limited with squidRouteRefusal account_request_bound or global_request_bound and a Retry-After header, in seconds, before Squid is called. A Squid outage answers 503 dependency_unavailable with dependency squid; retry later. New deposits require deposits.squid_router. When disabled, the response is 503 feature_disabled with featureFlag deposits.squid_router; wait for the feature to be enabled. This gate does not stop outbound withdrawal quotes or observations and binding for transfers already sent.
curl --request POST \
--url https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}
'import requests
url = "https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote"
payload = {
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
fromChain: '42161',
fromToken: '0x1111111111111111111111111111111111111111',
fromAmount: '1000000',
fromAddress: '0x1111111111111111111111111111111111111111',
refundAddress: '0x1111111111111111111111111111111111111111'
})
};
fetch('https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
use serde_json::json;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.post("https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote")
.bearer_auth(std::env::var("EDEL_API_KEY")?)
.json(&json!({
"fromChain": "42161",
"fromToken": "0x1111111111111111111111111111111111111111",
"fromAmount": "1000000",
"fromAddress": "0x1111111111111111111111111111111111111111",
"refundAddress": "0x1111111111111111111111111111111111111111"
}))
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote"
payload := strings.NewReader("{\n \"fromChain\": \"42161\",\n \"fromToken\": \"0x1111111111111111111111111111111111111111\",\n \"fromAmount\": \"1000000\",\n \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n \"refundAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://testnet.edel-api.xyz/v2/accounts/{accountId}/squid-quote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fromChain\": \"42161\",\n \"fromToken\": \"0x1111111111111111111111111111111111111111\",\n \"fromAmount\": \"1000000\",\n \"fromAddress\": \"0x1111111111111111111111111111111111111111\",\n \"refundAddress\": \"0x1111111111111111111111111111111111111111\"\n}")
.asString();{
"toAmount": "<string>",
"toAmountMin": "<string>",
"fromAmount": "<string>",
"fromToken": "<string>",
"toToken": "<string>",
"toChain": "<string>",
"exchangeRate": "<string>",
"estimatedRouteDurationSeconds": 1,
"priceImpact": "<string>",
"slippage": 49,
"quoteId": "<string>",
"feeCosts": [
{
"name": "<string>",
"amount": "<string>",
"amountUsd": "<string>",
"tokenSymbol": "<string>",
"tokenDecimals": 1
}
],
"edelWithdrawalFeeAtoms": "<string>",
"spotSellLeg": {
"sourceAsset": "<string>",
"sourceAmountAtoms": "<string>",
"spotMarketId": "<string>",
"grossUsdcxAtoms": "<string>",
"avgSellPriceAtoms": "<string>",
"worstFillPriceAtoms": "<string>",
"minLimitPriceAtoms": "<string>",
"minUsdcxOutAtoms": "<string>",
"estimatedSlippageBps": 1,
"tradingFeeAtoms": "<string>",
"settlementFeeAtoms": "<string>",
"totalSellFeeAtoms": "<string>",
"netUsdcxAtoms": "<string>",
"snapshotSequence": 1
}
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "promo_code_unknown",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"realtimeTicketFailure": "invalid",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "requested",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
}Authorizations
The authorization field takes the session bearer returned by sign-in, or an API key where the route allows keys. Paste the token itself into the authorization field. When invitation-only access is enabled, private operations require the account's sign-in email to be invited. Sign-in can complete without an invitation, but private HTTP, MCP and FIX operations refuse with access_not_allowlisted (HTTP 403): "Private access is limited to invited accounts. Contact support to request access." Public market data remains available. Invitation changes apply to the next private operation, including existing FIX sessions. Do not retry until support confirms access.
Body
Response
Success