curl --request POST \
--url https://api.qbank.cl/platform/v1/swaps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_asset": "USD",
"to_asset": "BTC",
"amount": "1000",
"idempotency_key": "swap-2026-07-10-a"
}
'
{
"swap_id": "8a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"from_asset": "USD",
"to_asset": "BTC",
"from_amount": "1000.00",
"to_amount": "0.01568419",
"rate": "0.00001568",
"fees": [
{
"leg": "from",
"asset": "USD",
"percent": "0.20"
},
{
"leg": "to",
"asset": "BTC",
"percent": "0.15"
}
],
"fee_total_pct": "0.3500",
"fee_note": "included_in_rate",
"coverage_exempt": false,
"status": "completed",
"idempotency_key": "swap-2026-07-10-a",
"created_at": "2026-07-10T15:00:00Z",
"idempotency_hit": true
}
Create a swap
Converts balance between two of your currencies, synchronously and atomically — your balance changes instantly and the money never leaves your account (no OTP). Volatile pairs (BTC/GOLD/SILVER/PLATINUM) use their own per-operation (100,000 USDT equivalent) and 24h volume (500,000 USDT per account) limits; payouts and card purchases keep a separate shared pool. Requires an idempotency key: replaying returns the original swap and never re-executes.
POST
/
v1
/
swaps
curl --request POST \
--url https://api.qbank.cl/platform/v1/swaps \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_asset": "USD",
"to_asset": "BTC",
"amount": "1000",
"idempotency_key": "swap-2026-07-10-a"
}
'
{
"swap_id": "8a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"account_id": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
"from_asset": "USD",
"to_asset": "BTC",
"from_amount": "1000.00",
"to_amount": "0.01568419",
"rate": "0.00001568",
"fees": [
{
"leg": "from",
"asset": "USD",
"percent": "0.20"
},
{
"leg": "to",
"asset": "BTC",
"percent": "0.15"
}
],
"fee_total_pct": "0.3500",
"fee_note": "included_in_rate",
"coverage_exempt": false,
"status": "completed",
"idempotency_key": "swap-2026-07-10-a",
"created_at": "2026-07-10T15:00:00Z",
"idempotency_hit": true
}
Authorizations
Body
application/json
Response
Idempotency replay (original swap, never re-executed).