Get a swap quote
POST
https://api.radom.com/swap/quoteReturns the estimated output amount, the mid-market and execution rates, the rate-component breakdown (spread, slippage, hedging) and the Radom fee, without executing the swap.
Authorization
Send your API key in the Authorization header. Scheme: radomToken.
Request body
fromManagedPaymentMethodrequired
networkNetworkrequiredAllowed
BitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetOpBnbFiattokenstringnullablediscountPercentOffnumber<float>nullable>= 0intoManagedPaymentMethodrequired
networkNetworkrequiredAllowed
BitcoinBitcoinTestnetLitecoinLitecoinTestnetDogecoinDogecoinTestnetBitcoinCashBitcoinCashTestnetBitcoinSVBitcoinSVTestnetHarryPotterObamaSonic10InuHarryPotterObamaSonic10InuTestnetSolanaSolanaTestnetSolanaDevnetEthereumSepoliaTestnetPolygonPolygonTestnetBNBBNBTestnetArbitrumArbitrumTestnetPolkadotPolkadotTestnetPolkadotAssetHubPolkadotAssetHubTestnetTronTronTestnetAvalancheAvalancheTestnetBaseBaseTestnetOptimismOptimismTestnetOpBnbFiattokenstringnullablediscountPercentOffnumber<float>nullable>= 0amountnumber<double>requiredResponses
200Quote retrieved successfully
amountnumber<double>requiredfeenumber<double>requiredTotal implied cost in source currency versus converting the full amount at the mid-market rate. Not the billed fee; use `radom_fee`.
ratenumber<double>requiredExecution rate in target units per source unit after rate components (spread, slippage, hedging). Does not include the Radom fee.
marketRatenumber<double>requiredMid-market rate in the same units as `rate`, before rate components.
radomFeenumber<double>requiredRadom fee deducted from the source amount before the rate is applied.
radomFeePercentnumber<double>requirednetworkFeenumber<double>requiredOn-chain withdrawal fee in target currency. 0 when the org does not charge network fees to the customer.
rateComponentsQuoteRateComponentsrequired400Bad Request
errorstringrequired401Unauthorized
errorstringrequired500Internal server error
errorstringrequired503Service unavailable
errorstringrequired