VA - Listing Open Trades (3/4)

When you have open trades that are not yet filled, you can list them.


  1. List all active buy trades - v3 REST API.
    Keep in mind that by using this endpoint, you list either all open trades across all pairs or only trades for a specific account by providing the account's ID as a query parameter.
    curl --request POST \
         --url \
         --header 'x-api-key: {YOUR_API_KEY}' \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
      "pageSize": 50,
      "offset": 0,
      "tradeType": "BUY"
            "created": 1609617722713,
            "amount": "1",
            "price": "40",
            "fill": "0",
            "type": "BUY",
            "pair": "BTC/ETH",
            "currency1AccountId": "5f914e372e47312bc56d8d3d",
            "currency2AccountId": "5f914e0a2e47312bc56d8d3b"
            "fee": null,
            "feeAccountId": null,
            "id": "5e68c66581f2ee32bc354087"
  2. You can see that the trade has not been filled, which means that no opposite SELL trade has matched this trade's price. This trade was not opened with a fee or fee account ID.

Good to Know

The fee can be executed by providing a fee and feeAccountId property when opening a trade. It is always the first currency of the trading pair and is set up as a percent.