API Reference
Trade

Request direct quote

POST/api/v1/trade/customer/{customerId}/quote/direct
Base URL: https://bloquo.mimicr.dev · provider: https://api.bloquo.io

Requests a quote directly from an internal liquidity provider, bypassing the automatic path selection. Available to Institutional customers only.

Use this when you need to negotiate directly with a specific counterparty rather than using the automated routing engine.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Path parameters

customerIdinteger<int64>required

Body

application/json
baseCurrencystringrequired

ISO 4217 code of the base currency (the currency being bought or sold).

Example: "BRL"
quoteCurrencystringrequired

ISO 4217 code of the quote currency (the currency being received or spent).

Example: "USD"
baseAccountIdinteger<int64>required

ID of the account holding the base currency.

Example: 10
quoteAccountIdinteger<int64>required

ID of the account holding the quote currency.

Example: 11
sidestringrequired

Direction of the trade from the customer's perspective. - Buy, buying the base currency (spending the quote currency). - Sell, selling the base currency (receiving the quote currency).

BuySell
baseAmountnumber | null

Amount in the base currency. Provide either baseAmount or quoteAmount - never both. The other amount is calculated and returned in the response.

Example: 10000
quoteAmountnumber | null

Amount in the quote currency. Provide either baseAmount or quoteAmount - never both. The other amount is calculated and returned in the response.

customerIdinteger<int64> | null

Customer ID. Inferred from the path parameter, usually not required in the body.

descriptionstring | null

Optional description or reference for this quote.

Example: "Payment to supplier"
externalIdstring | null

External reference ID for idempotency or reconciliation.

Responses

200Direct quote generated.
statusboolean
Example: true
resultobject
Show child attributes
orderIdstring<uuid>

Unique identifier for this quote (Guid). Pass to execute to lock in the rate.

Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
baseCurrencystring
Example: "BRL"
baseAmountnumber
Example: 10000
quoteCurrencystring
Example: "USD"
quoteAmountnumber
Example: 1952.32
pricenumber

Exchange rate offered (already includes provider spread).

Example: 5.1232
sidestring

Direction of the trade from the customer's perspective. - Buy, buying the base currency (spending the quote currency). - Sell, selling the base currency (receiving the quote currency).

BuySell
createdAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
expireAtstring<date-time>

Quote expiration timestamp. The quote cannot be used after this time.

Example: "2024-01-15T10:35:00Z"
messagestring | null
403Only available to Institutional customers.
statusboolean
resultany | null
messagestring