Simulates a bank ramp-off (crypto to fiat) to preview conversion rates, fees, and final amounts before execution. Requires an API key with access level 2 or higher.
Body
Virtual wallet identifier.
Bank account identifier for withdrawal.
Amount in cryptocurrency to convert and withdraw.
Response
Original crypto amount to convert.
Original cryptocurrency token. One of USDC, USDT, DAI, ETH, BTC, MATIC, BNB, SOL.
Amount after currency conversion.
Final fiat amount after fees.
Final fiat currency. One of BRL, USD, EUR, ARS, MXN.
curl -X POST "https://api.cryptomate.me/virtual-wallets/bank-ramps/ramp-off/simulate" \
-H "X-API-KEY: $CRYPTOMATE_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"wallet_id": "vw_a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"bank_account_id": "ba_xyz789",
"amount": 0.5
}'
200 OK
404 Wallet Not Found
404 Bank Account Not Found
{
"original_amount" : 0.5 ,
"original_currency" : "USDC" ,
"exchange_rate" : 1.05 ,
"converted_amount" : 955.00 ,
"service_fee" : 5.00 ,
"final_amount" : 950.00 ,
"final_currency" : "USD"
}