Quotes API - onramp
To quickly return an accurate price estimate for the requested amount for the coin/token (fiat to crypto)
POST
https://api.onramp.money/onramp/api/v2/common/transaction/quotes
Headers
Name | Type | Description |
---|---|---|
X-ONRAMP-APIKEY* | String | Your api key |
X-ONRAMP-PAYLOAD* | String | payload generated for the request |
X-ONRAMP-SIGNATURE* | String | signature generated for the request |
Request Body
Name | Type | Description |
---|---|---|
coinId* | Integer | coinId from config file |
chainId* | Integer | chainId from config file |
fiatAmount* | Float | Fiat Amount |
fiatType* | Integer | fiat type used for the transaction 1 -> India (Default) INR 2 -> Turkey (TRY) 3 -> Arab Emirates Dirham (AED) 4 -> Mexican Peso (MXN) 5 -> Vietnamese dong (VND) 6 -> Nigerian Naira (NGN) etc Note: For a complete list of supported fiat currencies, please visit the "Fiat Currencies" page under "Supported Assets & Fiat" |
type* | Integer | refers to the type of transaction 1 -> onramp |
coinCode | String | Name of the coin (also denoted as key in data.allCoinConfig in the response returned in the allConfig endpoint) E.g. usdt | usdc | busd | eth | bnb | matic | sol Note: either coinId or coinCode, can be passed. When passed both, coinCode takes precedence |
network | String | supported networks by onramp for onchain transactions E.g. of supported networks: usdt - bep20 | matic20 | erc20 | trc20 usdc - bep20 | matic20 busd - bep20 eth - erc20 | matic20 Note: either chainId or network, can be passed. When passed both, network takes precedence |
Please see detailed response below
Sample Request
Last updated