Skip to main content
POST
/
orders
/
{order_id}
/
quotes
Order Quotes
curl --request POST \
  --url https://api.coinvoyage.io/v3/orders/{order_id}/quotes \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "filter": {
    "limit": 5,
    "min_balance_usd": 1,
    "sources": [
      {
        "address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
        "chain_id": 30000000000001
      }
    ],
    "wallet": {
      "address": "0x1234...abcd",
      "chain_ids": [
        1,
        8453,
        137
      ],
      "chain_type": "EVM"
    }
  }
}
'
{
  "options": [
    {
      "input": {
        "amount": {
          "raw": "100000000",
          "ui": "100.0",
          "value_usd": 100
        },
        "balance": {
          "raw": "100000000",
          "ui": "100.0",
          "value_usd": 100
        },
        "breakdown": {
          "base": {
            "raw": "100000000",
            "ui": "100.0",
            "value_usd": 100
          },
          "fees": {
            "custom_fee": {
              "raw": "100000000",
              "ui": "100.0",
              "value_usd": 100
            },
            "protocol_fee": {
              "raw": "100000000",
              "ui": "100.0",
              "value_usd": 100
            },
            "relayer_fee": {
              "raw": "100000000",
              "ui": "100.0",
              "value_usd": 100
            },
            "total_fee": {
              "raw": "100000000",
              "ui": "100.0",
              "value_usd": 100
            }
          },
          "gas": {
            "raw": "100000000",
            "ui": "100.0",
            "value_usd": 100
          },
          "total": {
            "raw": "100000000",
            "ui": "100.0",
            "value_usd": 100
          }
        },
        "currency": {
          "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "chain_id": 1,
          "decimals": 6,
          "id": "1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "name": "USD Coin",
          "price_usd": 1,
          "symbol": "USDC"
        }
      },
      "issues": {
        "price_impact_warning": {
          "impact": 0.07,
          "threshold": 0.05
        }
      },
      "output": {
        "amount": {
          "raw": "100000000",
          "ui": "100.0",
          "value_usd": 100
        },
        "amount_out_minimum": {
          "raw": "100000000",
          "ui": "100.0",
          "value_usd": 100
        },
        "currency": {
          "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "chain_id": 1,
          "decimals": 6,
          "id": "1:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
          "name": "USD Coin",
          "price_usd": 1,
          "symbol": "USDC"
        }
      },
      "rank": 1
    }
  ],
  "result_type": "OK"
}

Authorizations

X-API-KEY
string
header
required

Headers

X-API-KEY
string
required

API key for authentication

Path Parameters

order_id
string
required

Body

application/json
filter
object
Example:
{
"limit": 5,
"min_balance_usd": 1,
"sources": [
{
"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"chain_id": 30000000000001
}
],
"wallet": {
"address": "0x1234...abcd",
"chain_ids": [1, 8453, 137],
"chain_type": "EVM"
}
}

Response

Ranked options (best→worst)

result_type
enum<string>
required

Soft-error result code returned by /v3/swap/quote endpoints. Non-OK values still arrive on a 200 so polling clients don't have to special-case errors.

Available options:
OK,
NO_ROUTE,
HIGH_IMPACT
Example:

"OK"

options
object[]
required