curl --request POST \
--url https://api.bullring.finance/v2/ramp/{subaccountId}/banking/offramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": {
"chain": "SOL-DEVNET",
"asset": "USDC"
},
"to": {
"recipient_id": "2ca1ab9c-88ec-4657-8e37-1f493ab43303",
"amount": 250
}
}
'{
"type": "offramp",
"from": {
"amount": "23.36763078395597",
"asset": "USDC",
"network": "SOL-DEVNET"
},
"to": {
"currency": "ghs",
"gross_amount": "250",
"net_amount": "244",
"recipient_id": "2ca1ab9c-88ec-4657-8e37-1f493ab43303"
},
"pricing": {
"fx_rate": "10.69856",
"fees": {
"offramp_fee": "6",
"offramp_fee_currency": "ghs"
}
}
}Get a quote to offramp crypto to fiat. This does not affect your Bullring balance.
curl --request POST \
--url https://api.bullring.finance/v2/ramp/{subaccountId}/banking/offramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": {
"chain": "SOL-DEVNET",
"asset": "USDC"
},
"to": {
"recipient_id": "2ca1ab9c-88ec-4657-8e37-1f493ab43303",
"amount": 250
}
}
'{
"type": "offramp",
"from": {
"amount": "23.36763078395597",
"asset": "USDC",
"network": "SOL-DEVNET"
},
"to": {
"currency": "ghs",
"gross_amount": "250",
"net_amount": "244",
"recipient_id": "2ca1ab9c-88ec-4657-8e37-1f493ab43303"
},
"pricing": {
"fx_rate": "10.69856",
"fees": {
"offramp_fee": "6",
"offramp_fee_currency": "ghs"
}
}
}