GET
/
quotes
{
  "quantity": 0.0445225,
  "price": 2111.2920433488684,
  "subtotal": 94,
  "transactionFee": 2,
  "networkFee": 4,
  "total": 100,
  "assetType": "ETH",
  "network": "ethereum"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

asset_type
string
required

Cryptocurrency asset user wants to purchase

network
string
required

Blockchain on which the asset_type is present

total
number
required

Amount the user wants to buy or sell.

currency
string
default:
USD

The currency type in which the quote is supplied

paymentType
enum<string>

The payment method that the user will use for the transaction

Available options:
ach,
debit,
credit,
us_debit,
international_debit,
international_credit
quote_type
enum<string>
default:
buy

Select for the required activity buy for on ramp and sell for off ramp

Available options:
buy,
sell
walletAddress
string

Wallet address of User. This is used to calculate if User has previously used Sardine, and provide them with a more accurate quote.

Response

200 - application/json
assetType
string
expiresIn
string
network
string
networkFee
integer

Fees paid to Sardine for processing the trade

price
number

Price for 1 unit of the crypto being bought

quantity
number

Amount of crypto that will be purchased

subtotal
integer

Fiat value of the crypto that the user will receive, net of fees

total
number

Total cost incurred by the user

transactionFee
integer

Also known as "gas", the fees paid to validators on the network