Get a list of quotes.
Quotes swapping a human-readable amount of sourceAsset (for example 0.5 BTC) into destinationAsset, with your broker fee included. Returns a regular quote and, when available, a DCA quote that spreads the swap over time; Bitcoin quotes also carry a Boost quote. Each quote has the expected output, every fee involved, the estimated duration, an estimated price and a recommended slippage tolerance to use with startSwap. commissionBps can raise your configured commission for this quote, never lower it.
Request
- Base URL: https://chainflip-broker.io
- URL: https://chainflip-broker.io/quotes
- Auth: one of:
- API key in query parameter apiKey
- API key in header X-API-Key
Query parameters
Your partner API key. A key is required through this parameter OR the X-API-Key header; when both are present, this query parameter wins, even when it is empty, which fails validation rather than falling back to the header.
The asset to swap from.
The asset to swap to.
The amount to swap.
An optional override to the charged commission bps.
Flag for requesting a quote for a vault swap. Network related fees can be different for vault swaps compared to regular swaps.
Response
A list of quotes for the given assets and amount.
Example response
[
{
"type": "regular",
"ingressAsset": "btc.btc",
"ingressAmount": 0.5,
"ingressAmountNative": "50000000",
"intermediateAsset": "usdc.eth",
"intermediateAmount": 40643.039585,
"intermediateAmountNative": "40643039585",
"egressAsset": "usdt.hub",
"egressAmount": 40638.953831,
"egressAmountNative": "40638953831",
"includedFees": [
{
"type": "network",
"asset": "usdc.eth",
"amount": 40.683723,
"amountNative": "40683723"
}
],
"recommendedSlippageTolerancePercent": 2.5,
"recommendedRetryDurationInBlocks": 300,
"recommendedLivePriceSlippageTolerancePercent": 0.75,
"poolInfo": [
{
"baseAsset": "usdt.hub",
"quoteAsset": "usdc.eth",
"fee": {
"asset": "usdc.eth",
"amountNative": "0"
}
}
],
"estimatedDurationSeconds": 1009.5,
"estimatedDurationsSeconds": {
"deposit": 906,
"swap": 12,
"egress": 91.5
},
"estimatedPrice": 81278.32200114832,
"chunkIntervalBlocks": 1,
"numberOfChunks": 5,
"boostQuote": {
"ingressAsset": "btc.btc",
"ingressAmount": 0.5,
"ingressAmountNative": "50000000",
"intermediateAsset": "usdc.eth",
"intermediateAmount": 40622.717973,
"intermediateAmountNative": "40622717973",
"egressAsset": "usdt.hub",
"egressAmount": 40618.634251,
"egressAmountNative": "40618634251",
"includedFees": [
{
"type": "network",
"asset": "usdc.eth",
"amount": 40.683723,
"amountNative": "40683723"
}
],
"recommendedSlippageTolerancePercent": 2.5,
"recommendedRetryDurationInBlocks": 300,
"recommendedLivePriceSlippageTolerancePercent": 0.75,
"poolInfo": [
{
"baseAsset": "usdt.hub",
"quoteAsset": "usdc.eth",
"fee": {
"asset": "usdc.eth",
"amountNative": "0"
}
}
],
"estimatedDurationSeconds": 409.5,
"estimatedDurationsSeconds": {
"deposit": 906,
"swap": 12,
"egress": 91.5
},
"estimatedBoostFeeBps": 5,
"maxBoostFeeBps": 5,
"estimatedPrice": 81278.3220021494,
"chunkIntervalBlocks": 1,
"numberOfChunks": 5
},
"platform": "chainflip"
}
]Changes
No recorded changes to this operation across all 1 revision of this API.