Aggregating Onramps
The OnRamp Aggregator API lets developers get a quote for the fees and an exchange rate for a buy. Then it initializes Coinbase Onramp with the appropriate parameters to execute that buy.
- Generate a quote using the Buy Quote API.
- Initialize Coinbase Onramp with the parameters used to get the quote (see below).
| Parameter | Reqd | Type | Description | 
|---|---|---|---|
| quoteId | Yes | String | ID of the quote. Received from Buy Quote. | 
| defaultAsset | Yes | String | UUID of asset. Received from Buy Options and sent to Buy Quote. | 
| defaultNetwork | No | String | Default network that should be selected when multiple networks are present. When not set, default is the asset network. Received from Buy Options and sent to Buy Quote. | 
| defaultPaymentMethod | Yes | String | Default payment method, one of: 
 | 
| fiatCurrency | Yes | String | Ticker symbol of the fiat currency. | 
| presetFiatAmount | Yes | Number | Amount to be spent on the crypto purchase, fees included. |