Quotes API - offramp
To quickly return an accurate price estimate for the requested amount for the coin/token
Note: Quotes endpoint currently supports INR currency pair, support for other currencies would be added soon.
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 |
quantity* | Float | refers to the crypto quantity to be sold |
fiatType* | Integer | fiat type used for the transaction 1 -> INR (Indian rupee) |
type* | Integer | refers to the type of transaction 2 -> offramp |
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 |
Sample Request
Last updated