Price a trade
Prices a trade in either direction. The direction follows from the currencies: fiat to crypto is a buy, crypto to fiat is a sell. A fiat-to-fiat or crypto-to-crypto pair is rejected, the latter until swaps are supported.
POST/api/v3/quotes
Send two credentials: your own, and the customer's.
How authentication works- Yours
x-api-keyorAuthorization: Bearer- The customer's
User-Authorization: BearerorUser-Identifier
Prices a trade in either direction. The direction follows from the currencies: fiat to crypto is a buy, crypto to fiat is a sell. You never send a direction.
Amounts are decimal strings
Every amount in and out of this endpoint is a string, not a JSON number. Parsing
0.00234118 as a float and sending it back loses precision, and money that does
not round-trip is money that reconciles wrong.
A rate is a fraction, not a percentage
0.015 means 1.5%. Multiplying it by 100 twice is the mistake this note exists
to prevent.
A 200 does not mean the customer may proceed
It means we priced the trade. Check unconfirmableReasons before you show a
confirm button, or the customer hits a wall one step later.
Language
Environment
Credentials
Your credential
The customer's credential
Choose an environment first.
curl -X POST https://api.btcdirect.eu/api/v3/quotes \ -H "x-api-key: $BTCD_API_KEY" \ -H "User-Authorization: Bearer $BTCD_USER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "sourceCurrency": "swift:0/iso4217:EUR", "targetCurrency": "bip122:000000000019d6689c085ae165831e93/slip44:0", "sourceAmount": "100.00", "paymentMethod": "ideal" }'Response
{ "quoteId": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "token": "eyJhbGciOiJIUzI1NiJ9.eyJxdW90ZUlkIjoiM2ZhODVmNjQ", "direction": "buy", "sourceCurrency": "swift:0/iso4217:EUR", "targetCurrency": "bip122:000000000019d6689c085ae165831e93/slip44:0", "sourceAmount": "100.00", "targetAmount": "0.00126555", "exchangeRate": "76826.144899997801090519", "paymentMethod": "ideal", "expiresAt": "2026-08-25T11:42:07Z", "fees": { "markup": { "amount": "1.94", "rate": "0.02" }, "partner": { "amount": "1.94", "rate": "0.02" }, "paymentMethod": { "amount": "1.94", "rate": "0.02" }, "network": { "amount": "1.94", "rate": "0.02" } }, "limits": [ { "type": "transaction", "minimum": "30.00", "maximum": "5000.00", "remaining": "4900.00" } ], "unconfirmableReasons": [ "registration_incomplete" ], "tradingPause": { "localizedMessages": { "en": "Buying is paused while we carry out maintenance.", "nl": "Kopen is gepauzeerd vanwege onderhoud." }, "reopensAt": "2026-08-25T11:42:07Z" }}Request
sourceCurrencystringrequired
CAIP-19 of the currency the customer parts with.
Exampleswift:0/iso4217:EUR
targetCurrencystringrequired
CAIP-19 of the currency the customer receives.
Examplebip122:000000000019d6689c085ae165831e93/slip44:0
sourceAmountstring
Decimal string. Supply exactly one of sourceAmount or targetAmount.
Example100.00
targetAmountstring
Decimal string. Supply exactly one of sourceAmount or targetAmount.
Example0.00126555
paymentMethodstringrequired
Exampleideal
Responses
200The quote. While an operator has paused this side of trading it is still priced, but it carries `trading_paused` in `unconfirmableReasons`, no `token`, and a `tradingPause` with the operator's message and when trading reopens.400Untradeable pair, unknown currency or payment method, or a missing amount.403The Business-Identifier header names a business the customer does not represent. A quote for a business is checked against that business's limits, so the customer must represent it.503`maintenance` — full maintenance is on, and every endpoint refuses every request until it ends (`endsAt`, when it has an end). Nothing is wrong with the request and nothing was done; the same request is accepted afterwards. Told apart from any other 503 by `code`.Body of the success response
quoteIduuidrequired
Example3fa85f64-5717-4562-b3fc-2c963f66afa6
tokenstringrequired
The signed quote. Present it to POST /api/v3/orders.
ExampleeyJhbGciOiJIUzI1NiJ9.eyJxdW90ZUlkIjoiM2ZhODVmNjQ
directionstringrequired
Derived from the currency pair; never supplied.
Can be one ofbuysell
sourceCurrencystringrequired
Exampleswift:0/iso4217:EUR
targetCurrencystringrequired
Examplebip122:000000000019d6689c085ae165831e93/slip44:0
sourceAmountstringrequired
Example100.00
targetAmountstringrequired
Example0.00126555
exchangeRatestringrequired
Example76826.144899997801090519
paymentMethodstringrequired
Exampleideal
expiresAtdate-timerequired
Example2026-08-25T11:42:07Z
feesobjectrequired
limitsobject[]
unconfirmableReasonsstring[]required
Empty when the quote can be confirmed. `trading_paused` means an operator has paused this side of trading; `tradingPause` then says what to show the customer.
tradingPauseobject
Why a quote cannot be confirmed: an operator has paused this side of trading for this partner, coin and payment method.
Every failure answers with a message and a code. Switch on the code — messages are written for people and can change.