How to use the Trades endpoints in the Bloquo API?

How to use the Trades endpoints in the Bloquo API?

πŸ”„ Bloquo API: Trades Endpoints 


Overview

The Trades endpoints allow efficient currency exchange operations on the platform, including quote requests, trade confirmations, and trade history listing.


πŸ’² Request Quote

POST Request Quote

Request a quote for currency exchange based on specified base/quote currencies, accounts, and trade direction.

Endpoint:

POST /trade/customer//quote

Required fields:

  • CustomerId

  • BaseCurrency / QuoteCurrency

  • BaseAccountId / QuoteAccountId

  • Side (buy/sell)

  • BaseAmount or QuoteAmount

πŸ“Ž Link to full request example


βœ… Accept Quote

PUT Accept Quote

Confirm and execute a trade based on a previously generated quote.

Endpoint:

PUT /trade/customer//execute/:quoteOrder

πŸ“Ž Link to full request example


πŸ“Š List Trades

GET List Trades

Retrieve full trade history with optional filters like currency pair, status, amount, and account.

Endpoint:

GET /trade/customer//order

πŸ“Ž Link to full request example


❓ FAQ – Common Questions

1. Do I need authentication to use trade endpoints?

Yes. All trade endpoints require a Bearer Token generated via authentication.

2. How do I know if the quote is still valid?

Check the expireAt field in the quote response.

3. Can I input the quote amount instead of the base amount?

Yes. You can specify either BaseAmount or QuoteAmount, but not both.

4. What happens after accepting the quote?

The trade is executed and confirmed in real-time.

5. Can I review past trade orders?

Yes. Use the List Trades endpoint and apply filters as needed.


Ready to trade securely and efficiently using the Bloquo API? Use these endpoints to execute your currency exchange operations with confidence.

    • Related Articles

    • How to retrieve available currencies using the Reference endpoints?

      ? Bloquo API: Reference Endpoints (Currencies) Overview The Reference endpoints in Bloquo API provide foundational information such as the list of supported currencies. This is essential for validating transactions, configuring accounts, and ...
    • How to use the Accounting endpoints in the Bloquo API?

      ? Bloquo API: Accounting Endpoints βœ… Overview The Accounting section endpoints of the Bloquo API allow you to retrieve financial data of the authenticated customer, such as: Customer registration details Accounts (FIAT and CRYPTO) Current balances ...
    • How to use the Orders endpoints in the Bloquo API?

      ? Bloquo API: Orders Endpoints Overview The Orders section of the Bloquo API allows you to create, list, and refund deposit and withdrawal orders. This functionality is essential for managing incoming and outgoing transactions on the platform. ? ...
    • How to use the Notifications endpoints in the Bloquo API?

      ? Bloquo API: Notification Endpoints Overview The Notifications endpoints allow clients to retrieve a history of notifications generated by the platform (such as transaction status changes) and to manually trigger resending of notifications if ...
    • πŸ“š Bloquo Webhooks Integration: Receiving Real-Time Order Status Notifications

      ? Bloquo Webhooks Integration: Receiving Real-Time Order Status Notifications ? Feature Overview Bloquo Webhooks are a critical real-time notification mechanism that ensures clients are immediately informed about any status change in their Deposit ...