API Reference
Trade

Create trade order

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

Creates a trade order using a quote. This is an alternative to PUT /execute/{quoteOrder}: use whichever your integration prefers.

Authorization

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

Path parameters

customerIdinteger<int64>required

Body

application/json
quoteIdstring<uuid>required

Quote orderId obtained from POST /quote. Must not be expired.

Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"

Responses

201Trade order created.
statusboolean
Example: true
resultobject
Show child attributes
orderIdstring<uuid>
Example: "3fa85f64-5717-4562-b3fc-2c963f66afa6"
customerIdinteger<int64>
Example: 42
baseAccountIdinteger<int64>
Example: 10
quoteAccountIdinteger<int64>
Example: 11
baseCurrencystring
Example: "BRL"
quoteCurrencystring
Example: "USD"
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
baseAmountnumber | null
Example: 10000
quoteAmountnumber | null
Example: 1952.32
pricenumber
Example: 5.1232
quotedBaseAmountnumber | null
Example: 10000
quotedQuoteAmountnumber | null
Example: 1952.32
quotedPricenumber
Example: 5.1232
statusIdinteger
Example: 3
tradeStatusobject | null

Trade status object (id + name).

customerStatusstring

Human-readable status for the customer.

Example: "COMPLETED"
spreadnumber
Example: 0.005
originstring | null
expirationAtstring<date-time> | null
createdBystring | null
Example: "admin"
lastUpdatedBystring
Example: "System"
createdAtstring<date-time>
Example: "2024-01-15T10:30:00Z"
lastUpdatedAtstring<date-time>
Example: "2024-01-15T10:31:00Z"
messagestring | null