curl --request POST \
--url https://api.bullring.finance/v2/ramp/{subaccountId}/banking/onramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": {
"amount": 500,
"currency": "BRL"
},
"to": {
"asset": "STABLE_SATS",
"chain": "lightning"
}
}
'{
"type": "onramp",
"from": {
"amount": "500",
"currency": "BRL"
},
"to": {
"asset": "STABLE_SATS",
"gross_amount": "92.80822735283428",
"net_amount": "92.02980267077578"
},
"pricing": {
"fx_rate": "0.18561645470566857",
"fees": {
"onramp_fee": "1.5",
"onramp_fee_currency": "brl",
"network_fee": "2.6937266999999996",
"network_fee_asset": "STABLE_SATS"
}
}
}Get a quote to onramp fiat to crypto. This does not affect your Bullring balance.
curl --request POST \
--url https://api.bullring.finance/v2/ramp/{subaccountId}/banking/onramp/quote \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"from": {
"amount": 500,
"currency": "BRL"
},
"to": {
"asset": "STABLE_SATS",
"chain": "lightning"
}
}
'{
"type": "onramp",
"from": {
"amount": "500",
"currency": "BRL"
},
"to": {
"asset": "STABLE_SATS",
"gross_amount": "92.80822735283428",
"net_amount": "92.02980267077578"
},
"pricing": {
"fx_rate": "0.18561645470566857",
"fees": {
"onramp_fee": "1.5",
"onramp_fee_currency": "brl",
"network_fee": "2.6937266999999996",
"network_fee_asset": "STABLE_SATS"
}
}
}