Quote
Get a list of quotes from native units.
The same as getQuotes, with amount in the source asset's smallest native unit (for example 50000000 satoshis for 0.5 BTC).
get/quotes-native
Request
- Base URL: https://chainflip-broker.io
- URL: https://chainflip-broker.io/quotes-native
- Auth: one of:
- API key in query parameter apiKey
- API key in header X-API-Key
Query parameters
apiKeystring
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.
sourceAssetstring required
The asset to swap from.
destinationAssetstring required
The asset to swap to.
amountstring required
The amount to swap in native units.
commissionBpsinteger
An optional override to the charged commission bps.
isVaultSwapboolean
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.