API Reference
Execute trade
/api/v1/trade/customer/{customerId}/execute/{quoteOrder}https://bloquo.mimicr.dev · provider: https://api.bloquo.ioExecutes a trade using a previously obtained quote.
The quoteOrder path parameter is the orderId (Guid) returned by POST /quote. The quote must not be expired, check expireAt before calling this endpoint.
On success, a TradeOrder is created in PROCESSING status. Once the liquidity provider confirms, status transitions to WaitingTreasury, then COMPLETED as balance transfers are recorded in the Transaction Service.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Path parameters
The orderId (Guid) from POST /quote.
Body
application/jsonResponses
200Trade submitted for execution.
trueTrade execution result. Contains the created tradeOrder (raw entity) and tradeResult (provider confirmation data).
Show child attributes
Show child attributes
"3fa85f64-5717-4562-b3fc-2c963f66afa6"421011"BRL""USD"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).
BuySell100001952.325.1232100001952.325.12323Trade status object (id + name).
Human-readable status for the customer.
"COMPLETED"0.005"admin""System""2024-01-15T10:30:00Z""2024-01-15T10:31:00Z"